public override void Serialize(IDataWriter writer) { writer.WriteShort((short)((int)this.finishedQuestsIds.Length)); uint[] numArray = this.finishedQuestsIds; for (int i = 0; i < (int)numArray.Length; i++) { writer.WriteVarShort((int)numArray[i]); } writer.WriteShort((short)((int)this.finishedQuestsCounts.Length)); uint[] numArray1 = this.finishedQuestsCounts; for (int j = 0; j < (int)numArray1.Length; j++) { writer.WriteVarShort((int)numArray1[j]); } writer.WriteShort((short)((int)this.activeQuests.Length)); QuestActiveInformations[] questActiveInformationsArray = this.activeQuests; for (int k = 0; k < (int)questActiveInformationsArray.Length; k++) { QuestActiveInformations questActiveInformation = questActiveInformationsArray[k]; writer.WriteShort(questActiveInformation.TypeId); questActiveInformation.Serialize(writer); } writer.WriteShort((short)((int)this.reinitDoneQuestsIds.Length)); uint[] numArray2 = this.reinitDoneQuestsIds; for (int l = 0; l < (int)numArray2.Length; l++) { writer.WriteVarShort((int)numArray2[l]); } }
public override void Serialize(ICustomDataOutput writer) { writer.WriteShort(((short)(m_finishedQuestsIds.Count))); int finishedQuestsIdsIndex; for (finishedQuestsIdsIndex = 0; (finishedQuestsIdsIndex < m_finishedQuestsIds.Count); finishedQuestsIdsIndex = (finishedQuestsIdsIndex + 1)) { writer.WriteVarUhShort(m_finishedQuestsIds[finishedQuestsIdsIndex]); } writer.WriteShort(((short)(m_finishedQuestsCounts.Count))); int finishedQuestsCountsIndex; for (finishedQuestsCountsIndex = 0; (finishedQuestsCountsIndex < m_finishedQuestsCounts.Count); finishedQuestsCountsIndex = (finishedQuestsCountsIndex + 1)) { writer.WriteVarUhShort(m_finishedQuestsCounts[finishedQuestsCountsIndex]); } writer.WriteShort(((short)(m_activeQuests.Count))); int activeQuestsIndex; for (activeQuestsIndex = 0; (activeQuestsIndex < m_activeQuests.Count); activeQuestsIndex = (activeQuestsIndex + 1)) { QuestActiveInformations objectToSend = m_activeQuests[activeQuestsIndex]; writer.WriteUShort(((ushort)(objectToSend.TypeID))); objectToSend.Serialize(writer); } writer.WriteShort(((short)(m_reinitDoneQuestsIds.Count))); int reinitDoneQuestsIdsIndex; for (reinitDoneQuestsIdsIndex = 0; (reinitDoneQuestsIdsIndex < m_reinitDoneQuestsIds.Count); reinitDoneQuestsIdsIndex = (reinitDoneQuestsIdsIndex + 1)) { writer.WriteVarUhShort(m_reinitDoneQuestsIds[reinitDoneQuestsIdsIndex]); } }
public override void Serialize(IDataWriter writer) { writer.WriteUShort(((ushort)(m_infos.TypeID))); m_infos.Serialize(writer); }
public override void Serialize(ICustomDataOutput writer) { writer.WriteShort(Infos.TypeId); Infos.Serialize(writer); }
public override void Serialize(ICustomDataOutput writer) { writer.WriteUShort(((ushort)(m_infos.TypeID))); m_infos.Serialize(writer); }
public override void Serialize(IDataWriter writer) { writer.WriteShort(infos.TypeId); infos.Serialize(writer); }