LeviLamina
Loading...
Searching...
No Matches
ExitVehicleSystemImpl.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/optional_ref.h"
7#include "mc/deps/ecs/Optional.h"
8#include "mc/deps/ecs/ViewT.h"
9#include "mc/deps/ecs/strict/AddRemove.h"
10#include "mc/deps/ecs/strict/EntityFactoryT.h"
11#include "mc/deps/ecs/strict/EntityModifier.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#include "mc/world/actor/VehicleUtils.h"
21
22// auto generated forward declare list
23// clang-format off
24class AABB;
25class BaseGameVersion;
29class Vec3;
49struct MobFlagComponent;
52struct OffsetsComponent;
56struct PlayerComponent;
63struct VehicleComponent;
64// clang-format on
65
66struct ExitVehicleSystemImpl : public ::IStrictTickingSystem<::StrictExecutionContext<
67 ::Filter<
68 ::CanStandOnSnowFlagComponent,
69 ::HasLightweightFamilyFlagComponent,
70 ::HorseFlagComponent,
71 ::MobFlagComponent,
72 ::ParrotFlagComponent,
73 ::VehicleComponent,
74 ::CamelFlagComponent,
75 ::PlayerComponent,
76 ::StopRidingRequestComponent>,
77 ::Read<
78 ::AABBShapeComponent,
79 ::MovementAbilitiesComponent,
80 ::ActorTypeComponent,
81 ::FallDistanceComponent,
82 ::PassengerComponent,
83 ::ActorGameTypeComponent,
84 ::ActorDataFlagComponent,
85 ::VehicleComponent,
86 ::ActorRotationComponent,
87 ::MobBodyRotationComponent,
88 ::RenderRotationComponent,
89 ::StandAnimationComponent,
90 ::OffsetsComponent,
91 ::VanillaOffsetComponent,
92 ::PassengerRenderingRidingOffsetComponent,
93 ::DimensionTypeComponent,
94 ::EjectedByActivatorRailFlagComponent,
95 ::PostTickPositionDeltaComponent>,
96 ::Write<::AABBShapeComponent, ::ActorRotationComponent, ::StateVectorComponent>,
97 ::AddRemove<::ActorSetPositionRequestComponent>,
98 ::GlobalRead<::ExternalDataComponent, ::LocalConstBlockSourceFactoryComponent>,
99 ::GlobalWrite<>,
100 ::EntityFactoryT<>>> {
101public:
102 // member variables
103 // NOLINTBEGIN
106 // NOLINTEND
107
108public:
109 // prevent constructor by default
113
114public:
115 // virtual functions
116 // NOLINTBEGIN
117 // vIndex: 6
118 virtual void singleTick(
120 ::Filter<
130 ::Read<
153 ::EntityFactoryT<>>& executionContext,
154 ::StrictEntityContext& entityContext
155 ) /*override*/;
156
157 // vIndex: 5
158 virtual void tick(::StrictExecutionContext<
159 ::Filter<
169 ::Read<
192 ::EntityFactoryT<>>& executionContext) /*override*/;
193
194 // vIndex: 0
195 virtual ~ExitVehicleSystemImpl() /*override*/ = default;
196 // NOLINTEND
197
198public:
199 // static functions
200 // NOLINTBEGIN
201 MCAPI static void _tickExitVehicle(
202 ::StrictEntityContext const& entity,
203 ::PassengerComponent const& passenger,
204 ::AABBShapeComponent const& aabb,
205 ::StateVectorComponent const& svc,
206 ::OffsetsComponent const& offsetsComponent,
207 ::ActorDataSeatOffsetComponent const& actorDataSeatOffset,
208 ::ActorRotationComponent& rotation,
211 ::Optional<::EjectedByActivatorRailFlagComponent const> ejectedByActivatorRailFlagComponent,
212 ::BaseGameVersion const& baseGameVersion,
213 ::ViewT<
222 ::Filter<
232 ::Read<
255 ::EntityFactoryT<>>& executionContext,
256 bool isClientSide,
257 ::IConstBlockSource const& region
258 );
259
260 MCAPI static auto getExitStrategy(
261 ::BaseGameVersion const& version,
264 )
265 -> ::std::optional<
266 ::Vec3> (*)(::VehicleUtils::VehicleDirections const&, ::std::function<bool(::Vec3 const&, ::Vec3 const&)>);
267
268 MCAPI static bool tryPlaceAt(
269 ::Vec3 const& groundPos,
270 ::AABB const& aabbEntity,
271 ::IConstBlockSource const& region,
273 );
274 // NOLINTEND
275
276public:
277 // destructor thunk
278 // NOLINTBEGIN
279
280 // NOLINTEND
281
282public:
283 // virtual function thunks
284 // NOLINTBEGIN
285 MCAPI void $singleTick(
287 ::Filter<
297 ::Read<
320 ::EntityFactoryT<>>& executionContext,
321 ::StrictEntityContext& entityContext
322 );
323
324 MCAPI void $tick(::StrictExecutionContext<
325 ::Filter<
335 ::Read<
358 ::EntityFactoryT<>>& executionContext);
359 // NOLINTEND
360
361public:
362 // vftables
363 // NOLINTBEGIN
364 MCAPI static void** $vftable();
365 // NOLINTEND
366};
Definition AABB.h:16
Definition BaseGameVersion.h:13
Definition EntityModifier.h:6
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition IStrictTickingSystem.h:6
Definition Optional.h:8
Definition StrictEntityContext.h:10
Definition StrictExecutionContext.h:6
Definition Vec3.h:10
Definition ViewT.h:6
Definition optional_ref.h:10
Definition AABBShapeComponent.h:11
Definition ActorDataFlagComponent.h:8
Definition ActorDataSeatOffsetComponent.h:8
Definition ActorGameTypeComponent.h:8
Definition ActorIsBeingDestroyedFlagComponent.h:5
Definition ActorRotationComponent.h:10
Definition ActorSetPositionRequestComponent.h:8
Definition ActorTypeComponent.h:8
Definition AddRemove.h:6
Definition CamelFlagComponent.h:5
Definition CanStandOnSnowFlagComponent.h:5
Definition DimensionTypeComponent.h:13
Definition EjectedByActivatorRailFlagComponent.h:5
Definition EntityFactoryT.h:6
Definition ExitFromPassengerFlagComponent.h:5
Definition ExitVehicleSystemImpl.h:100
Definition ExternalDataComponent.h:10
Definition FallDistanceComponent.h:5
Definition Filter.h:6
Definition GlobalRead.h:6
Definition GlobalWrite.h:6
Definition HasLightweightFamilyFlagComponent.h:5
Definition HorseFlagComponent.h:5
Definition Include.h:6
Definition LocalConstBlockSourceFactoryComponent.h:8
Definition MobBodyRotationComponent.h:5
Definition MobFlagComponent.h:5
Definition MovementAbilitiesComponent.h:8
Definition MovementInterpolatorComponent.h:11
Definition OffsetsComponent.h:10
Definition ParrotFlagComponent.h:5
Definition PassengerComponent.h:10
Definition PassengerRenderingRidingOffsetComponent.h:10
Definition PlayerComponent.h:5
Definition PostTickPositionDeltaComponent.h:8
Definition Read.h:6
Definition RenderRotationComponent.h:10
Definition StandAnimationComponent.h:5
Definition StateVectorComponent.h:10
Definition StopRidingRequestComponent.h:5
Definition VanillaOffsetComponent.h:10
Definition VehicleComponent.h:10
Definition VehicleUtils.h:21
Definition Write.h:6
Definition Alias.h:14