LeviLamina
Loading...
Searching...
No Matches
ReplayStateComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/entity/components/ReplayCorrectionResult.h"
7#include "mc/entity/utilities/AdvanceFrameResult.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class ActorHistory;
15// clang-format on
16
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<1, 1, bool> mForceCorrection;
22 ::ll::TypedStorage<1, 1, bool> mShouldReportNextCorrectionTelemetry;
23 ::ll::TypedStorage<1, 1, bool> mIsCorrectionTelemetryEnabled;
24 ::ll::TypedStorage<1, 1, uchar> mDivergenceCounter;
25 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ActorHistory>> mHistory;
26 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::IReplayStatePolicy>> mPolicy;
27 ::ll::TypedStorage<8, 8, uint64> mCurrentTick;
28 // NOLINTEND
29
30public:
31 // prevent constructor by default
35
36public:
37 // member functions
38 // NOLINTBEGIN
39 MCNAPI ::AdvanceFrameResult _applyCorrection(
40 ::std::shared_ptr<::IMovementCorrection> correction,
41 ::Actor& actor,
42 uint64 destinationTimestamp,
43 bool addInput
44 ) const;
45
46 MCNAPI ::ReplayCorrectionResult
47 applyFrameCorrection(::Actor& actor, ::std::shared_ptr<::IMovementCorrection> correction, uint64 frame);
48
49 MCNAPI void clearHistory();
50
51 MCNAPI ::ReplayStateComponent& operator=(::ReplayStateComponent&&);
52
54 // NOLINTEND
55
56public:
57 // destructor thunk
58 // NOLINTBEGIN
59 MCNAPI void $dtor();
60 // NOLINTEND
61};
Definition ActorHistory.h:10
Definition Actor.h:103
Definition ReplayStateComponent.h:17
MCAPI::ReplayCorrectionResult applyFrameCorrection(::Actor &actor, ::std::shared_ptr<::IMovementCorrection > correction, uint64 frame)
MCAPI::AdvanceFrameResult _applyCorrection(::std::shared_ptr<::IMovementCorrection > correction, ::Actor &actor, uint64 destinationTimestamp, bool addInput) const
MCAPI::ReplayStateComponent & operator=(::ReplayStateComponent &&)
MCAPI void clearHistory()
MCAPI ~ReplayStateComponent()
MCAPI void $dtor()
Definition IMovementCorrection.h:15
Definition IReplayStatePolicy.h:15