Photon Fusion 1.1.2

Public Attributes | Static Public Attributes | List of all members
SimulationGlobalState Struct Reference

Stores the global state of a simulation More...

Public Attributes

fixed int _size [WORDS]
 
SceneRef Scene
 Current Scene Ref More...
 
SimulationModes ServerMode
 Current Simulation Mode More...
 
int MaxPlayers
 Current player count More...
 
fixed ulong PlayersActive [4]
 

Static Public Attributes

const int WORDS = 32
 Total size of the Global State in 4 byte words More...
 
const int SIZE = WORDS * Allocator.REPLICATE_WORD_SIZE
 Total size of the Global State More...
 

Detailed Description

Stores the global state of a simulation

Member Data Documentation

◆ MaxPlayers

int MaxPlayers

Current player count

◆ PlayersActive

fixed ulong PlayersActive[4]

◆ Scene

SceneRef Scene

Current Scene Ref

◆ ServerMode

SimulationModes ServerMode

Current Simulation Mode

◆ SIZE

const int SIZE = WORDS * Allocator.REPLICATE_WORD_SIZE
static

Total size of the Global State

◆ WORDS

const int WORDS = 32
static

Total size of the Global State in 4 byte words