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/utilities/AdvanceFrameResult.h"
8
9// auto generated forward declare list
10// clang-format off
11class EntityContext;
14// clang-format on
15
17public:
18 // member variables
19 // NOLINTBEGIN
23 // NOLINTEND
24
25public:
26 // prevent constructor by default
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 // vIndex: 2
35 virtual ::MovementCorrection shouldCorrectMovement(
36 ::EntityContext& entity,
37 ::PlayerAuthInputPacket const& packet,
38 uint64 frame,
39 uchar const currentCounter,
40 bool isStrictMovement
41 ) /*override*/;
42
43 // vIndex: 1
44 virtual bool isReplayNeeded(::AdvanceFrameResult) const /*override*/;
45
46 // vIndex: 3
47 virtual void notifyOfExternalCorrection(uint64 frame) /*override*/;
48
49 // vIndex: 0
50 virtual ~ServerCorrectionPolicy() /*override*/ = default;
51 // NOLINTEND
52
53public:
54 // virtual function thunks
55 // NOLINTBEGIN
56 MCNAPI ::MovementCorrection $shouldCorrectMovement(
57 ::EntityContext& entity,
58 ::PlayerAuthInputPacket const& packet,
59 uint64 frame,
60 uchar const currentCounter,
61 bool isStrictMovement
62 );
63
64 MCNAPI bool $isReplayNeeded(::AdvanceFrameResult) const;
65
66 MCNAPI void $notifyOfExternalCorrection(uint64 frame);
67 // NOLINTEND
68
69public:
70 // vftables
71 // NOLINTBEGIN
72 MCNAPI static void** $vftable();
73 // NOLINTEND
74};
Definition EntityContext.h:16
Definition PlayerAuthInputPacket.h:27
Definition ServerCorrectionPolicy.h:16
MCAPI void $notifyOfExternalCorrection(uint64 frame)
MCAPI bool $isReplayNeeded(::AdvanceFrameResult) const
MCAPI::MovementCorrection $shouldCorrectMovement(::EntityContext &entity, ::PlayerAuthInputPacket const &packet, uint64 frame, uchar const currentCounter, bool isStrictMovement)
static MCAPI void ** $vftable()
Definition IReplayStatePolicy.h:15
Definition MovementCorrection.h:5
Definition Alias.h:14