LeviLamina
Loading...
Searching...
No Matches
ServerCorrectionPolicy.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/entity/components/IReplayStatePolicy.h"
7#include "mc/entity/components/ReplayStateConfig.h"
8#include "mc/entity/utilities/AdvanceFrameResult.h"
9
10// auto generated forward declare list
11// clang-format off
12class EntityContext;
15// clang-format on
16
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 8, uint64> mLastCorrection;
22 ::ll::TypedStorage<8, 16, ::std::optional<uint64>> mLastExternalCorrection;
23 ::ll::TypedStorage<4, 20, ::ReplayStateConfig> mConfig;
24 // NOLINTEND
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual ::MovementCorrection shouldCorrectMovement(
30 ::EntityContext& entity,
31 ::PlayerAuthInputPacket const& packet,
32 uint64 frame,
33 uchar const currentCounter,
34 bool isStrictMovement
35 ) /*override*/;
36
37 virtual bool isReplayNeeded(::AdvanceFrameResult) const /*override*/;
38
39 virtual void notifyOfExternalCorrection(uint64 frame) /*override*/;
40
41 virtual ~ServerCorrectionPolicy() /*override*/ = default;
42 // NOLINTEND
43
44public:
45 // virtual function thunks
46 // NOLINTBEGIN
47 MCAPI ::MovementCorrection $shouldCorrectMovement(
48 ::EntityContext& entity,
49 ::PlayerAuthInputPacket const& packet,
50 uint64 frame,
51 uchar const currentCounter,
52 bool isStrictMovement
53 );
54
55 MCFOLD bool $isReplayNeeded(::AdvanceFrameResult) const;
56
57 MCAPI void $notifyOfExternalCorrection(uint64 frame);
58
59
60 // NOLINTEND
61
62public:
63 // vftables
64 // NOLINTBEGIN
65 MCAPI static void** $vftable();
66 // NOLINTEND
67};
Definition EntityContext.h:16
Definition PlayerAuthInputPacket.h:27
Definition ServerCorrectionPolicy.h:17
Definition IReplayStatePolicy.h:15
Definition MovementCorrection.h:9