3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/ecs/Optional.h"
7#include "mc/deps/ecs/ViewT.h"
8#include "mc/deps/ecs/strict/EntityModifier.h"
9#include "mc/deps/ecs/strict/Exclude.h"
10#include "mc/deps/ecs/strict/Include.h"
25namespace LendReplayStateSystem {
28MCAPI
void _addReplayStateIfNoLongerRidingClientPredictedVehicle(
29 ::StrictEntityContext
const& player,
30 ::PassengerComponent
const& passengerComponent,
31 ::std::function<::ReplayStateComponent()>
const& createReplayState,
32 ::EntityModifier<::ReplayStateComponent, ::ReplayStateLenderFlagComponent>& mod,
33 ::ViewT<::StrictEntityContext, ::VehicleInputIntentComponent const>& vehicleView
36MCAPI
void _cleanupLingeringReplayStateComponentsSystem(
38 ::Include<::ActorMovementTickNeededComponent, ::ReplayStateComponent>,
39 ::Exclude<::PlayerComponent>> entity,
40 ::StrictEntityContext
const& vehicleInputIntent,
41 ::Optional<::VehicleInputIntentComponent const> passengerView,
42 ::ViewT<::StrictEntityContext, ::ReplayStateComponent> mod,
43 ::EntityModifier<::ReplayStateComponent, ::ReplayStateLenderFlagComponent>&
46MCAPI
void _createAndAddReplayStateComponent(
47 ::StrictEntityContext
const& entity,
48 ::std::function<::ReplayStateComponent()>
const& createReplayState,
49 ::EntityModifier<::ReplayStateComponent, ::ReplayStateLenderFlagComponent>& mod
52MCAPI
void _lendReplayStateToVehicle(
53 ::StrictEntityContext
const& vehicle,
54 ::VehicleInputIntentComponent
const& vehicleInputIntentComponent,
55 ::ViewT<::StrictEntityContext, ::ReplayStateComponent>& passengerView,
56 ::std::function<::ReplayStateComponent()>
const& createReplayState,
57 ::EntityModifier<::ReplayStateComponent, ::ReplayStateLenderFlagComponent>& mod
60MCAPI ::TickingSystemWithInfo createAddBackToPlayerSystem(
bool isClientSide);
62MCAPI ::TickingSystemWithInfo createLendToVehicleSystem(
bool isClientSide);
64MCAPI
void registerSystems(::EntitySystems& systemRegistry,
bool isClientSide);
Definition EntitySystems.h:29
Definition ReplayStateComponent.h:21
Definition StrictEntityContext.h:14
Definition ActorMovementTickNeededComponent.h:5
Definition PassengerComponent.h:8
Definition PlayerComponent.h:5
Definition ReplayStateLenderFlagComponent.h:5
Definition TickingSystemWithInfo.h:13