Ejemplo n.º 1
0
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     allianceInformations = new Types.AllianceInformations();
     allianceInformations.Deserialize(reader);
     aggressable = reader.ReadSbyte();
 }
Ejemplo n.º 2
0
 public override void Deserialize(IReader reader)
 {
     allianceInfo = new Types.AllianceInformations();
     allianceInfo.Deserialize(reader);
     enabled        = reader.ReadBoolean();
     leadingGuildId = reader.ReadVarUhInt();
 }
Ejemplo n.º 3
0
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     allianceInformations = new Types.AllianceInformations();
     allianceInformations.Deserialize(reader);
     aggressable = reader.ReadSByte();
     if (aggressable < 0)
         throw new Exception("Forbidden value on aggressable = " + aggressable + ", it doesn't respect the following condition : aggressable < 0");
 }
Ejemplo n.º 4
0
 public override void Deserialize(IDataReader reader)
 {
     allianceInfo = new Types.AllianceInformations();
     allianceInfo.Deserialize(reader);
     enabled        = reader.ReadBoolean();
     leadingGuildId = reader.ReadVarInt();
     if (leadingGuildId < 0)
     {
         throw new Exception("Forbidden value on leadingGuildId = " + leadingGuildId + ", it doesn't respect the following condition : leadingGuildId < 0");
     }
 }
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     allianceInformations = new Types.AllianceInformations();
     allianceInformations.Deserialize(reader);
     aggressable = reader.ReadSByte();
     if (aggressable < 0)
     {
         throw new System.Exception("Forbidden value on aggressable = " + aggressable + ", it doesn't respect the following condition : aggressable < 0");
     }
 }
Ejemplo n.º 6
0
        public override void Deserialize(IDataReader reader)
        {
            var limit      = reader.ReadUShort();
            var alliances_ = new Types.AllianceInformations[limit];

            for (int i = 0; i < limit; i++)
            {
                alliances_[i] = new Types.AllianceInformations();
                alliances_[i].Deserialize(reader);
            }
            alliances = alliances_;
            limit     = reader.ReadUShort();
            var allianceNbMembers_ = new short[limit];

            for (int i = 0; i < limit; i++)
            {
                allianceNbMembers_[i] = reader.ReadVarShort();
            }
            allianceNbMembers = allianceNbMembers_;
            limit             = reader.ReadUShort();
            var allianceRoundWeigth_ = new int[limit];

            for (int i = 0; i < limit; i++)
            {
                allianceRoundWeigth_[i] = reader.ReadVarInt();
            }
            allianceRoundWeigth = allianceRoundWeigth_;
            limit = reader.ReadUShort();
            var allianceMatchScore_ = new sbyte[limit];

            for (int i = 0; i < limit; i++)
            {
                allianceMatchScore_[i] = reader.ReadSByte();
            }
            allianceMatchScore = allianceMatchScore_;
            allianceMapWinner  = new Types.BasicAllianceInformations();
            allianceMapWinner.Deserialize(reader);
            allianceMapWinnerScore = reader.ReadVarInt();
            if (allianceMapWinnerScore < 0)
            {
                throw new Exception("Forbidden value on allianceMapWinnerScore = " + allianceMapWinnerScore + ", it doesn't respect the following condition : allianceMapWinnerScore < 0");
            }
            allianceMapMyAllianceScore = reader.ReadVarInt();
            if (allianceMapMyAllianceScore < 0)
            {
                throw new Exception("Forbidden value on allianceMapMyAllianceScore = " + allianceMapMyAllianceScore + ", it doesn't respect the following condition : allianceMapMyAllianceScore < 0");
            }
            nextTickTime = reader.ReadDouble();
            if (nextTickTime < 0 || nextTickTime > 9007199254740990)
            {
                throw new Exception("Forbidden value on nextTickTime = " + nextTickTime + ", it doesn't respect the following condition : nextTickTime < 0 || nextTickTime > 9007199254740990");
            }
        }
        public void Deserialize(IDataReader reader)
        {
            var limit = reader.ReadUShort();

            alliances = new Types.AllianceInformations[limit];
            for (int i = 0; i < limit; i++)
            {
                alliances[i] = new Types.AllianceInformations();
                alliances[i].Deserialize(reader);
            }
            limit             = reader.ReadUShort();
            allianceNbMembers = new uint[limit];
            for (int i = 0; i < limit; i++)
            {
                allianceNbMembers[i] = reader.ReadVarUhShort();
            }
            limit = reader.ReadUShort();
            allianceRoundWeigth = new uint[limit];
            for (int i = 0; i < limit; i++)
            {
                allianceRoundWeigth[i] = reader.ReadVarUhInt();
            }
            limit = reader.ReadUShort();
            allianceMatchScore = new sbyte[limit];
            for (int i = 0; i < limit; i++)
            {
                allianceMatchScore[i] = reader.ReadSByte();
            }
            allianceMapWinner = new Types.BasicAllianceInformations();
            allianceMapWinner.Deserialize(reader);
            allianceMapWinnerScore = reader.ReadVarUhInt();
            if (allianceMapWinnerScore < 0)
            {
                throw new System.Exception("Forbidden value on allianceMapWinnerScore = " + allianceMapWinnerScore + ", it doesn't respect the following condition : allianceMapWinnerScore < 0");
            }
            allianceMapMyAllianceScore = reader.ReadVarUhInt();
            if (allianceMapMyAllianceScore < 0)
            {
                throw new System.Exception("Forbidden value on allianceMapMyAllianceScore = " + allianceMapMyAllianceScore + ", it doesn't respect the following condition : allianceMapMyAllianceScore < 0");
            }
            nextTickTime = reader.ReadDouble();
            if (nextTickTime < 0 || nextTickTime > 9.007199254740992E15)
            {
                throw new System.Exception("Forbidden value on nextTickTime = " + nextTickTime + ", it doesn't respect the following condition : nextTickTime < 0 || nextTickTime > 9.007199254740992E15");
            }
        }
