Example #1
0
        public void BorderTcp(EMsgSC type, BaseMsg data)
        {
            var bytes = data.ToBytes();

            foreach (var player in Players)
            {
                player?.SendTcp(type, bytes);
            }
        }
Example #2
0
 public void SendTcp(EMsgSC type, BaseMsg msg)
 {
     PeerTcp?.Send(0x00, (ushort)type, msg.ToBytes());
 }