LeviLamina
Loading...
Searching...
No Matches
ActorSetPosSystem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/ecs/strict/AddRemove.h"
7#include "mc/deps/ecs/strict/EntityFactoryT.h"
8#include "mc/deps/ecs/strict/Filter.h"
9#include "mc/deps/ecs/strict/GlobalRead.h"
10#include "mc/deps/ecs/strict/GlobalWrite.h"
11#include "mc/deps/ecs/strict/IStrictTickingSystem.h"
12#include "mc/deps/ecs/strict/Read.h"
13#include "mc/deps/ecs/strict/StrictExecutionContext.h"
14#include "mc/deps/ecs/strict/Write.h"
15
16// auto generated forward declare list
17// clang-format off
18class AABB;
20class EntityContext;
21class HitboxComponent;
23class Vec2;
24class Vec3;
34struct Hitbox;
36struct OffsetsComponent;
38struct PlayerComponent;
43// clang-format on
44
45class ActorSetPosSystem : public ::IStrictTickingSystem<::StrictExecutionContext<
46 ::Filter<
47 ::ActorAddedFlagComponent,
48 ::ActorRemovedFlagComponent,
49 ::LocalPlayerComponent,
50 ::PaintingFlagComponent,
51 ::PlayerComponent,
52 ::ShulkerFlagComponent>,
53 ::Read<::ActorOwnerComponent, ::ChunkPositionComponent, ::OffsetsComponent>,
54 ::Write<
55 ::AABBShapeComponent,
56 ::ActorSetPositionRequestComponent,
57 ::HitboxComponent,
58 ::StateVectorComponent,
59 ::SynchedActorDataComponent,
60 ::ActorDataFlagComponent,
61 ::ActorDataDirtyFlagsComponent>,
62 ::AddRemove<
63 ::ActorChunkMoveFlagComponent,
64 ::ActorLocalPlayerEntityMovedFlagComponent,
65 ::ActorSetPositionRequestComponent>,
66 ::GlobalRead<>,
67 ::GlobalWrite<>,
68 ::EntityFactoryT<>>> {
69public:
70 // ActorSetPosSystem inner types define
80 ::Write<
95
96public:
97 // member variables
98 // NOLINTBEGIN
99 ::ll::TypedStorage<1, 1, bool const> mIsClientSide;
100 // NOLINTEND
101
102public:
103 // virtual functions
104 // NOLINTBEGIN
105 virtual void tick(
107 ::Filter<
115 ::Write<
129 ::EntityFactoryT<>>& executionContext
130 ) /*override*/;
131
132 virtual void singleTick(
134 ::Filter<
142 ::Write<
156 ::EntityFactoryT<>>& executionContext,
157 ::StrictEntityContext& entityContext
158 ) /*override*/;
159 // NOLINTEND
160
161public:
162 // static functions
163 // NOLINTBEGIN
164 MCAPI static void actorUpdateOwnerChunk(::EntityContext& entity);
165
166 MCAPI static ::TickingSystemWithInfo createSystem(bool isClientSide);
167
168 MCFOLD static void moveHitboxTo(::Vec3 const& pos, ::std::vector<::Hitbox>& hitboxes);
169
170 MCAPI static ::AABB refreshAABB(float heightOffset, ::Vec3 const& pos, ::Vec2 const& aabbDim);
171
172 MCAPI static void setPosition(::EntityContext& entity, ::Vec3 const& position, bool isClientSide);
173 // NOLINTEND
174
175public:
176 // virtual function thunks
177 // NOLINTBEGIN
178 MCAPI void $tick(
180 ::Filter<
188 ::Write<
202 ::EntityFactoryT<>>& executionContext
203 );
204
205 MCAPI void $singleTick(
207 ::Filter<
215 ::Write<
229 ::EntityFactoryT<>>& executionContext,
230 ::StrictEntityContext& entityContext
231 );
232
233
234 // NOLINTEND
235
236public:
237 // vftables
238 // NOLINTBEGIN
239 MCNAPI static void** $vftable();
240 // NOLINTEND
241};
Definition AABB.h:18
Definition ActorOwnerComponent.h:10
Definition ActorSetPosSystem.h:68
static MCAPI void ** $vftable()
Definition EntityContext.h:17
Definition HitboxComponent.h:10
Definition IStrictTickingSystem.h:6
Definition StrictEntityContext.h:14
Definition StrictExecutionContext.h:6
Definition Vec2.h:5
Definition Vec3.h:10
Definition AABBShapeComponent.h:9
Definition ActorAddedFlagComponent.h:5
Definition ActorChunkMoveFlagComponent.h:5
Definition ActorDataDirtyFlagsComponent.h:5
Definition ActorDataFlagComponent.h:10
Definition ActorLocalPlayerEntityMovedFlagComponent.h:5
Definition ActorRemovedFlagComponent.h:5
Definition ActorSetPositionRequestComponent.h:8
Definition AddRemove.h:6
Definition ChunkPositionComponent.h:8
Definition EntityFactoryT.h:6
Definition Filter.h:6
Definition GlobalRead.h:6
Definition GlobalWrite.h:6
Definition Hitbox.h:9
Definition LocalPlayerComponent.h:5
Definition OffsetsComponent.h:8
Definition PaintingFlagComponent.h:5
Definition PlayerComponent.h:5
Definition Read.h:6
Definition ShulkerFlagComponent.h:5
Definition StateVectorComponent.h:8
Definition SynchedActorDataComponent.h:8
Definition TickingSystemWithInfo.h:13
Definition Write.h:6