Skip to main content

Class NetworkWorld

Holds collection of spawned network objects This class works on both server and client

Inheritance
System.Object
Inherited Members
Show
Syntax
public class NetworkWorld : IObjectLocator

Constructors

NetworkWorld()

Declaration
public NetworkWorld()

Properties

Time

Time kept in this world

Declaration
public NetworkTime Time { get; }

SpawnedIdentities

Declaration
public IReadOnlyCollection<NetworkIdentity> SpawnedIdentities { get; }

Methods

GetSortedIdentities()

A list of spawned identities, sorted by netId. This list is cached and will only be re-sorted if identities have changed

Declaration
public IReadOnlyList<NetworkIdentity> GetSortedIdentities()
Returns
TypeDescription
System.Collections.Generic.IReadOnlyList<Mirage.NetworkIdentity>

TryGetIdentity(UInt32, out NetworkIdentity)

Declaration
public bool TryGetIdentity(uint netId, out NetworkIdentity identity)
Parameters
TypeNameDescription
System.UInt32netId
Mirage.NetworkIdentityidentity
Returns
TypeDescription
System.Boolean

RemoveDestroyedObjects()

Declaration
public void RemoveDestroyedObjects()