LeviLamina
Loading...
Searching...
No Matches
PredictedMovementSystem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/ecs/Optional.h"
7#include "mc/deps/ecs/ViewT.h"
8#include "mc/deps/ecs/strict/Include.h"
9
10// auto generated forward declare list
11// clang-format off
14class AddActorPacket;
22struct MobFlagComponent;
28namespace PredictedMovementSystem { struct SystemUniforms; }
29// clang-format on
30
31namespace PredictedMovementSystem {
32// functions
33// NOLINTBEGIN
34MCAPI void _disablePrediction(::PredictedMovementComponent& predictedMovement);
35
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
47);
48
49MCAPI void _tickSystem(
50 ::ViewT<
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
63);
64
65#ifdef LL_PLAT_C
66MCAPI void _updateRuntimeData(::PredictedMovementComponent& component);
67
68MCAPI void
69addPredictionMotionData(::MotionPredictionHintsPacket const& packet, ::PredictedMovementComponent* component);
70
71MCAPI void addPredictionMoveData(
72 ::MoveActorAbsoluteData const& packet,
73 ::PredictedMovementComponent& component,
74 ::std::chrono::steady_clock::time_point const& receiveTimepoint
75);
76#endif
77
78MCAPI ::TickingSystemWithInfo createSystem();
79
80#ifdef LL_PLAT_C
81MCAPI void suspendPredictedMovementComponent(::PredictedMovementComponent* component);
82
83MCAPI bool tryAddPredictionMotionData(::SetActorMotionPacket const& packet, ::PredictedMovementComponent* component);
84
85MCAPI bool tryAddPredictionMoveData(::AddActorPacket const& packet, ::PredictedMovementComponent* component);
86#endif
87// NOLINTEND
88
89} // namespace PredictedMovementSystem
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 SystemUniforms.h:7
Definition StateVectorComponent.h:8
Definition TickingSystemWithInfo.h:13
Definition VehicleInputIntentComponent.h:11