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
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkWriter | writer | |
Mirage.NetworkIdentity | value |
WriteNetworkBehaviour(NetworkWriter, NetworkBehaviour)
Declaration
public static void WriteNetworkBehaviour(this NetworkWriter writer, NetworkBehaviour value)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkWriter | writer | |
Mirage.NetworkBehaviour | value |
WriteGameObject(NetworkWriter, GameObject)
Declaration
public static void WriteGameObject(this NetworkWriter writer, GameObject value)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkWriter | writer | |
GameObject | value |
ToMirageReader(NetworkReader)
Casts reader to , throw if cast is invalid
Declaration
public static MirageNetworkReader ToMirageReader(this NetworkReader reader)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkReader | reader |
Returns
Type | Description |
---|---|
Mirage.Serialization.MirageNetworkReader |
ReadNetworkIdentity(NetworkReader)
Declaration
public static NetworkIdentity ReadNetworkIdentity(this NetworkReader reader)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkReader | reader |
Returns
Type | Description |
---|---|
Mirage.NetworkIdentity |
ReadNetworkBehaviour(NetworkReader)
Declaration
public static NetworkBehaviour ReadNetworkBehaviour(this NetworkReader reader)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkReader | reader |
Returns
Type | Description |
---|---|
Mirage.NetworkBehaviour |
ReadNetworkBehaviour<T>(NetworkReader)
Declaration
public static T ReadNetworkBehaviour<T>(this NetworkReader reader)
where T : NetworkBehaviour
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkReader | reader |
Returns
Type | Description |
---|---|
T |
ReadGameObject(NetworkReader)
Declaration
public static GameObject ReadGameObject(this NetworkReader reader)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkReader | reader |
Returns
Type | Description |
---|---|
GameObject |