21class ReplayStateComponent {
25 ::ll::TypedStorage<1, 1, bool> mForceCorrection;
26 ::ll::TypedStorage<1, 1, bool> mShouldReportNextCorrectionTelemetry;
27 ::ll::TypedStorage<1, 1, bool> mIsCorrectionTelemetryEnabled;
28 ::ll::TypedStorage<1, 1, uchar> mDivergenceCounter;
29 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ActorHistory>> mHistory;
30 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::IReplayStatePolicy>> mPolicy;
31 ::ll::TypedStorage<8, 8, uint64> mCurrentTick;
36 ReplayStateComponent& operator=(ReplayStateComponent
const&);
37 ReplayStateComponent(ReplayStateComponent
const&);
38 ReplayStateComponent();
43 MCAPI ReplayStateComponent(::ReplayStateComponent&& rhs);
46 ReplayStateComponent(::std::unique_ptr<::ActorHistory> history, ::std::unique_ptr<::IReplayStatePolicy> policy);
48 MCAPI ::AdvanceFrameResult _applyCorrection(
49 ::std::shared_ptr<::IMovementCorrection> correction,
51 uint64 destinationTimestamp,
56 MCFOLD ::ActorHistory
const* _getHistory()
const;
58 MCAPI
bool _shouldReportCorrectionTelemetry()
const;
61 MCAPI
void addCorrectionToCurrentFrame(::std::shared_ptr<::IMovementCorrection> correction)
const;
67 MCFOLD
void advanceTick(uint64 currentTick);
69 MCAPI ::ReplayCorrectionResult
70 applyFrameCorrection(
::Actor& actor, ::std::shared_ptr<::IMovementCorrection> correction, uint64 frame);
72 MCAPI
void clearHistory();
75 MCAPI
void disableNextCorrectionTelemetry();
78 MCAPI ::IReplayableActorInput* getCurrentCapturedInput();
80 MCFOLD uint64 getCurrentTick()
const;
82 MCAPI ::IReplayableActorInput* getOrCreateNextCapturedInput();
85 MCAPI ::std::optional<uint64> handleAdvanceAndRewind(
::Actor& actor);
88 MCAPI
void notifyOfExternalCorrection()
const;
90 MCAPI ::ReplayStateComponent& operator=(::ReplayStateComponent&&);
92 MCAPI ::MovementCorrection shouldSendCorrectionToClient(
98 MCAPI ~ReplayStateComponent();
104 MCAPI
void* $ctor(::ReplayStateComponent&& rhs);
106 MCAPI
void* $ctor(::std::unique_ptr<::ActorHistory> history, ::std::unique_ptr<::IReplayStatePolicy> policy);
Definition ActorHistory.h:16
Definition EntityContext.h:17