示例#1
0
 public override void Deserialize(BigEndianReader reader)
 {
     var limit = reader.ReadUShort();
     ObjectsUIDAndQty = new ObjectItemQuantity[limit];
     for (int i = 0; i < limit; i++)
     {
         ObjectsUIDAndQty[i] = new ObjectItemQuantity();
         ObjectsUIDAndQty[i].Deserialize(reader);
     }
 }
 public ExchangeGuildTaxCollectorGetMessage(string collectorName, short worldX, short worldY, int mapId, short subAreaId, string userName, double experience, ObjectItemQuantity[] objectsInfos)
 {
     CollectorName = collectorName;
     WorldX = worldX;
     WorldY = worldY;
     MapId = mapId;
     SubAreaId = subAreaId;
     UserName = userName;
     Experience = experience;
     ObjectsInfos = objectsInfos;
 }
示例#3
0
 public ObjectsQuantityMessage(ObjectItemQuantity[] objectsUIDAndQty)
 {
     ObjectsUIDAndQty = objectsUIDAndQty;
 }
 public override void Deserialize(BigEndianReader reader)
 {
     CollectorName = reader.ReadUTF();
     WorldX = reader.ReadShort();
     WorldY = reader.ReadShort();
     MapId = reader.ReadInt();
     SubAreaId = reader.ReadShort();
     UserName = reader.ReadUTF();
     Experience = reader.ReadDouble();
     var limit = reader.ReadUShort();
     ObjectsInfos = new ObjectItemQuantity[limit];
     for (int i = 0; i < limit; i++)
     {
         ObjectsInfos[i] = new ObjectItemQuantity();
         ObjectsInfos[i].Deserialize(reader);
     }
 }