class
FPlayerStateSystem
- Module
- Networking
- Header
#include "Networking/Session/PlayerStateSystem.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
void | Update | |
void | Shutdown | |
void | ForEach | Every player-state record in world (host: the authoritative ones; client: the replicated ghosts). |
const PlayerStateComponent* | Find | |
const PlayerStateComponent* | FindLocal | |
uint32_t | Count | |
bool | AddScore | Host-only writes; false on a client or for an unknown player. |
bool | SetScore | |
bool | SetTeam | |
bool | SetSpectator |
Function details
Update
C++
void Update(float deltaTime) overrideShutdown
C++
void Shutdown() overrideForEach
C++
static void ForEach(World& world, const std::function<void(EntityID, const PlayerStateComponent&)>& fn)Every player-state record in world (host: the authoritative ones; client: the replicated ghosts).
Find
C++
static const PlayerStateComponent* Find(World& world, uint32_t playerId)FindLocal
C++
static const PlayerStateComponent* FindLocal(World& world)Count
C++
static uint32_t Count(World& world)AddScore
C++
static bool AddScore(World& world, uint32_t playerId, int32_t delta)Host-only writes; false on a client or for an unknown player. Each marks the record dirty so the change ships this tick.
SetScore
C++
static bool SetScore(World& world, uint32_t playerId, int32_t score)SetTeam
C++
static bool SetTeam(World& world, uint32_t playerId, uint32_t team)SetSpectator
C++
static bool SetSpectator(World& world, uint32_t playerId, bool spectator)Generated from Networking/Session/PlayerStateSystem.h via networking.json · Nov 4, 2026Version 1.0.0