LeviLamina
Loading...
Searching...
No Matches
DimensionTransitionSystem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/ecs/ViewT.h"
7#include "mc/deps/ecs/strict/EntityModifier.h"
8#include "mc/deps/ecs/strict/Exclude.h"
9#include "mc/deps/ecs/strict/Include.h"
10
11// auto generated forward declare list
12// clang-format off
16class Player;
22struct PlayerComponent;
26struct VehicleComponent;
27// clang-format on
28
30public:
31 // DimensionTransitionSystem inner types define
32 using DimensionRequestHandler = ::std::function<bool(::Player&, ::ChangeDimensionRequest&)>;
33
34 using IsSuspended = ::std::function<bool(::Player&)>;
35
36public:
37 // static functions
38 // NOLINTBEGIN
39 MCNAPI static void _tickPortalTransition(
40 ::ViewT<
46 );
47
48 MCNAPI static void _tickReadyToContinueServer(
49 ::ViewT<
53 );
54
55 MCNAPI static void _tickVehicleDismount(
57 passengers,
59 vehicles,
61 );
62
63 MCNAPI static ::TickingSystemWithInfo createPortalTransition();
64
65 MCNAPI static ::TickingSystemWithInfo createVehicleDismount();
66
67 MCNAPI static void requestPlayerChangeDimension(
68 ::StrictEntityContext const& player,
72 );
73
75 ::ViewT<
79 ::ActorOwnerComponent> requests,
81 ::std::function<bool(::Player&, ::ChangeDimensionRequest&)> const& callback,
82 ::std::function<bool(::Player&)> const& isSuspended
83 );
84 // NOLINTEND
85};
Definition ActorOwnerComponent.h:10
Definition ChangeDimensionRequest.h:15
Definition DimensionStateComponent.h:5
Definition DimensionTransitionSystem.h:29
static MCAPI void _tickVehicleDismount(::ViewT<::StrictEntityContext, ::Include<::PlayerChangeDimensionRequestComponent, ::PassengerComponent > > passengers, ::ViewT<::StrictEntityContext, ::Include<::PlayerChangeDimensionRequestComponent >, ::VehicleComponent const > vehicles, ::EntityModifier<::StopRidingRequestComponent, ::ExitFromPassengerFlagComponent > modifier)
static MCAPI ::TickingSystemWithInfo createVehicleDismount()
static MCAPI void tryHandleChangeDimensionRequestLevel(::ViewT< ::StrictEntityContext, ::Include<::PlayerComponent >, ::PlayerChangeDimensionRequestComponent, ::ActorOwnerComponent > requests, ::EntityModifier<::PlayerChangeDimensionRequestComponent > modifier, ::std::function< bool(::Player &, ::ChangeDimensionRequest &)> const &callback, ::std::function< bool(::Player &)> const &isSuspended)
static MCAPI void _tickReadyToContinueServer(::ViewT< ::StrictEntityContext, ::Exclude<::PassengerComponent, ::VehicleComponent, ::DimensionTransitionComponent >, ::PlayerChangeDimensionRequestComponent > view)
static MCAPI ::TickingSystemWithInfo createPortalTransition()
static MCAPI void requestPlayerChangeDimension(::StrictEntityContext const &player, ::ChangeDimensionRequest &&request, ::ViewT<::StrictEntityContext, ::DimensionStateComponent, ::StateVectorComponent > playerData, ::EntityModifier<::PlayerChangeDimensionRequestComponent > modifier)
static MCAPI void _tickPortalTransition(::ViewT< ::StrictEntityContext, ::Exclude<::PassengerComponent, ::VehicleComponent >, ::ActorOwnerComponent, ::DimensionTransitionComponent const > view, ::EntityModifier<::DimensionTransitionComponent > mod)
Definition EntityModifier.h:6
Definition Player.h:119
Definition StrictEntityContext.h:8
Definition ViewT.h:6
Definition DimensionTransitionComponent.h:15
Definition Exclude.h:6
Definition ExitFromPassengerFlagComponent.h:5
Definition Include.h:6
Definition PassengerComponent.h:8
Definition PlayerChangeDimensionRequestComponent.h:8
Definition PlayerComponent.h:5
Definition StateVectorComponent.h:8
Definition StopRidingRequestComponent.h:5
Definition TickingSystemWithInfo.h:13
Definition VehicleComponent.h:10