Skip to main content

Class MirageTypesExtensions

Inheritance
System.Object
Inherited Members
Show
Syntax
public static class MirageTypesExtensions

Methods

WriteNetworkIdentity(NetworkWriter, NetworkIdentity)

Declaration
public static void WriteNetworkIdentity(this NetworkWriter writer, NetworkIdentity value)
Parameters
TypeNameDescription
Mirage.Serialization.NetworkWriterwriter
Mirage.NetworkIdentityvalue

WriteNetworkBehaviour(NetworkWriter, NetworkBehaviour)

Declaration
public static void WriteNetworkBehaviour(this NetworkWriter writer, NetworkBehaviour value)
Parameters
TypeNameDescription
Mirage.Serialization.NetworkWriterwriter
Mirage.NetworkBehaviourvalue

WriteGameObject(NetworkWriter, GameObject)

Declaration
public static void WriteGameObject(this NetworkWriter writer, GameObject value)
Parameters
TypeNameDescription
Mirage.Serialization.NetworkWriterwriter
GameObjectvalue

ToMirageReader(NetworkReader)

Casts reader to , throw if cast is invalid

Declaration
public static MirageNetworkReader ToMirageReader(this NetworkReader reader)
Parameters
TypeNameDescription
Mirage.Serialization.NetworkReaderreader
Returns
TypeDescription
Mirage.Serialization.MirageNetworkReader

ReadNetworkIdentity(NetworkReader)

Declaration
public static NetworkIdentity ReadNetworkIdentity(this NetworkReader reader)
Parameters
TypeNameDescription
Mirage.Serialization.NetworkReaderreader
Returns
TypeDescription
Mirage.NetworkIdentity

ReadNetworkBehaviour(NetworkReader)

Declaration
public static NetworkBehaviour ReadNetworkBehaviour(this NetworkReader reader)
Parameters
TypeNameDescription
Mirage.Serialization.NetworkReaderreader
Returns
TypeDescription
Mirage.NetworkBehaviour

ReadNetworkBehaviour<T>(NetworkReader)

Declaration
public static T ReadNetworkBehaviour<T>(this NetworkReader reader)
where T : NetworkBehaviour
Parameters
TypeNameDescription
Mirage.Serialization.NetworkReaderreader
Returns
TypeDescription
T

ReadGameObject(NetworkReader)

Declaration
public static GameObject ReadGameObject(this NetworkReader reader)
Parameters
TypeNameDescription
Mirage.Serialization.NetworkReaderreader
Returns
TypeDescription
GameObject