Пример #1
0
 public GuildFactsMessage(GuildFactSheetInformations infos, int creationDate, uint nbTaxCollectors, CharacterMinimalInformations[] members)
 {
     this.infos           = infos;
     this.creationDate    = creationDate;
     this.nbTaxCollectors = nbTaxCollectors;
     this.members         = members;
 }
Пример #2
0
 public GuildFactsMessage(GuildFactSheetInformations infos, int creationDate, ushort nbTaxCollectors, List <CharacterMinimalInformations> members)
 {
     Infos           = infos;
     CreationDate    = creationDate;
     NbTaxCollectors = nbTaxCollectors;
     Members         = members;
 }
Пример #3
0
 public GuildFactsMessage(GuildFactSheetInformations Infos, int CreationDate, ushort NbTaxCollectors, List <CharacterMinimalGuildPublicInformations> Members)
 {
     this.Infos           = Infos;
     this.CreationDate    = CreationDate;
     this.NbTaxCollectors = NbTaxCollectors;
     this.Members         = Members;
 }
Пример #4
0
 public GuildFactsMessage(GuildFactSheetInformations infos, int creationDate, short nbTaxCollectors, IEnumerable <Types.CharacterMinimalInformations> members)
 {
     this.infos           = infos;
     this.creationDate    = creationDate;
     this.nbTaxCollectors = nbTaxCollectors;
     this.members         = members;
 }
Пример #5
0
        public override void Deserialize(ICustomDataInput reader)
        {
            this.infos = ProtocolTypeManager.GetInstance <GuildFactSheetInformations>(reader.ReadShort());
            this.infos.Deserialize(reader);
            this.creationDate = reader.ReadInt();

            if (this.creationDate < 0)
            {
                throw new Exception("Forbidden value on creationDate = " + this.creationDate + ", it doesn't respect the following condition : creationDate < 0");
            }
            this.nbTaxCollectors = reader.ReadVarUhShort();

            if (this.nbTaxCollectors < 0)
            {
                throw new Exception("Forbidden value on nbTaxCollectors = " + this.nbTaxCollectors + ", it doesn't respect the following condition : nbTaxCollectors < 0");
            }
            this.enabled = reader.ReadBoolean();
            var limit = reader.ReadUShort();

            this.members = new CharacterMinimalInformations[limit];
            for (int i = 0; i < limit; i++)
            {
                this.members[i] = new CharacterMinimalInformations();
                this.members[i].Deserialize(reader);
            }
        }
Пример #6
0
 public GuildFactsMessage(GuildFactSheetInformations infos = null, uint creationDate = 0, uint nbTaxCollectors = 0, bool enabled = false, List <CharacterMinimalInformations> members = null)
 {
     Infos           = infos;
     CreationDate    = creationDate;
     NbTaxCollectors = nbTaxCollectors;
     Enabled         = enabled;
     Members         = members;
 }
 public GuildInAllianceFactsMessage(
     GuildFactSheetInformations infos,
     uint creationDate,
     uint nbTaxCollectors,
     List <CharacterMinimalGuildPublicInformations> members,
     BasicNamedAllianceInformations allianceInfos)
     : base(infos, creationDate, nbTaxCollectors, members)
 {
     this.allianceInfos = allianceInfos;
 }
 public GuildInAllianceFactsMessage(GuildFactSheetInformations infos,
                                    int creationDate,
                                    ushort nbTaxCollectors,
                                    bool enabled,
                                    CharacterMinimalInformations[] members,
                                    BasicNamedAllianceInformations allianceInfos)
     : base(infos, creationDate, nbTaxCollectors, enabled, members)
 {
     this.allianceInfos = allianceInfos;
 }
Пример #9
0
 public void Deserialize(IDataReader reader)
 {
     Infos = new GuildFactSheetInformations();
     Infos.Deserialize(reader);
     CreationDate    = (UInt32)reader.ReadInt();
     NbTaxCollectors = (UInt16)reader.ReadVarShort();
     Members         = new CharacterMinimalInformations[reader.ReadShort()];
     for (var i = 0; i < Members.Length; i++)
     {
         (Members[i] = new CharacterMinimalInformations()).Deserialize(reader);
     }
 }
