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, 432, ::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 getBoundsCopy() 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(::Dimension& dimension, ::mce::UUID uniqueId, ::Bounds const& bounds, ::ActorUniqueID entityId);
128
129 MCAPI TickingArea(
130 ::Dimension& dimension,
131 ::mce::UUID uniqueId,
132 ::Bounds const& bounds,
133 ::ActorUniqueID entityId,
134 float maxDistToPlayers
135 );
136
137 MCAPI TickingArea(
138 ::Dimension& dimension,
139 ::mce::UUID uniqueId,
140 ::std::string const& name,
141 ::Bounds const& bounds,
142 bool isCircle,
143 ::TickingAreaLoadMode loadMode
144 );
145
146 MCAPI TickingArea(
147 ::Dimension& dimension,
148 ::mce::UUID uniqueId,
149 ::std::string const& name,
150 ::ActorUniqueID entityId,
151 ::Bounds const& bounds,
152 bool isCircle,
153 float maxDistToPlayers,
154 bool alwaysActive,
155 ::TickingAreaLoadMode loadMode
156 );
157
158 MCAPI void _center(::LevelStorage& levelStorage);
159
160 MCAPI void _save(::LevelStorage& levelStorage);
161
162 MCAPI void addScope(::std::optional<uint64> scope);
163 // NOLINTEND
164
165public:
166 // constructor thunks
167 // NOLINTBEGIN
168 MCAPI void* $ctor(::Dimension& dimension, ::mce::UUID uniqueId, ::Bounds const& bounds, ::ActorUniqueID entityId);
169
170 MCAPI void* $ctor(
171 ::Dimension& dimension,
172 ::mce::UUID uniqueId,
173 ::Bounds const& bounds,
174 ::ActorUniqueID entityId,
175 float maxDistToPlayers
176 );
177
178 MCAPI void* $ctor(
179 ::Dimension& dimension,
180 ::mce::UUID uniqueId,
181 ::std::string const& name,
182 ::Bounds const& bounds,
183 bool isCircle,
184 ::TickingAreaLoadMode loadMode
185 );
186
187 MCAPI void* $ctor(
188 ::Dimension& dimension,
189 ::mce::UUID uniqueId,
190 ::std::string const& name,
191 ::ActorUniqueID entityId,
192 ::Bounds const& bounds,
193 bool isCircle,
194 float maxDistToPlayers,
195 bool alwaysActive,
196 ::TickingAreaLoadMode loadMode
197 );
198 // NOLINTEND
199
200public:
201 // destructor thunk
202 // NOLINTBEGIN
203 MCAPI void $dtor();
204 // NOLINTEND
205
206public:
207 // virtual function thunks
208 // NOLINTBEGIN
209 MCFOLD ::mce::UUID const& $getId() const;
210
211 MCFOLD ::std::string const& $getName() const;
212
213 MCFOLD ::ActorUniqueID const& $getEntityId() const;
214
215 MCAPI ::Bounds const $getBoundsCopy() const;
216
217 MCAPI bool $isEntityOwned() const;
218
219 MCFOLD bool $isAlwaysActive() const;
220
221 MCAPI float $getMaxDistToPlayers() const;
222
223 MCFOLD ::ITickingAreaView const& $getView() const;
224
225 MCFOLD ::ITickingAreaView& $getView();
226
227 MCFOLD ::WeakRef<::BlockSource> const $getBlockSource() const;
228
229 MCFOLD ::WeakRef<::BlockSource> $getBlockSource();
230
231 MCAPI ::TickingAreaDescription $getDescription() const;
232
233 MCAPI ::TickingAreaLoadMode $getLoadMode() const;
234
235 MCAPI void $setLoadMode(::TickingAreaLoadMode loadMode, ::LevelStorage& levelStorage);
236
237 MCAPI bool $isPreloadDone() const;
238
239 MCAPI void $tick(::Tick const& currentTick, bool randomize);
240
241 MCAPI void $tickSeasons(::Random& random);
242
243 MCAPI void $updatePosition(::Vec3 const& pos);
244
245 MCAPI void $updateAndCenter(::LevelStorage& levelStorage, ::Tick currentLevelTick);
246
247 MCAPI ::Actor* $findOwner(uchar& pendingChunks);
248
249 MCFOLD bool $entityHasBeenFound() const;
250
251 MCFOLD void $setEntityFound();
252
253 MCAPI bool $isRemoved();
254
255 MCAPI void $remove(::LevelStorage& levelStorage);
256
257 MCAPI void
258 $onComponentChanged(uint radius, float maxDistToPlayers, bool alwaysActive, ::LevelStorage& levelStorage);
259
260 MCFOLD bool $isScoped() const;
261
262 MCFOLD ::std::optional<uint64> const& $getScope() const;
263
264 MCFOLD bool $isDoneLoadingScoped() const;
265
266 MCAPI bool $isStandalone() const;
267
268
269 // NOLINTEND
270
271public:
272 // vftables
273 // NOLINTBEGIN
274 MCNAPI static void** $vftable();
275 // NOLINTEND
276};
Definition Actor.h:125
Definition BlockSource.h:73
Definition Dimension.h:89
Definition ITickingAreaView.h:17
Definition ITickingArea.h:25
Definition LevelStorage.h:26
Definition Random.h:10
static MCAPI void ** $vftable()
Definition Vec3.h:10
Definition UUID.h:7
Definition ActorUniqueID.h:10
Definition Bounds.h:8
Definition Tick.h:5
Definition TickingAreaDescription.h:9