Ejemplo n.º 8
0
        public override void Deserialize(BigEndianReader reader)
        {
            var limit = reader.ReadUShort();

            alliances = new Types.AllianceInformations[limit];
            for (int i = 0; i < limit; i++)
            {
                alliances[i] = new Types.AllianceInformations();
                alliances[i].Deserialize(reader);
            }
            limit             = reader.ReadUShort();
            allianceNbMembers = new short[limit];
            for (int i = 0; i < limit; i++)
            {
                allianceNbMembers[i] = reader.ReadShort();
            }
            limit = reader.ReadUShort();
            allianceRoundWeigth = new int[limit];
            for (int i = 0; i < limit; i++)
            {
                allianceRoundWeigth[i] = reader.ReadInt();
            }
            limit = reader.ReadUShort();
            allianceMatchScore = new sbyte[limit];
            for (int i = 0; i < limit; i++)
            {
                allianceMatchScore[i] = reader.ReadSByte();
            }
            allianceMapWinner = new Types.BasicAllianceInformations();
            allianceMapWinner.Deserialize(reader);
            allianceMapWinnerScore = reader.ReadInt();
            if (allianceMapWinnerScore < 0)
            {
                throw new Exception("Forbidden value on allianceMapWinnerScore = " + allianceMapWinnerScore + ", it doesn't respect the following condition : allianceMapWinnerScore < 0");
            }
            allianceMapMyAllianceScore = reader.ReadInt();
            if (allianceMapMyAllianceScore < 0)
            {
                throw new Exception("Forbidden value on allianceMapMyAllianceScore = " + allianceMapMyAllianceScore + ", it doesn't respect the following condition : allianceMapMyAllianceScore < 0");
            }
        }
