LeviLamina
Loading...
Searching...
No Matches
AttributeReplay.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/vanilla_components/MovementAttributesComponent.h"
7#include "mc/entity/components/MovementAttributeAccess.h"
8#include "mc/entity/components/MovementAttributeCorrectionMode.h"
9#include "mc/entity/utilities/AdvanceFrameResult.h"
10#include "mc/entity/utilities/IMovementCorrection.h"
11
12// auto generated forward declare list
13// clang-format off
14class Actor;
15class EntityContext;
17namespace MovementDataExtractionUtility { class SnapshotAccessor; }
18// clang-format on
19
20namespace History {
21
22class AttributeReplay : public ::IMovementCorrection {
23public:
24 // AttributeReplay inner types declare
25 // clang-format off
27 // clang-format on
28
29 // AttributeReplay inner types define
31 public:
32 // member variables
33 // NOLINTBEGIN
34 ::ll::TypedStorage<8, 8, ::std::optional<float> MovementAttributesComponent::*>
35 mMovementAttributeComponentMemberPtr;
36 ::ll::TypedStorage<1, 1, ::MovementAttributeAccess> mAccess;
37 ::ll::TypedStorage<1, 1, ::MovementAttributeCorrectionMode> mCorrectionMode;
38 ::ll::TypedStorage<1, 1, bool> mSkipUpdate;
39 // NOLINTEND
40 };
41
42public:
43 // member variables
44 // NOLINTBEGIN
45 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::UpdateAttributesPacket>> mPacket;
46 ::ll::TypedStorage<4, 48, ::MovementAttributesComponent> mMovementAttributes;
47 ::ll::TypedStorage<8, 64, ::std::unordered_map<uint64, ::History::AttributeReplay::MovementAttributeInfo>>
48 mMovementAttributesInfo;
49 // NOLINTEND
50
51public:
52 // prevent constructor by default
53 AttributeReplay();
54
55public:
56 // virtual functions
57 // NOLINTBEGIN
58 virtual ::AdvanceFrameResult
59 getAdvanceFrameResult(::MovementDataExtractionUtility::SnapshotAccessor const& entity) /*override*/;
60
61 virtual void advanceFrame(::EntityContext& entity) const /*override*/;
62
63 virtual void advanceLiveFrame(::Actor& actor, ::std::optional<uint64>) /*override*/;
64
65 virtual ::std::bitset<2> getCorrectionTypeBitset() const /*override*/;
66
67 virtual ~AttributeReplay() /*override*/ = default;
68 // NOLINTEND
69
70public:
71 // member functions
72 // NOLINTBEGIN
73 MCAPI explicit AttributeReplay(::std::shared_ptr<::UpdateAttributesPacket> packet);
74 // NOLINTEND
75
76public:
77 // constructor thunks
78 // NOLINTBEGIN
79 MCAPI void* $ctor(::std::shared_ptr<::UpdateAttributesPacket> packet);
80 // NOLINTEND
81
82public:
83 // virtual function thunks
84 // NOLINTBEGIN
85 MCAPI ::AdvanceFrameResult $getAdvanceFrameResult(::MovementDataExtractionUtility::SnapshotAccessor const& entity);
86
87 MCAPI void $advanceFrame(::EntityContext& entity) const;
88
89 MCAPI void $advanceLiveFrame(::Actor& actor, ::std::optional<uint64>);
90
91 MCAPI ::std::bitset<2> $getCorrectionTypeBitset() const;
92 // NOLINTEND
93
94public:
95 // vftables
96 // NOLINTBEGIN
97 MCNAPI static void** $vftable();
98 // NOLINTEND
99};
100
101} // namespace History
Definition Actor.h:106
Definition EntityContext.h:16
Definition AttributeReplay.h:7
static MCAPI void ** $vftable()
Definition SnapshotAccessor.h:12
Definition UpdateAttributesPacket.h:21