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 // NOLINTEND
41
42public:
43 // virtual function thunks
44 // NOLINTBEGIN
45 MCAPI ::MovementCorrection $shouldCorrectMovement(
46 ::EntityContext& entity,
47 ::PlayerAuthInputPacket const& packet,
48 uint64 frame,
49 uchar const currentCounter,
50 bool isStrictMovement
51 );
52
53 MCFOLD bool $isReplayNeeded(::AdvanceFrameResult) const;
54
55 MCAPI void $notifyOfExternalCorrection(uint64 frame);
56
57
58 // NOLINTEND
59
60public:
61 // vftables
62 // NOLINTBEGIN
63 MCAPI static void** $vftable();
64 // NOLINTEND
65};
Definition EntityContext.h:17
Definition PlayerAuthInputPacket.h:27
Definition ServerCorrectionPolicy.h:17
Definition IReplayStatePolicy.h:15
Definition MovementCorrection.h:9