public void SendMsgLobby(EMsgCL msgId, ISerializable body) { var writer = new Serializer(); writer.PutByte((byte)msgId); body.Serialize(writer); _netProxyLobby.Send(Compressor.Compress(writer)); }
public void SendMsgRoom(EMsgCS msgId, ISerializable body) { var writer = new Serializer(); writer.Put(_playerID); writer.Put((byte)msgId); body.Serialize(writer); _netProxyRoom.Send(Compressor.Compress(writer)); }