Added Region's to NetworkingManager and NetworkedBehaviour
This commit is contained in:
parent
8d389602af
commit
d54ec84209
@ -616,6 +616,7 @@ namespace MLAPI
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region SEND METHODS
|
||||||
protected void SendToServer(string messageType, string channelName, byte[] data)
|
protected void SendToServer(string messageType, string channelName, byte[] data)
|
||||||
{
|
{
|
||||||
if(MessageManager.messageTypes[messageType] < 32)
|
if(MessageManager.messageTypes[messageType] < 32)
|
||||||
@ -825,6 +826,7 @@ namespace MLAPI
|
|||||||
}
|
}
|
||||||
NetworkingManager.singleton.Send(messageType, channelName, data, networkId, networkedObject.GetOrderIndex(this));
|
NetworkingManager.singleton.Send(messageType, channelName, data, networkId, networkedObject.GetOrderIndex(this));
|
||||||
}
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
protected NetworkedObject GetNetworkedObject(uint networkId)
|
protected NetworkedObject GetNetworkedObject(uint networkId)
|
||||||
{
|
{
|
||||||
|
@ -868,6 +868,7 @@ namespace MLAPI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#region SEND METHODS
|
||||||
internal void PassthroughSend(int targetId, int sourceId, ushort messageType, int channelId, byte[] data, uint? networkId = null, ushort? orderId = null)
|
internal void PassthroughSend(int targetId, int sourceId, ushort messageType, int channelId, byte[] data, uint? networkId = null, ushort? orderId = null)
|
||||||
{
|
{
|
||||||
if (isHost && targetId == -1)
|
if (isHost && targetId == -1)
|
||||||
@ -1131,6 +1132,7 @@ namespace MLAPI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
private void DisconnectClient(int clientId)
|
private void DisconnectClient(int clientId)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user