LeviLamina
Loading...
Searching...
No Matches
System.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#include "mc/entity/components/LocalConstBlockSource.h"
16#include "mc/entity/components/LocalSpatialEntityFetcher.h"
17
18// auto generated forward declare list
19// clang-format off
20class AABB;
41struct MobFlagComponent;
44struct OffsetsComponent;
48struct PlayerComponent;
52struct VehicleComponent;
53namespace BlockSourceVisitor { struct CollisionShape; }
54// clang-format on
55
56namespace MoveCollisionSystem {
57
58struct System : public ::IStrictTickingSystem<::StrictExecutionContext<
59 ::Filter<
60 ::CanStandOnSnowFlagComponent,
61 ::HasLightweightFamilyFlagComponent,
62 ::HorseFlagComponent,
63 ::MobFlagComponent,
64 ::ParrotFlagComponent,
65 ::VehicleComponent,
66 ::CamelFlagComponent,
67 ::PlayerComponent,
68 ::CollidableMobFlagComponent,
69 ::FallingBlockFlagComponent>,
70 ::Read<
71 ::AABBShapeComponent,
72 ::MovementAbilitiesComponent,
73 ::ActorTypeComponent,
74 ::FallDistanceComponent,
75 ::PassengerComponent,
76 ::ActorGameTypeComponent,
77 ::ActorDataFlagComponent,
78 ::VehicleComponent,
79 ::ActorRotationComponent,
80 ::MobBodyRotationComponent,
81 ::RenderRotationComponent,
82 ::StandAnimationComponent,
83 ::OffsetsComponent,
84 ::VanillaOffsetComponent,
85 ::PassengerRenderingRidingOffsetComponent,
86 ::DimensionTypeComponent,
87 ::MaxAutoStepComponent,
88 ::CollidableMobNearFlagComponent>,
89 ::Write<::MoveRequestComponent>,
90 ::AddRemove<>,
91 ::GlobalRead<
92 ::ExternalDataComponent,
93 ::LocalConstBlockSourceFactoryComponent,
94 ::LocalSpatialEntityFetcherFactoryComponent>,
95 ::GlobalWrite<>,
96 ::EntityFactoryT<>>> {
97public:
98 // System inner types declare
99 // clang-format off
100 struct SpatialQueries;
102 // clang-format on
103
104 // System inner types define
106 public:
107 // member variables
108 // NOLINTBEGIN
109 ::ll::TypedStorage<8, 280, ::LocalSpatialEntityFetcher> mFetcher;
110 ::ll::TypedStorage<8, 280, ::LocalConstBlockSource> mBlockSource;
111 // NOLINTEND
112
113 public:
114 // member functions
115 // NOLINTBEGIN
116 MCAPI ~SpatialQueries();
117 // NOLINTEND
118
119 public:
120 // destructor thunk
121 // NOLINTBEGIN
122 MCAPI void $dtor();
123 // NOLINTEND
124 };
125
127 public:
128 // member variables
129 // NOLINTBEGIN
130 ::ll::TypedStorage<8, 8, ::LocalConstBlockSourceFactoryComponent*> mBlockSourceFactory;
131 ::ll::TypedStorage<8, 8, ::LocalSpatialEntityFetcherFactoryComponent*> mFetcherFactory;
132 // NOLINTEND
133 };
134
135 using CollisionShapeVec = ::std::vector<::BlockSourceVisitor::CollisionShape>;
136
137public:
138 // member variables
139 // NOLINTBEGIN
140 ::ll::TypedStorage<8, 24, ::std::vector<::BlockSourceVisitor::CollisionShape>> mScratchTempCollisionShapes;
141 ::ll::TypedStorage<8, 24, ::std::vector<::BlockSourceVisitor::CollisionShape>> mScratchTempCollisionShapes2;
142 ::ll::TypedStorage<8, 24, ::std::vector<::AABB>> mScratchTempShapes;
143 // NOLINTEND
144
145public:
146 // virtual functions
147 // NOLINTBEGIN
148 virtual void tick(
150 ::Filter<
161 ::Read<
188 ) /*override*/;
189
190 virtual void singleTick(
192 ::Filter<
203 ::Read<
229 ::EntityFactoryT<>>& executionContext,
230 ::StrictEntityContext& entityContext
231 ) /*override*/;
232
233 virtual ~System() /*override*/;
234 // NOLINTEND
235
236public:
237 // static functions
238 // NOLINTBEGIN
239 MCAPI static ::std::optional<::MoveCollisionSystem::System::SpatialQueryFactories> createSpatialQueryFactories(
241 ::Filter<
252 ::Read<
279 );
280 // NOLINTEND
281
282public:
283 // destructor thunk
284 // NOLINTBEGIN
285 MCAPI void $dtor();
286 // NOLINTEND
287
288public:
289 // virtual function thunks
290 // NOLINTBEGIN
291 MCAPI void $tick(
293 ::Filter<
304 ::Read<
331 );
332
333 MCAPI void $singleTick(
335 ::Filter<
346 ::Read<
372 ::EntityFactoryT<>>& executionContext,
373 ::StrictEntityContext& entityContext
374 );
375
376
377 // NOLINTEND
378
379public:
380 // vftables
381 // NOLINTBEGIN
382 MCNAPI static void** $vftable();
383 // NOLINTEND
384};
385
386} // namespace MoveCollisionSystem
Definition AABB.h:18
Definition IStrictTickingSystem.h:6
Definition StrictEntityContext.h:8
Definition StrictExecutionContext.h:6
Definition AABBShapeComponent.h:9
Definition ActorDataFlagComponent.h:9
Definition ActorGameTypeComponent.h:8
Definition ActorRotationComponent.h:8
Definition ActorTypeComponent.h:8
Definition AddRemove.h:6
Definition CollisionShape.h:16
Definition CamelFlagComponent.h:5
Definition CanStandOnSnowFlagComponent.h:5
Definition CollidableMobFlagComponent.h:5
Definition CollidableMobNearFlagComponent.h:5
Definition DimensionTypeComponent.h:13
Definition EntityFactoryT.h:6
Definition ExternalDataComponent.h:10
Definition FallDistanceComponent.h:5
Definition FallingBlockFlagComponent.h:5
Definition Filter.h:6
Definition GlobalRead.h:6
Definition GlobalWrite.h:6
Definition HasLightweightFamilyFlagComponent.h:5
Definition HorseFlagComponent.h:5
Definition LocalConstBlockSourceFactoryComponent.h:8
Definition LocalSpatialEntityFetcherFactoryComponent.h:8
Definition MaxAutoStepComponent.h:8
Definition MobBodyRotationComponent.h:5
Definition MobFlagComponent.h:5
Definition System.h:96
static MCAPI void ** $vftable()
Definition MoveRequestComponent.h:11
Definition MovementAbilitiesComponent.h:5
Definition OffsetsComponent.h:8
Definition ParrotFlagComponent.h:5
Definition PassengerComponent.h:8
Definition PassengerRenderingRidingOffsetComponent.h:8
Definition PlayerComponent.h:5
Definition Read.h:6
Definition RenderRotationComponent.h:8
Definition StandAnimationComponent.h:5
Definition VanillaOffsetComponent.h:8
Definition VehicleComponent.h:10
Definition Write.h:6
Definition context.h:5