Beispiel #1
0
        public override void Deserialize(IDataReader reader)
        {
            Infos = ProtocolTypeManager.GetInstance(reader.ReadUShort());
            Infos.Deserialize(reader);
            CreationDate    = reader.ReadInt();
            NbTaxCollectors = reader.ReadVarUhShort();
            var MembersCount = reader.ReadShort();

            Members = new List <CharacterMinimalGuildPublicInformations>();
            for (var i = 0; i < MembersCount; i++)
            {
                var objectToAdd = new CharacterMinimalGuildPublicInformations();
                objectToAdd.Deserialize(reader);
                Members.Add(objectToAdd);
            }
        }
Beispiel #2
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);
            }
        }
Beispiel #3
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);
            }
        }