Exemple #1
0
        public override void Deserialize(ICustomDataInput reader)
        {
            var countChosenIdols = reader.ReadShort();

            ChosenIdols = new List <short>();
            for (short i = 0; i < countChosenIdols; i++)
            {
                ChosenIdols.Add(reader.ReadVarShort());
            }
            var countPartyChosenIdols = reader.ReadShort();

            PartyChosenIdols = new List <short>();
            for (short i = 0; i < countPartyChosenIdols; i++)
            {
                PartyChosenIdols.Add(reader.ReadVarShort());
            }
            var countPartyIdols = reader.ReadShort();

            PartyIdols = new List <PartyIdol>();
            for (short i = 0; i < countPartyIdols; i++)
            {
                var       partyIdolstypeId = reader.ReadShort();
                PartyIdol type             = new PartyIdol();
                type.Deserialize(reader);
                PartyIdols.Add(type);
            }
        }
Exemple #2
0
        public override void Deserialize(ICustomDataInput reader)
        {
            int chosenIdolsCount = reader.ReadUShort();
            int chosenIdolsIndex;

            m_chosenIdols = new System.Collections.Generic.List <ushort>();
            for (chosenIdolsIndex = 0; (chosenIdolsIndex < chosenIdolsCount); chosenIdolsIndex = (chosenIdolsIndex + 1))
            {
                m_chosenIdols.Add(reader.ReadVarUhShort());
            }
            int partyChosenIdolsCount = reader.ReadUShort();
            int partyChosenIdolsIndex;

            m_partyChosenIdols = new System.Collections.Generic.List <ushort>();
            for (partyChosenIdolsIndex = 0; (partyChosenIdolsIndex < partyChosenIdolsCount); partyChosenIdolsIndex = (partyChosenIdolsIndex + 1))
            {
                m_partyChosenIdols.Add(reader.ReadVarUhShort());
            }
            int partyIdolsCount = reader.ReadUShort();
            int partyIdolsIndex;

            m_partyIdols = new System.Collections.Generic.List <PartyIdol>();
            for (partyIdolsIndex = 0; (partyIdolsIndex < partyIdolsCount); partyIdolsIndex = (partyIdolsIndex + 1))
            {
                PartyIdol objectToAdd = ProtocolTypeManager.GetInstance <PartyIdol>((short)reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                m_partyIdols.Add(objectToAdd);
            }
        }
Exemple #3
0
        public override void Deserialize(IDataReader reader)
        {
            var ChosenIdolsCount = reader.ReadShort();

            ChosenIdols = new List <short>();
            for (var i = 0; i < ChosenIdolsCount; i++)
            {
                ChosenIdols.Add(reader.ReadVarShort());
            }
            var PartyChosenIdolsCount = reader.ReadShort();

            PartyChosenIdols = new List <short>();
            for (var i = 0; i < PartyChosenIdolsCount; i++)
            {
                PartyChosenIdols.Add(reader.ReadVarShort());
            }
            var PartyIdolsCount = reader.ReadShort();

            PartyIdols = new List <PartyIdol>();
            for (var i = 0; i < PartyIdolsCount; i++)
            {
                PartyIdol objectToAdd = ProtocolTypeManager.GetInstance(reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                PartyIdols.Add(objectToAdd);
            }
        }
        public override void Deserialize(IDataReader reader)
        {
            uint num1 = (uint)reader.ReadUShort();

            for (int index = 0; (long)index < (long)num1; ++index)
            {
                uint num2 = (uint)reader.ReadVarUhShort();
                if (num2 < 0U)
                {
                    throw new Exception("Forbidden value (" + (object)num2 + ") on elements of chosenIdols.");
                }
                this.chosenIdols.Add(num2);
            }
            uint num3 = (uint)reader.ReadUShort();

            for (int index = 0; (long)index < (long)num3; ++index)
            {
                uint num2 = (uint)reader.ReadVarUhShort();
                if (num2 < 0U)
                {
                    throw new Exception("Forbidden value (" + (object)num2 + ") on elements of partyChosenIdols.");
                }
                this.partyChosenIdols.Add(num2);
            }
            uint num4 = (uint)reader.ReadUShort();

            for (int index = 0; (long)index < (long)num4; ++index)
            {
                PartyIdol instance = ProtocolTypeManager.GetInstance <PartyIdol>((uint)reader.ReadUShort());
                instance.Deserialize(reader);
                this.partyIdols.Add(instance);
            }
        }
Exemple #5
0
 public override void Deserialize(IDataReader reader)
 {
     PartyIdol = new PartyIdol();
     PartyIdol.Deserialize(reader);
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     m_partyIdol = new PartyIdol();
     m_partyIdol.Deserialize(reader);
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     PartyIdol_ = new PartyIdol();
     PartyIdol_.Deserialize(reader);
 }