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 // virtual function thunks
57 // NOLINTBEGIN
58 MCNAPI ::std::shared_ptr<::LevelChunk> $getExistingChunk(::ChunkPos const& cp);
59
60 MCNAPI ::std::shared_ptr<::LevelChunk>
61 $createNewChunk(::ChunkPos const& cp, ::ChunkSource::LoadMode lm, bool readOnly);
62
63 MCNAPI ::std::shared_ptr<::LevelChunk>
64 $getOrLoadChunk(::ChunkPos const& cp, ::ChunkSource::LoadMode lm, bool readOnly);
65
66 MCNAPI void $acquireDiscarded(::std::unique_ptr<::LevelChunk, ::LevelChunkFinalDeleter> ptr);
67
68 MCNAPI ::std::unordered_map<::ChunkPos, ::std::weak_ptr<::LevelChunk>> const& $getStorage() const;
69
70 MCNAPI ::std::unordered_map<::ChunkPos, ::std::weak_ptr<::LevelChunk>> const* $getChunkMap();
71
72 MCNAPI bool $canCreateViews() const;
73
74 MCNAPI bool $canLaunchTasks() const;
75 // NOLINTEND
76
77public:
78 // vftables
79 // NOLINTBEGIN
80 MCNAPI static void** $vftable();
81 // NOLINTEND
82};
Definition ChunkPos.h:11
Definition ChunkSource.h:34
Definition LevelChunk.h:74
Definition NetworkChunkSource.h:15
MCAPI ::std::shared_ptr<::LevelChunk > $getOrLoadChunk(::ChunkPos const &cp, ::ChunkSource::LoadMode lm, bool readOnly)
MCAPI ::std::shared_ptr<::LevelChunk > $getExistingChunk(::ChunkPos const &cp)
static MCAPI void ** $vftable()
MCAPI bool $canCreateViews() const
MCAPI ::std::unordered_map<::ChunkPos, ::std::weak_ptr<::LevelChunk > > const * $getChunkMap()
MCAPI ::std::shared_ptr<::LevelChunk > $createNewChunk(::ChunkPos const &cp, ::ChunkSource::LoadMode lm, bool readOnly)
MCAPI ::std::unordered_map<::ChunkPos, ::std::weak_ptr<::LevelChunk > > const & $getStorage() const
MCAPI void $acquireDiscarded(::std::unique_ptr<::LevelChunk, ::LevelChunkFinalDeleter > ptr)
MCAPI bool $canLaunchTasks() const
Definition LevelChunkFinalDeleter.h:5