Ejemplo n.º 9
0
 public override void Deserialize(BigEndianReader reader)
 {
     var limit = reader.ReadUShort();
     alliances = new Types.AllianceInformations[limit];
     for (int i = 0; i < limit; i++)
     {
          alliances[i] = new Types.AllianceInformations();
          alliances[i].Deserialize(reader);
     }
     limit = reader.ReadUShort();
     allianceNbMembers = new short[limit];
     for (int i = 0; i < limit; i++)
     {
          allianceNbMembers[i] = reader.ReadVarShort();
     }
     limit = reader.ReadUShort();
     allianceRoundWeigth = new int[limit];
     for (int i = 0; i < limit; i++)
     {
          allianceRoundWeigth[i] = reader.ReadVarInt();
     }
     limit = reader.ReadUShort();
     allianceMatchScore = new sbyte[limit];
     for (int i = 0; i < limit; i++)
     {
          allianceMatchScore[i] = reader.ReadSByte();
     }
     allianceMapWinner = new Types.BasicAllianceInformations();
     allianceMapWinner.Deserialize(reader);
     allianceMapWinnerScore = reader.ReadVarInt();
     if (allianceMapWinnerScore < 0)
         throw new Exception("Forbidden value on allianceMapWinnerScore = " + allianceMapWinnerScore + ", it doesn't respect the following condition : allianceMapWinnerScore < 0");
     allianceMapMyAllianceScore = reader.ReadVarInt();
     if (allianceMapMyAllianceScore < 0)
         throw new Exception("Forbidden value on allianceMapMyAllianceScore = " + allianceMapMyAllianceScore + ", it doesn't respect the following condition : allianceMapMyAllianceScore < 0");
     nextTickTime = reader.ReadDouble();
     if (nextTickTime < 0 || nextTickTime > 9.007199254740992E15)
         throw new Exception("Forbidden value on nextTickTime = " + nextTickTime + ", it doesn't respect the following condition : nextTickTime < 0 || nextTickTime > 9.007199254740992E15");
 }
        public override void Deserialize(IDataReader reader)
        {
            var limit = (ushort)reader.ReadUShort();

            alliances = new Types.AllianceInformations[limit];
            for (int i = 0; i < limit; i++)
            {
                alliances[i] = new Types.AllianceInformations();
                alliances[i].Deserialize(reader);
            }
            limit             = (ushort)reader.ReadUShort();
            allianceNbMembers = new uint[limit];
            for (int i = 0; i < limit; i++)
            {
                allianceNbMembers[i] = reader.ReadVarUhShort();
            }
            limit = (ushort)reader.ReadUShort();
            allianceRoundWeigth = new uint[limit];
            for (int i = 0; i < limit; i++)
            {
                allianceRoundWeigth[i] = reader.ReadVarUhInt();
            }
            limit = (ushort)reader.ReadVarInt();
            allianceMatchScore = new sbyte[limit];
            for (int i = 0; i < limit; i++)
            {
                allianceMatchScore[i] = reader.ReadSbyte();
            }
            limit = (ushort)reader.ReadUShort();
            allianceMapWinners = new Types.BasicAllianceInformations[limit];
            for (int i = 0; i < limit; i++)
            {
                allianceMapWinners[i] = new Types.BasicAllianceInformations();
                allianceMapWinners[i].Deserialize(reader);
            }
            allianceMapWinnerScore     = reader.ReadVarUhInt();
            allianceMapMyAllianceScore = reader.ReadVarUhInt();
            nextTickTime = reader.ReadDouble();
        }
Ejemplo n.º 11
0
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     alliance = new Types.AllianceInformations();
     alliance.Deserialize(reader);
 }
Ejemplo n.º 12
0
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     allianceIdentity = new Types.AllianceInformations();
     allianceIdentity.Deserialize(reader);
 }
Ejemplo n.º 13
0
 public AlliancePrismInformation(sbyte typeId, sbyte state, int nextVulnerabilityDate, int placementDate, int rewardTokenCount, Types.AllianceInformations alliance)
     : base(typeId, state, nextVulnerabilityDate, placementDate, rewardTokenCount)
 {
     this.alliance = alliance;
 }
