Пример #1
0
        public void SendMsgLobby(EMsgCL msgId, ISerializable body)
        {
            var writer = new Serializer();

            writer.PutByte((byte)msgId);
            body.Serialize(writer);
            _netProxyLobby.Send(Compressor.Compress(writer));
        }
Пример #2
0
        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));
        }