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
| Returns | Name | Description |
|---|---|---|
int32_t | GetPlayerIdAt | |
std::vector<int32_t> | GetPlayerIds | |
int32_t | GetPlayerCount | |
int32_t | GetLocalPlayerId | |
std::string | GetPlayerName | |
int32_t | GetScore | |
int32_t | GetTeam | |
float | GetPing | |
bool | IsReady | |
bool | IsHostPlayer | |
bool | IsInactive | |
bool | IsSpectator | |
bool | AddScore | |
bool | SetScore | |
bool | SetTeam | |
bool | SetSpectator |
Function details
GetPlayerIdAt
C++
int32_t GetPlayerIdAt(int32_t index) constGetPlayerIds
C++
std::vector<int32_t> GetPlayerIds() constGetPlayerCount
C++
int32_t GetPlayerCount() constGetLocalPlayerId
C++
int32_t GetLocalPlayerId() constGetPlayerName
C++
std::string GetPlayerName(int32_t playerId) constGetScore
C++
int32_t GetScore(int32_t playerId) constGetTeam
C++
int32_t GetTeam(int32_t playerId) constGetPing
C++
float GetPing(int32_t playerId) constIsReady
C++
bool IsReady(int32_t playerId) constIsHostPlayer
C++
bool IsHostPlayer(int32_t playerId) constIsInactive
C++
bool IsInactive(int32_t playerId) constIsSpectator
C++
bool IsSpectator(int32_t playerId) constAddScore
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