LeviLamina
Loading...
Searching...
No Matches
EditorChunkSource.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 Dimension;
12class LevelChunk;
13// clang-format on
14
15class EditorChunkSource : public ::ChunkSource {
16public:
17 // member variables
18 // NOLINTBEGIN
19 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::LevelChunk>>> mStructureLevelChunks;
20 // NOLINTEND
21
22public:
23 // prevent constructor by default
24 EditorChunkSource();
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual ~EditorChunkSource() /*override*/ = default;
30
31 virtual bool canCreateViews() const /*override*/;
32
33 virtual ::std::shared_ptr<::LevelChunk>
34 getOrLoadChunk(::ChunkPos const& cp, ::ChunkSource::LoadMode lm, bool readOnly) /*override*/;
35
36 virtual bool isChunkKnown(::ChunkPos const& chunkPos) /*override*/;
37
38 virtual ::std::shared_ptr<::LevelChunk>
39 createNewChunk(::ChunkPos const& cp, ::ChunkSource::LoadMode lm, bool readOnly) /*override*/;
40
41 virtual ::std::shared_ptr<::LevelChunk> getExistingChunk(::ChunkPos const& cp) /*override*/;
42 // NOLINTEND
43
44public:
45 // member functions
46 // NOLINTBEGIN
47 MCNAPI
48 EditorChunkSource(::Dimension* dimension, int side, ::std::vector<::std::unique_ptr<::LevelChunk>> levelChunks);
49 // NOLINTEND
50
51public:
52 // constructor thunks
53 // NOLINTBEGIN
54 MCNAPI void* $ctor(::Dimension* dimension, int side, ::std::vector<::std::unique_ptr<::LevelChunk>> levelChunks);
55 // NOLINTEND
56
57public:
58 // virtual function thunks
59 // NOLINTBEGIN
60 MCNAPI bool $canCreateViews() const;
61
62 MCNAPI ::std::shared_ptr<::LevelChunk>
63 $getOrLoadChunk(::ChunkPos const& cp, ::ChunkSource::LoadMode lm, bool readOnly);
64
65 MCNAPI bool $isChunkKnown(::ChunkPos const& chunkPos);
66
67 MCNAPI ::std::shared_ptr<::LevelChunk>
68 $createNewChunk(::ChunkPos const& cp, ::ChunkSource::LoadMode lm, bool readOnly);
69
70 MCNAPI ::std::shared_ptr<::LevelChunk> $getExistingChunk(::ChunkPos const& cp);
71
72
73 // NOLINTEND
74
75public:
76 // vftables
77 // NOLINTBEGIN
78 MCNAPI static void** $vftable();
79 // NOLINTEND
80};
Definition ChunkPos.h:11
Definition Dimension.h:85
MCAPI void * $ctor(::Dimension *dimension, int side, ::std::vector<::std::unique_ptr<::LevelChunk > > levelChunks)
MCAPI bool $isChunkKnown(::ChunkPos const &chunkPos)
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 EditorChunkSource(::Dimension *dimension, int side, ::std::vector<::std::unique_ptr<::LevelChunk > > levelChunks)
MCAPI bool $canCreateViews() const
MCAPI ::std::shared_ptr<::LevelChunk > $createNewChunk(::ChunkPos const &cp, ::ChunkSource::LoadMode lm, bool readOnly)
Definition LevelChunk.h:79