Inherits .
|
| void | GetAreaOfInterestGizmoData (List<(Vector3 center, Vector3 size, int playerCount, int objectCount)> result) |
| | Clears the provided list and populates it with data about the current Area of Interest (AOI) cells. Each tuple in the list represents one AOI cell, containing its center, size, player count, and object count.
|
| SimulationInput | GetInputForPlayer (PlayerRef player) |
| | Get the Simulation Input for a specific Player.
|
|
void | GetObjectsAndPlayersInAreaOfInterestCell (int cellKey, List< PlayerRef > players, List< NetworkId > objects) |
| | Used by RunnerAOIGizmos component. Supplies data about current active AOI cells.
|
| List< NetworkId > | GetObjectsInAreaOfInterestForPlayer (PlayerRef player) |
| | Retrieves a list of network object IDs that are in the area of interest for the specified player.
|
| PlayerRef | GetRealPlayer (PlayerRef playerRef) |
| | Translates PlayerRef.InternalMasterClientIdentifier or PlayerRef.None to a matching real player, if available.
|
| PlayerRef | GetStateAuthority (PlayerRef objectStateAuthority) |
| | Get the State Authority PlayerRef for a NetworkObjectMeta.
|
| bool | HasAnyActiveConnections () |
| | Signal if the Server has any Active Connection with any number of Clients.
|
| bool | IsInputAuthority ([NotNull] NetworkObjectMeta meta, PlayerRef playerRef) |
| | Check if a Player is the Input Authority over an NetworkObjectMeta.
|
| bool | IsInputAuthority (PlayerRef inputAuthority, PlayerRef playerRef) |
| | Check if a Player is the Input Authority over an NetworkObjectMeta.
|
| bool? | IsInterestedIn (NetworkObjectMeta meta, PlayerRef player) |
| | Check if a NetworkObjectMeta is interested by a specific Player.
|
| bool | IsStateAuthority (PlayerRef stateAuthority, PlayerRef playerRef) |
| | Check if a Player is the State Authority in relation to another Player.
|
| bool | TryGetHostPlayer (out PlayerRef player) |
| | Try to get the Host Player.
|
| int | Update (double dt) |
| | Forwards the Simulation based on the Delta Time.
|
|
|
virtual void | AfterSimulation () |
| | Callback invoked after the Simulation Update.
|
|
virtual void | AfterUpdate () |
| | Callback invoked After the Simulation Update.
|
|
virtual void | BeforeFirstTick () |
| | Callback invoked before the First Tick.
|
| virtual int | BeforeSimulation () |
| | Callback invoked before the Simulation Loop.
|
|
virtual void | BeforeUpdate () |
| | Callback invoked before the Simulation Update.
|
| virtual void | NetworkConnected (NetConnection *connection) |
| | Callback invoked on the Connected.
|
| virtual void | NetworkDisconnected (NetConnection *connection, NetDisconnectReason reason) |
| | Callback invoked on the Disconnected.
|
|
virtual void | NetworkReceiveDone () |
| | Callback invoked when the Network Receive is completed.
|
|
virtual void | NoSimulation () |
| | Callback invoked when there is no simulation.
|
|
virtual void | UpdateInterpolationParams () |
| | Callback invoked just after time is updated.
|
|
|
virtual IEnumerable< PlayerRef > | ActivePlayers [get] |
| | List of Active players in the Simulation.
|
|
SimulationConfig | Config [get] |
| | The SimulationConfig file used by this Simulation.
|
|
float | DeltaTime [get] |
| | Gets the fixed tick time interval. Derived from the SimulationRuntimeConfig.TickRate.
|
|
int | InputCount [get] |
| | The current input collection size.
|
|
Tick | InputTick [get] |
| | The tick of the most recent input collected (or the input being collected, when evaluated during INetworkRunnerCallbacks.OnInput).
|
|
bool | IsClient [get] |
| | If this peer is a client. True for client peers in Server/Client topologies, and true for all peers in Shared Mode.
|
| bool | IsFirstTick [get] |
| | Use in conjunction with IsResimulation/IsForward inside of FixedUpdateNetwork to determine if the current tick being simulated is the first tick of the resimulation or forward phase of the simulation loop.
|
|
bool | IsForward [get] |
| | Use inside of FixedUpdateNetwork to determine if the tick currently being simulated has NOT previously been simulated locally.
|
| bool | IsLastTick [get] |
| | Use in conjunction with IsResimulation/IsForward inside of FixedUpdateNetwork to determine if the current tick being simulated is the last tick of the resimulation or forward phase of the simulation loop.
|
| bool | IsLocalPlayerFirstExecution [get] |
| | True if the current stage of the simulation loop is Forward. False during resimulations.
|
|
bool | IsMasterClient [get] |
| | Only valid in Shared Mode. Indicates if this peer is flagged as the MasterClient, which means it is default StateAuthority.
|
|
bool | IsPlayer [get] |
| | True for any peer that represents a human player. This is true for all peers except a dedicated server.
|
|
bool | IsResimulation [get] |
| | Use inside of FixedUpdateNetwork to determine if the tick currently being simulated has previously been simulated locally. Resimulation occurs in client prediction when new states arrive from the StateAuthority. Networked objects are set to the most current authority state tick, and simulations are repeated from that tick to the local current tick.
|
|
bool | IsRunning [get] |
| | Signal if the Simulation is currently running.
|
|
bool | IsServer [get] |
| | If this peer is the server. True for the Server or Host peer in Server/Client topologies, and always false for all peers in Shared Mode (the relay is the server).
|
|
bool | IsSinglePlayer [get] |
| | Indicates that this simulation is operating in Single Player mode, which is a Host that accepts no connections.
|
|
Tick | LatestServerTick [get] |
| | The latest tick we've received from the server.
|
|
double | LatestServerTime [get] |
| | The latest time we've received from the server.
|
|
NetAddress | LocalAddress [get] |
| | Bound Address of the internal socket.
|
|
PlayerRef | LocalPlayer [get] |
| | Get LocalPlayer PlayerRef.
|
|
SimulationModes | Mode [get] |
| | Gets the SimulationModes flags for The type of network peer this simulation represents.
|
|
NetConfig * | NetConfigPointer [get] |
| | Current NetConfig.
|
|
int | ObjectCount [get] |
| | Returns the number of objects in the simulation.
|
|
Dictionary< NetworkId, NetworkObjectMeta > | Objects [get] |
| | Returns a map of all objects in the simulation.
|
|
NetworkProjectConfig | ProjectConfig [get] |
| | The NetworkProjectConfig file used by this Simulation.
|
|
float | RemoteAlpha [get] |
| | Remote Interpolation Alpha.
|
|
Tick | RemoteTick [get] |
| | Remote Tick.
|
|
Tick | RemoteTickPrevious [get] |
| | Remote previous Tick.
|
|
double | SendDelta [get] |
| | The packet send delta time.
|
|
int | SendRate [get] |
| | The packet send rate.
|
|
SimulationStages | Stage [get] |
| | Gets the current SimulationStages value.
|
|
Tick | Tick [get] |
| | The tick associated with the current state of networked objects, or the current simulation tick being processed (when evaluated during FixedUpdateNetwork).
|
|
double | TickDeltaDouble [get] |
| | The delta time of each tick as a double.
|
|
float | TickDeltaFloat [get] |
| | The delta time of each tick as a float.
|
|
Tick | TickPrevious [get] |
| | The previous tick.
|
|
int | TickRate [get] |
| | The current tick rate of the simulation.
|
|
int | TickStride [get] |
| | How large the ticks the current simulation takes are.
|
|
double | Time [get] |
| | The current simulation time in seconds.
|
|
Topologies | Topology [get] |
| | Indicates if a Server/Client or Shared Mode (relay server) topology is being used.
|