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*/;
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 // destructor thunk
59 // NOLINTBEGIN
60 MCNAPI void $dtor();
61 // NOLINTEND
62
63public:
64 // virtual function thunks
65 // NOLINTBEGIN
66 MCNAPI bool $canCreateViews() const;
67
68 MCNAPI ::std::shared_ptr<::LevelChunk>
69 $getOrLoadChunk(::ChunkPos const& cp, ::ChunkSource::LoadMode lm, bool readOnly);
70
71 MCNAPI bool $isChunkKnown(::ChunkPos const& chunkPos);
72
73 MCNAPI ::std::shared_ptr<::LevelChunk>
74 $createNewChunk(::ChunkPos const& cp, ::ChunkSource::LoadMode lm, bool readOnly);
75
76 MCNAPI ::std::shared_ptr<::LevelChunk> $getExistingChunk(::ChunkPos const& cp);
77
78
79 // NOLINTEND
80
81public:
82 // vftables
83 // NOLINTBEGIN
84 MCNAPI static void** $vftable();
85 // NOLINTEND
86};
Definition ChunkPos.h:11
Definition Dimension.h:89
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 void $dtor()
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:87