Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ServerPlayerMovementComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/SubClientId.h"
7#include "mc/deps/core/utility/optional_ref.h"
8#include "mc/entity/components/MovementPackets.h"
9
10// auto generated forward declare list
11// clang-format off
16// clang-format on
17
18struct ServerPlayerMovementComponent {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<4, 4, ::std::bitset<4>> mServerHasMovementAuthority;
23 ::ll::TypedStorage<1, 1, bool> mServerHasInventoryAuthority;
24 ::ll::TypedStorage<4, 8, ::std::optional<float>> mAcceptClientPosIfWithinDistanceSq;
25 ::ll::TypedStorage<8, 8, uint64> mPlayerTickCredits;
26 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::IPlayerTickPolicy>> mPolicy;
27 ::ll::TypedStorage<8, 40, ::std::deque<::MovementPackets>> mQueuedUpdates;
28 // NOLINTEND
29
30public:
31 // prevent constructor by default
32 ServerPlayerMovementComponent& operator=(ServerPlayerMovementComponent const&);
33 ServerPlayerMovementComponent(ServerPlayerMovementComponent const&);
34
35public:
36 // member functions
37 // NOLINTBEGIN
39
40 MCNAPI ServerPlayerMovementComponent(::ServerPlayerMovementComponent&&);
41
43
45
46 MCNAPI bool addPlayerAuthInputPacket(::PlayerAuthInputPacketPayload&& payload, ::SubClientId senderSubId);
47
48 MCNAPI ::optional_ref<::MovementPackets> getOrCreate(::std::function<bool(::MovementPackets&)> const& fn);
49 // NOLINTEND
50
51public:
52 // constructor thunks
53 // NOLINTBEGIN
54 MCNAPI void* $ctor();
55
56 MCNAPI void* $ctor(::ServerPlayerMovementComponent&&);
57 // NOLINTEND
58};
Definition InventoryPacketHandler.h:15
Definition PlayerAuthInputPacket.h:19
Definition IPlayerTickPolicy.h:5
Definition MovementPackets.h:14
Definition PlayerAuthInputPacketPayload.h:23
MCAPI bool addInventoryTransactionPacket(::InventoryPacketHandler packet)
MCAPI ::optional_ref<::MovementPackets > getOrCreate(::std::function< bool(::MovementPackets &)> const &fn)
MCAPI ServerPlayerMovementComponent(::ServerPlayerMovementComponent &&)
MCAPI bool addPlayerAuthInputPacket(::PlayerAuthInputPacket &&packet)
MCAPI bool addPlayerAuthInputPacket(::PlayerAuthInputPacketPayload &&payload, ::SubClientId senderSubId)
MCAPI void * $ctor(::ServerPlayerMovementComponent &&)