PeerDescriptor struct
#include <Jazz2/Multiplayer/PeerDescriptor.h>
Peer descriptor.
Holds all per-peer session state tracked by NetworkManager and MpLevelHandler: identity and authentication, chosen player type/team/name, the spawned player actor and its per-round statistics, and the carry-over state retained so a reconnecting player can resume.
Constructors, destructors, conversion operators
- PeerDescriptor()
- Creates a new instance.
Public variables
- Peer RemotePeer
- Remote peer if the peer is connected remotely.
- Uuid UniquePlayerID
- Unique Player ID if the peer is connected remotely.
- bool IsAuthenticated
- Whether the peer is already successfully authenticated.
- bool IsAdmin
- Whether the peer has admin privileges.
- bool EnableLedgeClimb
- Whether ledge climbing is enabled by client.
- bool VotedYes
- Whether the peer voted "yes" in the active poll.
-
std::
uint8_t Team - Team ID.
- PlayerType PreferredPlayerType
- Preferred player type selected by the peer.
- String PlayerName
- Player display name.
-
std::
uint32_t FurColor - Player character recolor (packed 4-byte fur color; 0 = default colors), as chosen by the peer.
-
std::
uint32_t Points - Earned points in the current session (championship).
-
std::
uint32_t PointsInRound - Game mode specific points held by the player in a round.
-
std::
uint32_t PositionInRound - Position in a round.
- PeerLevelState LevelState
- State of the player in the current level.
-
Actors::
Multiplayer:: MpPlayer* Player - Spawned player in the current level.
-
std::
uint64_t LastUpdated - Last update of the player from client.
-
std::
uint32_t Deaths - Deaths of the player in the current round.
-
std::
uint32_t Kills - Kills of the player in the current round.
-
std::
uint32_t Laps - Laps of the player in the current round.
- TimeStamp LapStarted
- Timestamp when the last lap started.
-
std::
uint32_t TreasureCollected - Treasure collected of the player in the current round.
- float IdleElapsedFrames
- Elapsed frames when the player is idle.
- float DeathElapsedFrames
- Elapsed frames when the player lost all lives.
- float LapsElapsedFrames
- Elapsed frames of all completed laps.
- float JoinCooldownFrames
- Time remaining for join cooldown.
- SpectateMode IsSpectating
- Whether the player is in spectate mode.
- PlayerCarryOver CarryOver
- Player state (weapons, lives, score, ...) to apply on the next (re)spawn, see HasCarryOver.
- bool HasCarryOver
- Whether CarryOver holds state to apply on the next spawn (level change or reconnect).
- TimeStamp DisconnectedSince
- Time when the peer disconnected, used for the reconnect window (invalid while connected).