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;
16// clang-format on
17
18class ReplayStateComponent {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<1, 1, bool> mForceCorrection;
23 ::ll::TypedStorage<1, 1, bool> mShouldReportNextCorrectionTelemetry;
24 ::ll::TypedStorage<1, 1, bool> mIsCorrectionTelemetryEnabled;
25 ::ll::TypedStorage<1, 1, uchar> mDivergenceCounter;
26 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ActorHistory>> mHistory;
27 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::IReplayStatePolicy>> mPolicy;
28 ::ll::TypedStorage<8, 8, uint64> mCurrentTick;
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 ReplayStateComponent& operator=(ReplayStateComponent const&);
34 ReplayStateComponent(ReplayStateComponent const&);
35 ReplayStateComponent();
36
37public:
38 // member functions
39 // NOLINTBEGIN
40 MCAPI ::AdvanceFrameResult _applyCorrection(
41 ::std::shared_ptr<::IMovementCorrection> correction,
42 ::Actor& actor,
43 uint64 destinationTimestamp,
44 bool addInput
45 ) const;
46
47 MCAPI ::ReplayCorrectionResult
48 applyFrameCorrection(::Actor& actor, ::std::shared_ptr<::IMovementCorrection> correction, uint64 frame);
49
50 MCAPI void clearHistory();
51
52#ifdef LL_PLAT_C
53 MCAPI ::IReplayableActorInput* getCurrentCapturedInput();
54#endif
55
56 MCAPI ::ReplayStateComponent& operator=(::ReplayStateComponent&&);
57
58 MCAPI ~ReplayStateComponent();
59 // NOLINTEND
60
61public:
62 // destructor thunk
63 // NOLINTBEGIN
64 MCAPI void $dtor();
65 // NOLINTEND
66};
Definition ActorHistory.h:16
Definition Actor.h:106
Definition IMovementCorrection.h:15
Definition IReplayStatePolicy.h:15
Definition IReplayableActorInput.h:29