public override void Deserialize(ICustomDataReader reader)
        {
            byte box = reader.ReadByte();

            this.IsPrivate         = BooleanByteWrapper.GetFlag(box, 0);
            this.IsForGuild        = BooleanByteWrapper.GetFlag(box, 1);
            this.IsForAlliance     = BooleanByteWrapper.GetFlag(box, 2);
            this.NeedNotifications = BooleanByteWrapper.GetFlag(box, 3);
            this.SubscriptionFee   = reader.ReadVarLong();
            this.Jackpot           = reader.ReadVarLong();
            this.MaxCountWinners   = reader.ReadShort();
            this.DelayBeforeStart  = reader.ReadUnsignedInt();
            this.Duration          = reader.ReadUnsignedInt();
            int CriterionsLen = reader.ReadShort();

            Criterions = new DareCriteria[CriterionsLen];
            for (int i = 0; i < CriterionsLen; i++)
            {
                this.Criterions[i] = new DareCriteria();
                this.Criterions[i].Deserialize(reader);
            }
        }
Esempio n. 2
0
 public override void Deserialize(ICustomDataReader reader)
 {
     this.Id_ = reader.ReadVarShort();
     this.Qty = reader.ReadUnsignedInt();
 }