class

MPlayerStateStatics

The replicated player records (PlayerStateComponent) for Visual Scripting and gameplay: a scoreboard, a ready list, team colours. Reads work on every machine; the setters run on the host only and return false elsewhere.

Module
Game
Header
#include "Game/MPlayerStateStatics.h"
Namespace
Mowo
Reflection
Reflected by MowoHeaderTool

Public functions

ReturnsNameDescription
int32_tGetPlayerIdAt
std::vector<int32_t>GetPlayerIds
int32_tGetPlayerCount
int32_tGetLocalPlayerId
std::stringGetPlayerName
int32_tGetScore
int32_tGetTeam
floatGetPing
boolIsReady
boolIsHostPlayer
boolIsInactive
boolIsSpectator
boolAddScore
boolSetScore
boolSetTeam
boolSetSpectator

Function details

GetPlayerIdAt

C++
int32_t GetPlayerIdAt(int32_t index) const

GetPlayerIds

C++
std::vector<int32_t> GetPlayerIds() const

GetPlayerCount

C++
int32_t GetPlayerCount() const

GetLocalPlayerId

C++
int32_t GetLocalPlayerId() const

GetPlayerName

C++
std::string GetPlayerName(int32_t playerId) const

GetScore

C++
int32_t GetScore(int32_t playerId) const

GetTeam

C++
int32_t GetTeam(int32_t playerId) const

GetPing

C++
float GetPing(int32_t playerId) const

IsReady

C++
bool IsReady(int32_t playerId) const

IsHostPlayer

C++
bool IsHostPlayer(int32_t playerId) const

IsInactive

C++
bool IsInactive(int32_t playerId) const

IsSpectator

C++
bool IsSpectator(int32_t playerId) const

AddScore

C++
bool AddScore(int32_t playerId, int32_t delta)

SetScore

C++
bool SetScore(int32_t playerId, int32_t score)

SetTeam

C++
bool SetTeam(int32_t playerId, int32_t team)

SetSpectator

C++
bool SetSpectator(int32_t playerId, bool spectator)
Generated from Game/MPlayerStateStatics.h via game.json · Nov 5, 2026Version 1.0.0