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 // vIndex: 2
30 virtual ::MovementCorrection shouldCorrectMovement(
31 ::EntityContext& entity,
32 ::PlayerAuthInputPacket const& packet,
33 uint64 frame,
34 uchar const currentCounter,
35 bool isStrictMovement
36 ) /*override*/;
37
38 // vIndex: 1
39 virtual bool isReplayNeeded(::AdvanceFrameResult) const /*override*/;
40
41 // vIndex: 3
42 virtual void notifyOfExternalCorrection(uint64 frame) /*override*/;
43
44 // vIndex: 0
45 virtual ~ServerCorrectionPolicy() /*override*/ = default;
46 // NOLINTEND
47
48public:
49 // virtual function thunks
50 // NOLINTBEGIN
51 MCAPI ::MovementCorrection $shouldCorrectMovement(
52 ::EntityContext& entity,
53 ::PlayerAuthInputPacket const& packet,
54 uint64 frame,
55 uchar const currentCounter,
56 bool isStrictMovement
57 );
58
59 MCFOLD bool $isReplayNeeded(::AdvanceFrameResult) const;
60
61 MCAPI void $notifyOfExternalCorrection(uint64 frame);
62 // NOLINTEND
63
64public:
65 // vftables
66 // NOLINTBEGIN
67 MCAPI static void** $vftable();
68 // NOLINTEND
69};
Definition EntityContext.h:16
Definition PlayerAuthInputPacket.h:27
Definition ServerCorrectionPolicy.h:17
Definition IReplayStatePolicy.h:15
Definition MovementCorrection.h:9