LeviLamina
Loading...
Searching...
No Matches
TickingArea.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec3.h"
7#include "mc/deps/game_refs/WeakRef.h"
8#include "mc/legacy/ActorUniqueID.h"
9#include "mc/platform/UUID.h"
10#include "mc/world/level/chunk/ChunkViewSource.h"
11#include "mc/world/level/ticking/ITickingArea.h"
12#include "mc/world/level/ticking/TickingAreaLoadMode.h"
13#include "mc/world/level/ticking/TickingAreaView.h"
14
15// auto generated forward declare list
16// clang-format off
17class Actor;
18class BlockSource;
19class Dimension;
21class LevelStorage;
22class Random;
23struct Bounds;
24struct Tick;
26// clang-format on
27
28class TickingArea : public ::ITickingArea {
29public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<8, 16, ::mce::UUID> mUID;
33 ::ll::TypedStorage<8, 32, ::std::string> mName;
34 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mEntityId;
35 ::ll::TypedStorage<8, 16, ::std::optional<uint64>> mScope;
36 ::ll::TypedStorage<4, 4, float> mMaxDistToPlayers;
37 ::ll::TypedStorage<1, 1, bool> mAlwaysActive;
38 ::ll::TypedStorage<1, 1, bool> mEntityFound;
39 ::ll::TypedStorage<1, 1, bool> mSizeChanged;
40 ::ll::TypedStorage<1, 1, bool> mRemoved;
41 ::ll::TypedStorage<1, 1, bool> mIsDoneLoadingScoped;
42 ::ll::TypedStorage<1, 1, ::TickingAreaLoadMode> mLoadMode;
43 ::ll::TypedStorage<4, 12, ::Vec3> mLastChunkUpdatePos;
44 ::ll::TypedStorage<4, 12, ::Vec3> mLastPos;
45 ::ll::TypedStorage<4, 4, uint> mLastRadius;
46 ::ll::TypedStorage<8, 504, ::ChunkViewSource> mChunkSource;
47 ::ll::TypedStorage<8, 16, ::WeakRef<::BlockSource>> mBlockSource;
48 ::ll::TypedStorage<8, 32, ::TickingAreaView> mView;
49 // NOLINTEND
50
51public:
52 // prevent constructor by default
53 TickingArea();
54
55public:
56 // virtual functions
57 // NOLINTBEGIN
58 virtual ~TickingArea() /*override*/;
59
60 virtual ::mce::UUID const& getId() const /*override*/;
61
62 virtual ::std::string const& getName() const /*override*/;
63
64 virtual ::ActorUniqueID const& getEntityId() const /*override*/;
65
66 virtual ::Bounds const& getBounds() const /*override*/;
67
68 virtual bool isEntityOwned() const /*override*/;
69
70 virtual bool isAlwaysActive() const /*override*/;
71
72 virtual float getMaxDistToPlayers() const /*override*/;
73
74 virtual ::ITickingAreaView const& getView() const /*override*/;
75
76 virtual ::ITickingAreaView& getView() /*override*/;
77
78 virtual ::WeakRef<::BlockSource> const getBlockSource() const /*override*/;
79
80 virtual ::WeakRef<::BlockSource> getBlockSource() /*override*/;
81
82 virtual ::TickingAreaDescription getDescription() const /*override*/;
83
84 virtual ::TickingAreaLoadMode getLoadMode() const /*override*/;
85
86 virtual void setLoadMode(::TickingAreaLoadMode loadMode, ::LevelStorage& levelStorage) /*override*/;
87
88 virtual bool isPreloadDone() const /*override*/;
89
90 virtual void tick(::Tick const& currentTick, bool randomize) /*override*/;
91
92 virtual void tickSeasons(::Random& random) /*override*/;
93
94 virtual void updatePosition(::Vec3 const& pos) /*override*/;
95
96 virtual void updateAndCenter(::LevelStorage& levelStorage, ::Tick currentLevelTick) /*override*/;
97
98 virtual ::Actor* findOwner(uchar& pendingChunks) /*override*/;
99
100 virtual bool entityHasBeenFound() const /*override*/;
101
102 virtual void setEntityFound() /*override*/;
103
104 virtual bool isRemoved() /*override*/;
105
106 virtual void remove(::LevelStorage& levelStorage) /*override*/;
107
108 virtual void onComponentChanged(
109 uint radius,
110 float maxDistToPlayers,
111 bool alwaysActive,
112 ::LevelStorage& levelStorage
113 ) /*override*/;
114
115 virtual bool isScoped() const /*override*/;
116
117 virtual ::std::optional<uint64> const& getScope() const /*override*/;
118
119 virtual bool isDoneLoadingScoped() const /*override*/;
120
121 virtual bool isStandalone() const /*override*/;
122 // NOLINTEND
123
124public:
125 // member functions
126 // NOLINTBEGIN
127 MCAPI TickingArea(
128 ::Dimension& dimension,
129 ::mce::UUID uniqueId,
130 ::std::string const& name,
131 ::ActorUniqueID entityId,
132 ::Bounds const& bounds,
133 bool isCircle,
134 float maxDistToPlayers,
135 bool alwaysActive,
136 ::TickingAreaLoadMode loadMode
137 );
138
139 MCAPI void _center(::LevelStorage& levelStorage);
140
141 MCAPI void _save(::LevelStorage& levelStorage);
142 // NOLINTEND
143
144public:
145 // constructor thunks
146 // NOLINTBEGIN
147 MCAPI void* $ctor(
148 ::Dimension& dimension,
149 ::mce::UUID uniqueId,
150 ::std::string const& name,
151 ::ActorUniqueID entityId,
152 ::Bounds const& bounds,
153 bool isCircle,
154 float maxDistToPlayers,
155 bool alwaysActive,
156 ::TickingAreaLoadMode loadMode
157 );
158 // NOLINTEND
159
160public:
161 // destructor thunk
162 // NOLINTBEGIN
163 MCAPI void $dtor();
164 // NOLINTEND
165
166public:
167 // virtual function thunks
168 // NOLINTBEGIN
169 MCFOLD ::mce::UUID const& $getId() const;
170
171 MCFOLD ::std::string const& $getName() const;
172
173 MCFOLD ::ActorUniqueID const& $getEntityId() const;
174
175 MCAPI ::Bounds const& $getBounds() const;
176
177 MCAPI bool $isEntityOwned() const;
178
179 MCFOLD bool $isAlwaysActive() const;
180
181 MCAPI float $getMaxDistToPlayers() const;
182
183 MCFOLD ::ITickingAreaView const& $getView() const;
184
185 MCFOLD ::ITickingAreaView& $getView();
186
187 MCFOLD ::WeakRef<::BlockSource> const $getBlockSource() const;
188
189 MCFOLD ::WeakRef<::BlockSource> $getBlockSource();
190
191 MCAPI ::TickingAreaDescription $getDescription() const;
192
193 MCAPI void $setLoadMode(::TickingAreaLoadMode loadMode, ::LevelStorage& levelStorage);
194
195 MCAPI bool $isPreloadDone() const;
196
197 MCAPI void $tick(::Tick const& currentTick, bool randomize);
198
199 MCAPI void $tickSeasons(::Random& random);
200
201 MCAPI void $updatePosition(::Vec3 const& pos);
202
203 MCAPI void $updateAndCenter(::LevelStorage& levelStorage, ::Tick currentLevelTick);
204
205 MCAPI ::Actor* $findOwner(uchar& pendingChunks);
206
207 MCAPI bool $entityHasBeenFound() const;
208
209 MCAPI void $setEntityFound();
210
211 MCAPI bool $isRemoved();
212
213 MCAPI void $remove(::LevelStorage& levelStorage);
214
215 MCAPI void
216 $onComponentChanged(uint radius, float maxDistToPlayers, bool alwaysActive, ::LevelStorage& levelStorage);
217
218 MCFOLD bool $isScoped() const;
219
220 MCFOLD ::std::optional<uint64> const& $getScope() const;
221
222 MCFOLD bool $isDoneLoadingScoped() const;
223
224 MCAPI bool $isStandalone() const;
225
226
227 // NOLINTEND
228
229public:
230 // vftables
231 // NOLINTBEGIN
232 MCNAPI static void** $vftable();
233 // NOLINTEND
234};
Definition Actor.h:105
Definition BlockSource.h:68
Definition Dimension.h:85
Definition ITickingAreaView.h:20
Definition ITickingArea.h:25
Definition LevelStorage.h:25
Definition Random.h:10
static MCAPI void ** $vftable()
Definition Vec3.h:10
Definition UUID.h:7
Definition ActorUniqueID.h:5
Definition Bounds.h:8
Definition Tick.h:5
Definition TickingAreaDescription.h:9