protected override void Read(NReader rdr)
 {
     MyItems = new TradeItem[rdr.ReadInt16()];
     for (int i = 0; i < MyItems.Length; i++)
     {
         MyItems[i] = TradeItem.Read(rdr);
     }
 }
Ejemplo n.º 2
0
        protected override void Read(ClientProcessor psr, NReader rdr)
        {
            MyItems = new TradeItem[rdr.ReadInt16()];
            for (int i = 0; i < MyItems.Length; i++)
            {
                MyItems[i] = TradeItem.Read(rdr);
            }

            YourName  = rdr.ReadUTF();
            YourItems = new TradeItem[rdr.ReadInt16()];
            for (int i = 0; i < YourItems.Length; i++)
            {
                YourItems[i] = TradeItem.Read(rdr);
            }
        }
Ejemplo n.º 3
0
        protected override void Read(DReader rdr)
        {
            MyItems = new TradeItem[rdr.ReadInt16()];
            for (var i = 0; i < MyItems.Length; i++)
            {
                MyItems[i] = TradeItem.Read(rdr);
            }

            YourName  = rdr.ReadUTF();
            YourItems = new TradeItem[rdr.ReadInt16()];
            for (var i = 0; i < YourItems.Length; i++)
            {
                YourItems[i] = TradeItem.Read(rdr);
            }
        }