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
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
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 // vIndex: 0
30 virtual ~EditorChunkSource() /*override*/ = default;
31
32 // vIndex: 31
33 virtual bool canCreateViews() const /*override*/;
34
35 // vIndex: 8
36 virtual ::std::shared_ptr<::LevelChunk>
37 getOrLoadChunk(::ChunkPos const& cp, ::ChunkSource::LoadMode lm, bool readOnly) /*override*/;
38
39 // vIndex: 5
40 virtual bool isChunkKnown(::ChunkPos const& chunkPos) /*override*/;
41
42 // vIndex: 7
43 virtual ::std::shared_ptr<::LevelChunk>
44 createNewChunk(::ChunkPos const& cp, ::ChunkSource::LoadMode lm, bool readOnly) /*override*/;
45
46 // vIndex: 3
47 virtual ::std::shared_ptr<::LevelChunk> getExistingChunk(::ChunkPos const& cp) /*override*/;
48 // NOLINTEND
49
50public:
51 // member functions
52 // NOLINTBEGIN
53 MCNAPI
54 EditorChunkSource(::Dimension* dimension, int side, ::std::vector<::std::unique_ptr<::LevelChunk>> levelChunks);
55 // NOLINTEND
56
57public:
58 // constructor thunks
59 // NOLINTBEGIN
60 MCNAPI void* $ctor(::Dimension* dimension, int side, ::std::vector<::std::unique_ptr<::LevelChunk>> levelChunks);
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 // NOLINTEND
78
79public:
80 // vftables
81 // NOLINTBEGIN
82 MCNAPI static void** $vftable();
83 // NOLINTEND
84};
Definition ChunkPos.h:11
Definition ChunkSource.h:36
Definition Dimension.h:83
Definition EditorChunkSource.h:15
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:78