Skip to main content

Interface IObjectLocator

An object that implements this interface can find objects by their net id This is used by readers when trying to deserialize gameobjects

Syntax
public interface IObjectLocator

Methods

TryGetIdentity(UInt32, out NetworkIdentity)

Finds a network identity by id

Declaration
bool TryGetIdentity(uint netId, out NetworkIdentity identity)
Parameters
TypeNameDescription
System.UInt32netIdthe id of the object to find
Mirage.NetworkIdentityidentityThe NetworkIdentity matching the netId or null if none is found
Returns
TypeDescription
System.Booleantrue if identity is found and is not null