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