Exemple #1
0
 public DareInformations(double dareId, CharacterBasicMinimalInformations creator, int subscriptionFee, int jackpot, ushort maxCountWinners, double endDate, bool isPrivate, uint guildId, uint allianceId, DareCriteria[] criterions, double startDate)
 {
     this.dareId          = dareId;
     this.creator         = creator;
     this.subscriptionFee = subscriptionFee;
     this.jackpot         = jackpot;
     this.maxCountWinners = maxCountWinners;
     this.endDate         = endDate;
     this.isPrivate       = isPrivate;
     this.guildId         = guildId;
     this.allianceId      = allianceId;
     this.criterions      = criterions;
     this.startDate       = startDate;
 }
Exemple #2
0
        public virtual void Deserialize(IDataReader reader)
        {
            this.dareId  = reader.ReadDouble();
            this.creator = new CharacterBasicMinimalInformations();
            this.creator.Deserialize(reader);
            this.subscriptionFee = reader.ReadInt();
            this.jackpot         = reader.ReadInt();
            this.maxCountWinners = reader.ReadUShort();
            this.endDate         = reader.ReadDouble();
            this.isPrivate       = reader.ReadBoolean();
            this.guildId         = reader.ReadVarUhInt();
            this.allianceId      = reader.ReadVarUhInt();
            ushort num = reader.ReadUShort();

            this.criterions = new DareCriteria[num];
            for (int i = 0; i < num; i++)
            {
                this.criterions[i] = new DareCriteria();
                this.criterions[i].Deserialize(reader);
            }
            this.startDate = reader.ReadDouble();
        }