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 MCAPI_C ::IReplayableActorInput* getCurrentCapturedInput();
53
54 MCAPI ::ReplayStateComponent& operator=(::ReplayStateComponent&&);
55
56 MCAPI ~ReplayStateComponent();
57 // NOLINTEND
58
59public:
60 // destructor thunk
61 // NOLINTBEGIN
62 MCAPI void $dtor();
63 // NOLINTEND
64};
Definition ActorHistory.h:16
Definition Actor.h:105
Definition IMovementCorrection.h:15
Definition IReplayStatePolicy.h:15
Definition IReplayableActorInput.h:29