Пример #10
0
        public override void Deserialize(IDataReader reader)
        {
            this.infos = ProtocolTypeManager.GetInstance <GuildFactSheetInformations>(reader.ReadUShort());
            this.infos.Deserialize(reader);
            this.creationDate    = reader.ReadInt();
            this.nbTaxCollectors = reader.ReadVarUhShort();
            ushort num = reader.ReadUShort();

            this.members = new CharacterMinimalInformations[num];
            for (int i = 0; i < num; i++)
            {
                this.members[i] = new CharacterMinimalInformations();
                this.members[i].Deserialize(reader);
            }
        }
Пример #11
0
        public override void Deserialize(IDataReader reader)
        {
            m_infos = ProtocolTypeManager.GetInstance <GuildFactSheetInformations>(reader.ReadUShort());
            m_infos.Deserialize(reader);
            int membersCount = reader.ReadUShort();
            int membersIndex;

            m_members = new System.Collections.Generic.List <CharacterMinimalInformations>();
            for (membersIndex = 0; (membersIndex < membersCount); membersIndex = (membersIndex + 1))
            {
                CharacterMinimalInformations objectToAdd = new CharacterMinimalInformations();
                objectToAdd.Deserialize(reader);
                m_members.Add(objectToAdd);
            }
            m_creationDate    = reader.ReadInt();
            m_nbTaxCollectors = reader.ReadVarUhShort();
        }
Пример #12
0
        public override void Deserialize(ICustomDataInput reader)
        {
            var infosTypeId = reader.ReadShort();

            Infos = new GuildFactSheetInformations();
            Infos.Deserialize(reader);
            CreationDate    = reader.ReadInt();
            NbTaxCollectors = reader.ReadVarShort();
            var countMembers = reader.ReadShort();

            Members = new List <CharacterMinimalGuildPublicInformations>();
            for (short i = 0; i < countMembers; i++)
            {
                CharacterMinimalGuildPublicInformations type = new CharacterMinimalGuildPublicInformations();
                type.Deserialize(reader);
                Members.Add(type);
            }
        }
Пример #13
0
        public override void Deserialize(IDataReader reader)
        {
            this.infos = ProtocolTypeManager.GetInstance <GuildFactSheetInformations>((uint)reader.ReadUShort());
            this.infos.Deserialize(reader);
            this.creationDate = (uint)reader.ReadInt();
            if (this.creationDate < 0U)
            {
                throw new Exception("Forbidden value (" + (object)this.creationDate + ") on element of GuildFactsMessage.creationDate.");
            }
            this.nbTaxCollectors = (uint)reader.ReadVarUhShort();
            if (this.nbTaxCollectors < 0U)
            {
                throw new Exception("Forbidden value (" + (object)this.nbTaxCollectors + ") on element of GuildFactsMessage.nbTaxCollectors.");
            }
            uint num = (uint)reader.ReadUShort();

            for (int index = 0; (long)index < (long)num; ++index)
            {
                CharacterMinimalGuildPublicInformations publicInformations = new CharacterMinimalGuildPublicInformations();
                publicInformations.Deserialize(reader);
                this.members.Add(publicInformations);
            }
        }
Пример #14
0
        public override void Deserialize(IDataReader reader)
        {
            infos = Types.ProtocolTypeManager.GetInstance <GuildFactSheetInformations>(reader.ReadShort());
            infos.Deserialize(reader);
            creationDate = reader.ReadInt();
            if (creationDate < 0)
            {
                throw new Exception("Forbidden value on creationDate = " + creationDate + ", it doesn't respect the following condition : creationDate < 0");
            }
            nbTaxCollectors = reader.ReadVarShort();
            if (nbTaxCollectors < 0)
            {
                throw new Exception("Forbidden value on nbTaxCollectors = " + nbTaxCollectors + ", it doesn't respect the following condition : nbTaxCollectors < 0");
            }
            var limit    = reader.ReadShort();
            var members_ = new Types.CharacterMinimalInformations[limit];

            for (int i = 0; i < limit; i++)
            {
                members_[i] = new Types.CharacterMinimalInformations();
                members_[i].Deserialize(reader);
            }
            members = members_;
        }
 public GuildInAllianceFactsMessage(GuildFactSheetInformations infos, int creationDate, short nbTaxCollectors, IEnumerable <Types.CharacterMinimalInformations> members, Types.BasicNamedAllianceInformations allianceInfos)
     : base(infos, creationDate, nbTaxCollectors, members)
 {
     this.allianceInfos = allianceInfos;
 }