Пример #1
0
        public static TradeItem Read(Client psr, NReader rdr)
        {
            TradeItem ret = new TradeItem();

            ret.Item      = rdr.ReadInt32();
            ret.SlotType  = rdr.ReadInt32();
            ret.Tradeable = rdr.ReadBoolean();
            ret.Included  = rdr.ReadBoolean();
            return(ret);
        }
Пример #2
0
        public static TradeItem Read(NReader rdr)
        {
            var ret = new TradeItem();

            ret.Item      = rdr.ReadInt32();
            ret.Data      = ItemData.CreateData(rdr.ReadString());
            ret.SlotType  = rdr.ReadInt32();
            ret.Tradeable = rdr.ReadBoolean();
            ret.Included  = rdr.ReadBoolean();
            return(ret);
        }