Skip to content
LeviMC
English
AutoLightDark
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/Optional.h"
7#include "mc/deps/ecs/ViewT.h"
8#include "mc/deps/ecs/strict/AddRemove.h"
9#include "mc/deps/ecs/strict/EntityFactoryT.h"
10#include "mc/deps/ecs/strict/EntityModifier.h"
11#include "mc/deps/ecs/strict/Exclude.h"
12#include "mc/deps/ecs/strict/Filter.h"
13#include "mc/deps/ecs/strict/GlobalRead.h"
14#include "mc/deps/ecs/strict/GlobalWrite.h"
15#include "mc/deps/ecs/strict/IStrictTickingSystem.h"
16#include "mc/deps/ecs/strict/Include.h"
17#include "mc/deps/ecs/strict/Read.h"
18#include "mc/deps/ecs/strict/StrictExecutionContext.h"
19#include "mc/deps/ecs/strict/Write.h"
20
21// auto generated forward declare list
22// clang-format off
24class EntityContext;
25class HitboxComponent;
27class Vec3;
37struct Hitbox;
39struct OffsetsComponent;
41struct PlayerComponent;
46// clang-format on
47
48class ActorSetPosSystem : public ::IStrictTickingSystem<::StrictExecutionContext<
49 ::Filter<
50 ::ActorAddedFlagComponent,
51 ::ActorRemovedFlagComponent,
52 ::LocalPlayerComponent,
53 ::PaintingFlagComponent,
54 ::PlayerComponent,
55 ::ShulkerFlagComponent>,
56 ::Read<::ActorOwnerComponent, ::ChunkPositionComponent, ::OffsetsComponent>,
57 ::Write<
58 ::AABBShapeComponent,
59 ::ActorSetPositionRequestComponent,
60 ::HitboxComponent,
61 ::StateVectorComponent,
62 ::SynchedActorDataComponent,
63 ::ActorDataFlagComponent,
64 ::ActorDataDirtyFlagsComponent>,
65 ::AddRemove<
66 ::ActorChunkMoveFlagComponent,
67 ::ActorLocalPlayerEntityMovedFlagComponent,
68 ::ActorSetPositionRequestComponent>,
69 ::GlobalRead<>,
70 ::GlobalWrite<>,
71 ::EntityFactoryT<>>> {
72public:
73 // ActorSetPosSystem inner types declare
74 // clang-format off
75 struct Views;
76 // clang-format on
77
78 // ActorSetPosSystem inner types define
79 struct Views {
80 public:
81 // member variables
82 // NOLINTBEGIN
83 ::ll::TypedStorage<
84 8,
85 72,
86 ::ViewT<
93 mPositionView;
94 ::ll::TypedStorage<
95 8,
96 56,
98 mHitboxView;
99 ::ll::TypedStorage<
100 8,
101 88,
102 ::ViewT<
109 mShulkerView;
110 ::ll::TypedStorage<
111 8,
112 56,
114 mLocalPlayerTickView;
115 ::ll::TypedStorage<
116 8,
117 64,
118 ::ViewT<
122 mLocalPlayerSingleTickView;
123 ::ll::TypedStorage<
124 8,
125 72,
126 ::ViewT<
132 mChunkTickView;
133 ::ll::TypedStorage<
134 8,
135 80,
136 ::ViewT<
143 mChunkSingleTickView;
144 ::ll::TypedStorage<
145 8,
146 24,
151 mTickModifier;
152 ::ll::TypedStorage<8, 8, ::EntityModifier<::ActorSetPositionRequestComponent>> mSingleTickModifier;
153 // NOLINTEND
154
155 public:
156 // prevent constructor by default
157 Views();
158
159 public:
160 // member functions
161 // NOLINTBEGIN
162 MCNAPI explicit Views(
164 ::Filter<
172 ::Write<
187 );
188 // NOLINTEND
189
190 public:
191 // constructor thunks
192 // NOLINTBEGIN
193 MCNAPI void* $ctor(
195 ::Filter<
203 ::Write<
218 );
219 // NOLINTEND
220 };
221
223 ::Filter<
231 ::Write<
246
247public:
248 // member variables
249 // NOLINTBEGIN
250 ::ll::TypedStorage<1, 1, bool const> mIsClientSide;
251 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ActorSetPosSystem::Views>> mViews;
252 // NOLINTEND
253
254public:
255 // virtual functions
256 // NOLINTBEGIN
257 virtual ~ActorSetPosSystem() /*override*/ = default;
258
259 virtual void tick(
261 ::Filter<
269 ::Write<
283 ::EntityFactoryT<>>& executionContext
284 ) /*override*/;
285
286 virtual void singleTick(
288 ::Filter<
296 ::Write<
310 ::EntityFactoryT<>>& executionContext,
311 ::StrictEntityContext& entityContext
312 ) /*override*/;
313 // NOLINTEND
314
315public:
316 // static functions
317 // NOLINTBEGIN
318 MCNAPI static void actorUpdateOwnerChunk(::EntityContext& entity);
319
320 MCNAPI static ::TickingSystemWithInfo createSystem(bool isClientSide);
321
322 MCNAPI static void moveHitboxTo(::Vec3 const& pos, ::std::vector<::Hitbox>& hitboxes);
323
324 MCNAPI static void setPosition(::EntityContext& entity, ::Vec3 const& position, bool isClientSide);
325 // NOLINTEND
326
327public:
328 // virtual function thunks
329 // NOLINTBEGIN
330 MCNAPI void $tick(
332 ::Filter<
340 ::Write<
354 ::EntityFactoryT<>>& executionContext
355 );
356
357 MCNAPI void $singleTick(
359 ::Filter<
367 ::Write<
381 ::EntityFactoryT<>>& executionContext,
382 ::StrictEntityContext& entityContext
383 );
384
385
386 // NOLINTEND
387
388public:
389 // vftables
390 // NOLINTBEGIN
391 MCNAPI static void** $vftable();
392 // NOLINTEND
393};
Definition ActorOwnerComponent.h:10
Definition ActorSetPosSystem.h:71
static MCAPI void actorUpdateOwnerChunk(::EntityContext &entity)
static MCAPI void moveHitboxTo(::Vec3 const &pos, ::std::vector<::Hitbox > &hitboxes)
static MCAPI ::TickingSystemWithInfo createSystem(bool isClientSide)
MCAPI void $tick(::StrictExecutionContext< ::Filter< ::ActorAddedFlagComponent, ::ActorRemovedFlagComponent, ::LocalPlayerComponent, ::PaintingFlagComponent, ::PlayerComponent, ::ShulkerFlagComponent >, ::Read<::ActorOwnerComponent, ::ChunkPositionComponent, ::OffsetsComponent >, ::Write< ::AABBShapeComponent, ::ActorSetPositionRequestComponent, ::HitboxComponent, ::StateVectorComponent, ::SynchedActorDataComponent, ::ActorDataFlagComponent, ::ActorDataDirtyFlagsComponent >, ::AddRemove< ::ActorChunkMoveFlagComponent, ::ActorLocalPlayerEntityMovedFlagComponent, ::ActorSetPositionRequestComponent >, ::GlobalRead<>, ::GlobalWrite<>, ::EntityFactoryT<> > &executionContext)
static MCAPI void ** $vftable()
static MCAPI void setPosition(::EntityContext &entity, ::Vec3 const &position, bool isClientSide)
MCAPI void $singleTick(::StrictExecutionContext< ::Filter< ::ActorAddedFlagComponent, ::ActorRemovedFlagComponent, ::LocalPlayerComponent, ::PaintingFlagComponent, ::PlayerComponent, ::ShulkerFlagComponent >, ::Read<::ActorOwnerComponent, ::ChunkPositionComponent, ::OffsetsComponent >, ::Write< ::AABBShapeComponent, ::ActorSetPositionRequestComponent, ::HitboxComponent, ::StateVectorComponent, ::SynchedActorDataComponent, ::ActorDataFlagComponent, ::ActorDataDirtyFlagsComponent >, ::AddRemove< ::ActorChunkMoveFlagComponent, ::ActorLocalPlayerEntityMovedFlagComponent, ::ActorSetPositionRequestComponent >, ::GlobalRead<>, ::GlobalWrite<>, ::EntityFactoryT<> > &executionContext, ::StrictEntityContext &entityContext)
Definition EntityContext.h:15
Definition EntityModifier.h:6
Definition HitboxComponent.h:10
Definition IStrictTickingSystem.h:6
Definition Optional.h:8
Definition StrictEntityContext.h:8
Definition StrictExecutionContext.h:6
Definition Vec3.h:10
Definition ViewT.h:6
Definition AABBShapeComponent.h:9
Definition ActorAddedFlagComponent.h:5
Definition ActorChunkMoveFlagComponent.h:5
Definition ActorDataDirtyFlagsComponent.h:5
Definition ActorDataFlagComponent.h:9
Definition ActorLocalPlayerEntityMovedFlagComponent.h:5
Definition ActorRemovedFlagComponent.h:5
Definition ActorSetPosSystem.h:79
MCAPI void * $ctor(::StrictExecutionContext< ::Filter< ::ActorAddedFlagComponent, ::ActorRemovedFlagComponent, ::LocalPlayerComponent, ::PaintingFlagComponent, ::PlayerComponent, ::ShulkerFlagComponent >, ::Read<::ActorOwnerComponent, ::ChunkPositionComponent, ::OffsetsComponent >, ::Write< ::AABBShapeComponent, ::ActorSetPositionRequestComponent, ::HitboxComponent, ::StateVectorComponent, ::SynchedActorDataComponent, ::ActorDataFlagComponent, ::ActorDataDirtyFlagsComponent >, ::AddRemove< ::ActorChunkMoveFlagComponent, ::ActorLocalPlayerEntityMovedFlagComponent, ::ActorSetPositionRequestComponent >, ::GlobalRead<>, ::GlobalWrite<>, ::EntityFactoryT<> > &context)
MCAPI Views(::StrictExecutionContext< ::Filter< ::ActorAddedFlagComponent, ::ActorRemovedFlagComponent, ::LocalPlayerComponent, ::PaintingFlagComponent, ::PlayerComponent, ::ShulkerFlagComponent >, ::Read<::ActorOwnerComponent, ::ChunkPositionComponent, ::OffsetsComponent >, ::Write< ::AABBShapeComponent, ::ActorSetPositionRequestComponent, ::HitboxComponent, ::StateVectorComponent, ::SynchedActorDataComponent, ::ActorDataFlagComponent, ::ActorDataDirtyFlagsComponent >, ::AddRemove< ::ActorChunkMoveFlagComponent, ::ActorLocalPlayerEntityMovedFlagComponent, ::ActorSetPositionRequestComponent >, ::GlobalRead<>, ::GlobalWrite<>, ::EntityFactoryT<> > &context)
Definition ActorSetPositionRequestComponent.h:8
Definition AddRemove.h:6
Definition ChunkPositionComponent.h:8
Definition EntityFactoryT.h:6
Definition Exclude.h:6
Definition Filter.h:6
Definition GlobalRead.h:6
Definition GlobalWrite.h:6
Definition Hitbox.h:9
Definition Include.h:6
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
Definition context.h:5