class

FPlayerStateSystem

Module
Networking
Header
#include "Networking/Session/PlayerStateSystem.h"
Namespace
Mowo

Public functions

ReturnsNameDescription
voidUpdate
voidShutdown
voidForEachEvery player-state record in world (host: the authoritative ones; client: the replicated ghosts).
const PlayerStateComponent*Find
const PlayerStateComponent*FindLocal
uint32_tCount
boolAddScoreHost-only writes; false on a client or for an unknown player.
boolSetScore
boolSetTeam
boolSetSpectator

Function details

Update

C++
void Update(float deltaTime) override

Shutdown

C++
void Shutdown() override

ForEach

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