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
| Type | Description |
|---|---|
| System.Collections.Generic.IReadOnlyList<Mirage.NetworkIdentity> |
TryGetIdentity(UInt32, out NetworkIdentity)
Declaration
public bool TryGetIdentity(uint netId, out NetworkIdentity identity)
Parameters
| Type | Name | Description |
|---|---|---|
| System.UInt32 | netId | |
| Mirage.NetworkIdentity | identity |
Returns
| Type | Description |
|---|---|
| System.Boolean |
RemoveDestroyedObjects()
Declaration
public void RemoveDestroyedObjects()