Пример #1
0
        public void TestInt()
        {
            _sendBridgeStream.Write(10);
            var data          = _sendBridgeStream.Encode();
            var receivePacket = new BridgeStream(data);
            var sendValue     = receivePacket.ReadInt();

            Assert.AreEqual(10, sendValue);
        }
Пример #2
0
 public void Read(BridgeStream stream)
 {
     matchId     = stream.ReadInt();
     playerIds   = stream.ReadIntList();
     playerNames = stream.ReadStringList();
 }