LeviLamina
Loading...
Searching...
No Matches
NetworkChunkSource.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/chunk/ChunkSource.h"
7
8// auto generated forward declare list
9// clang-format off
10class ChunkPos;
11class LevelChunk;
13// clang-format on
14
16public:
17 // member variables
18 // NOLINTBEGIN
19 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ChunkPos, ::std::weak_ptr<::LevelChunk>>> mChunkMap;
20 // NOLINTEND
21
22public:
23 // virtual functions
24 // NOLINTBEGIN
25 // vIndex: 3
26 virtual ::std::shared_ptr<::LevelChunk> getExistingChunk(::ChunkPos const& cp) /*override*/;
27
28 // vIndex: 7
29 virtual ::std::shared_ptr<::LevelChunk>
30 createNewChunk(::ChunkPos const& cp, ::ChunkSource::LoadMode lm, bool readOnly) /*override*/;
31
32 // vIndex: 8
33 virtual ::std::shared_ptr<::LevelChunk>
34 getOrLoadChunk(::ChunkPos const& cp, ::ChunkSource::LoadMode lm, bool readOnly) /*override*/;
35
36 // vIndex: 20
37 virtual void acquireDiscarded(::std::unique_ptr<::LevelChunk, ::LevelChunkFinalDeleter> ptr) /*override*/;
38
39 // vIndex: 26
40 virtual ::std::unordered_map<::ChunkPos, ::std::weak_ptr<::LevelChunk>> const& getStorage() const /*override*/;
41
42 // vIndex: 25
43 virtual ::std::unordered_map<::ChunkPos, ::std::weak_ptr<::LevelChunk>> const* getChunkMap() /*override*/;
44
45 // vIndex: 28
46 virtual bool canCreateViews() const /*override*/;
47
48 // vIndex: 32
49 virtual bool canLaunchTasks() const /*override*/;
50
51 // vIndex: 0
52 virtual ~NetworkChunkSource() /*override*/ = default;
53 // NOLINTEND
54
55public:
56 // destructor thunk
57 // NOLINTBEGIN
58
59 // NOLINTEND
60
61public:
62 // virtual function thunks
63 // NOLINTBEGIN
64 MCFOLD ::std::shared_ptr<::LevelChunk> $getExistingChunk(::ChunkPos const& cp);
65
66 MCAPI ::std::shared_ptr<::LevelChunk>
67 $createNewChunk(::ChunkPos const& cp, ::ChunkSource::LoadMode lm, bool readOnly);
68
69 MCAPI ::std::shared_ptr<::LevelChunk>
70 $getOrLoadChunk(::ChunkPos const& cp, ::ChunkSource::LoadMode lm, bool readOnly);
71
72 MCFOLD void $acquireDiscarded(::std::unique_ptr<::LevelChunk, ::LevelChunkFinalDeleter> ptr);
73
74 MCFOLD ::std::unordered_map<::ChunkPos, ::std::weak_ptr<::LevelChunk>> const& $getStorage() const;
75
76 MCFOLD ::std::unordered_map<::ChunkPos, ::std::weak_ptr<::LevelChunk>> const* $getChunkMap();
77
78 MCFOLD bool $canCreateViews() const;
79
80 MCFOLD bool $canLaunchTasks() const;
81 // NOLINTEND
82
83public:
84 // vftables
85 // NOLINTBEGIN
86 MCAPI static void** $vftable();
87 // NOLINTEND
88};
Definition ChunkPos.h:11
Definition ChunkSource.h:34
Definition LevelChunk.h:73
Definition NetworkChunkSource.h:15
Definition LevelChunkFinalDeleter.h:5