Example #1
0
        protected void SendToClient(NetworkPeerBase target, INetworkMessage message, bool reliable, byte channel)
        {
            var messageData = SerializeMessage(message, reliable, channel);

            if (messageData.Key != null)
            {
                target.SendEvent(messageData.Key, messageData.Value);
            }
        }
Example #2
0
 protected void SendToClient(NetworkPeerBase target, INetworkMessage message, bool reliable)
 {
     SendToClient(target, message, reliable, 0);
 }
Example #3
0
 protected void SendToClient(NetworkPeerBase target, INetworkMessage message)
 {
     SendToClient(target, message, true);
 }