Ejemplo n.º 14
0
 public AllianceJoinedMessage(Types.AllianceInformations allianceInfo, bool enabled, uint leadingGuildId)
 {
     this.allianceInfo   = allianceInfo;
     this.enabled        = enabled;
     this.leadingGuildId = leadingGuildId;
 }
Ejemplo n.º 15
0
 public void Deserialize(IDataReader reader)
 {
     allianceInfo = new Types.AllianceInformations();
     allianceInfo.Deserialize(reader);
     enabled = reader.ReadBoolean();
 }
 public HumanOptionAlliance(Types.AllianceInformations allianceInformations, sbyte aggressable)
 {
     this.allianceInformations = allianceInformations;
     this.aggressable          = aggressable;
 }
Ejemplo n.º 17
0
 public HumanOptionAlliance(Types.AllianceInformations allianceInformations, sbyte aggressable)
 {
     this.allianceInformations = allianceInformations;
     this.aggressable = aggressable;
 }
Ejemplo n.º 18
0
 public AllianceJoinedMessage(Types.AllianceInformations allianceInfo, bool enabled)
 {
     this.allianceInfo = allianceInfo;
     this.enabled      = enabled;
 }
Ejemplo n.º 19
0
 public override void Deserialize(BigEndianReader reader)
 {
     allianceInfo = new Types.AllianceInformations();
     allianceInfo.Deserialize(reader);
     enabled = reader.ReadBoolean();
 }
Ejemplo n.º 20
0
 public override void Deserialize(BigEndianReader reader)
 {
     allianceInfo = new Types.AllianceInformations();
     allianceInfo.Deserialize(reader);
     enabled = reader.ReadBoolean();
 }
Ejemplo n.º 21
0
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     alliance = new Types.AllianceInformations();
     alliance.Deserialize(reader);
 }
 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     allianceIdentity = new Types.AllianceInformations();
     allianceIdentity.Deserialize(reader);
 }
 public AllianceMembershipMessage(Types.AllianceInformations allianceInfo, bool enabled)
     : base(allianceInfo, enabled)
 {
 }
Ejemplo n.º 24
0
 public override void Deserialize(ICustomDataInput reader)
 {
     allianceInfo = new Types.AllianceInformations();
     allianceInfo.Deserialize(reader);
     enabled = reader.ReadBoolean();
 }
 public TaxCollectorStaticExtendedInformations(short firstNameId, short lastNameId, Types.GuildInformations guildIdentity, Types.AllianceInformations allianceIdentity)
     : base(firstNameId, lastNameId, guildIdentity)
 {
     this.allianceIdentity = allianceIdentity;
 }
 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     allianceIdentity = new Types.AllianceInformations();
     allianceIdentity.Deserialize(reader);
 }
 public TaxCollectorStaticExtendedInformations(short firstNameId, short lastNameId, Types.GuildInformations guildIdentity, Types.AllianceInformations allianceIdentity)
     : base(firstNameId, lastNameId, guildIdentity)
 {
     this.allianceIdentity = allianceIdentity;
 }
Ejemplo n.º 28
0
 public AlliancePrismInformation(sbyte typeId, sbyte state, int nextVulnerabilityDate, int placementDate, uint rewardTokenCount, Types.AllianceInformations alliance)
     : base(typeId, state, nextVulnerabilityDate, placementDate, rewardTokenCount)
 {
     this.alliance = alliance;
 }
 public AllianceMembershipMessage(Types.AllianceInformations allianceInfo, bool enabled, uint leadingGuildId)
     : base(allianceInfo, enabled, leadingGuildId)
 {
 }
Ejemplo n.º 30
0
 public AllianceJoinedMessage(Types.AllianceInformations allianceInfo, bool enabled)
 {
     this.allianceInfo = allianceInfo;
     this.enabled = enabled;
 }