LeviLamina
Loading...
Searching...
No Matches
PlayerLocationSender.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/AutomaticID.h"
7
8// auto generated forward declare list
9// clang-format off
10class Dimension;
11class Player;
13class Vec3;
14class WeakEntityRef;
15struct ActorUniqueID;
16// clang-format on
17
19public:
20 // PlayerLocationSender inner types declare
21 // clang-format off
24 struct PlayerLocationData;
25 // clang-format on
26
27 // PlayerLocationSender inner types define
29 public:
30 // member variables
31 // NOLINTBEGIN
35 // NOLINTEND
36
37 public:
38 // prevent constructor by default
39 PlayerLocationData& operator=(PlayerLocationData const&);
42 };
43
45
47
48public:
49 // member variables
50 // NOLINTBEGIN
55 // NOLINTEND
56
57public:
58 // prevent constructor by default
62
63public:
64 // member functions
65 // NOLINTBEGIN
67 ::UserEntityIdentifierComponent const& userIdentifier,
68 ::Player const& viewingPlayer,
69 ::Player const& observedPlayer
70 );
71
73 ::std::vector<::WeakEntityRef> const& gameplayUsers,
74 ::std::function<void(::UserEntityIdentifierComponent const&, ::Player const&, ::Player const&)> action
75 );
76
78 ::Vec3 const& viewingPlayerPosition,
79 ::DimensionType const& viewingPlayerDimension,
80 bool viewingPlayerIsSpectator,
81 ::std::optional<::Vec3> const& observedPlayerPosPrev,
82 ::PlayerLocationSender::PlayerLocationData const& observedPlayerPositionNew
83 ) const;
84
85 MCNAPI void _updatePlayerData(::Player const& player);
86
87 MCNAPI void removePlayerData(::ActorUniqueID const& playerID);
88
89 MCNAPI void updatePlayersData(::std::vector<::WeakEntityRef> const& gameplayUsers);
90
92 // NOLINTEND
93
94public:
95 // static variables
96 // NOLINTBEGIN
97 MCNAPI static ::PlayerLocationSender::PlayerLocationData const& NULL_PLAYER_LOCATION_DATA();
98 // NOLINTEND
99
100public:
101 // destructor thunk
102 // NOLINTBEGIN
103 MCNAPI void $dtor();
104 // NOLINTEND
105};
Definition AutomaticID.h:6
Definition Dimension.h:83
Definition PlayerLocationSender.h:18
MCAPI void $dtor()
MCAPI void _checkPlayerPairAndMaybeSendPacket(::UserEntityIdentifierComponent const &userIdentifier, ::Player const &viewingPlayer, ::Player const &observedPlayer)
MCAPI void updatePlayersData(::std::vector<::WeakEntityRef > const &gameplayUsers)
MCAPI bool _shouldSendPositionPacket(::Vec3 const &viewingPlayerPosition, ::DimensionType const &viewingPlayerDimension, bool viewingPlayerIsSpectator, ::std::optional<::Vec3 > const &observedPlayerPosPrev, ::PlayerLocationSender::PlayerLocationData const &observedPlayerPositionNew) const
MCAPI void removePlayerData(::ActorUniqueID const &playerID)
MCAPI ~PlayerLocationSender()
static MCAPI ::PlayerLocationSender::PlayerLocationData const & NULL_PLAYER_LOCATION_DATA()
MCAPI void _forEachClientPlayerPair(::std::vector<::WeakEntityRef > const &gameplayUsers, ::std::function< void(::UserEntityIdentifierComponent const &, ::Player const &, ::Player const &)> action)
MCAPI void _updatePlayerData(::Player const &player)
Definition Player.h:120
Definition UserEntityIdentifierComponent.h:12
Definition Vec3.h:10
Definition WeakEntityRef.h:14
Definition ActorUniqueID.h:5
Definition PlayerLocationSender.h:44
Definition PlayerLocationSender.h:46
Definition PlayerLocationSender.h:28
Definition Alias.h:14