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/Include.h"
31namespace PredictedMovementSystem {
34MCAPI
void _disablePrediction(::PredictedMovementComponent& predictedMovement);
36MCAPI
void _tickPredictedMovement(
37 ::PredictedMovementComponent& predictedMovement,
38 ::StateVectorComponent& stateVector,
39 ::ActorOwnerComponent& actorOwnerComponent,
40 ::Optional<::MobFlagComponent const> isMob,
41 ::Optional<::VehicleInputIntentComponent const> vehicle,
42 ::Optional<::MovementInterpolatorComponent> interpolator,
43 ::Optional<::ActorRotationComponent const> actorRotation,
44 ::Optional<::OnGroundFlagComponent const> onGround,
45 ::Optional<::ActorHeadRotationComponent const> headRotation,
46 ::PredictedMovementSystem::SystemUniforms
const& uniforms
49MCAPI
void _tickSystem(
51 ::StrictEntityContext,
52 ::Include<::ActorTickNeededComponent>,
53 ::PredictedMovementComponent,
54 ::StateVectorComponent,
55 ::ActorOwnerComponent,
56 ::Optional<::MobFlagComponent const>,
57 ::Optional<::VehicleInputIntentComponent const>,
58 ::Optional<::MovementInterpolatorComponent>,
59 ::Optional<::ActorRotationComponent const>,
60 ::Optional<::OnGroundFlagComponent const>,
61 ::Optional<::ActorHeadRotationComponent const>> view,
62 ::ViewT<::StrictEntityContext, ::PredictedMovementComponent> disablingView
66MCAPI
void _updateRuntimeData(::PredictedMovementComponent& component);
69addPredictionMotionData(::MotionPredictionHintsPacket
const& packet, ::PredictedMovementComponent* component);
71MCAPI
void addPredictionMoveData(
72 ::MoveActorAbsoluteData
const& packet,
73 ::PredictedMovementComponent& component,
74 ::std::chrono::steady_clock::time_point
const& receiveTimepoint
78MCAPI ::TickingSystemWithInfo createSystem();
81MCAPI
void suspendPredictedMovementComponent(::PredictedMovementComponent* component);
83MCAPI
bool tryAddPredictionMotionData(::SetActorMotionPacket
const& packet, ::PredictedMovementComponent* component);
85MCAPI
bool tryAddPredictionMoveData(::AddActorPacket
const& packet, ::PredictedMovementComponent* component);
Definition ActorOwnerComponent.h:10
Definition ActorTickNeededComponent.h:13
Definition AddActorPacket.h:29
Definition MotionPredictionHintsPacket.h:19
Definition MoveActorAbsoluteData.h:16
Definition PredictedMovementComponent.h:21
Definition SetActorMotionPacket.h:19
Definition StrictEntityContext.h:14
Definition ActorHeadRotationComponent.h:5
Definition ActorRotationComponent.h:8
Definition MobFlagComponent.h:5
Definition MovementInterpolatorComponent.h:14
Definition OnGroundFlagComponent.h:5
Definition StateVectorComponent.h:8
Definition TickingSystemWithInfo.h:13