public override void Serialize(ICustomDataOutput writer) { writer.WriteShort(((short)(m_chosenIdols.Count))); int chosenIdolsIndex; for (chosenIdolsIndex = 0; (chosenIdolsIndex < m_chosenIdols.Count); chosenIdolsIndex = (chosenIdolsIndex + 1)) { writer.WriteVarUhShort(m_chosenIdols[chosenIdolsIndex]); } writer.WriteShort(((short)(m_partyChosenIdols.Count))); int partyChosenIdolsIndex; for (partyChosenIdolsIndex = 0; (partyChosenIdolsIndex < m_partyChosenIdols.Count); partyChosenIdolsIndex = (partyChosenIdolsIndex + 1)) { writer.WriteVarUhShort(m_partyChosenIdols[partyChosenIdolsIndex]); } writer.WriteShort(((short)(m_partyIdols.Count))); int partyIdolsIndex; for (partyIdolsIndex = 0; (partyIdolsIndex < m_partyIdols.Count); partyIdolsIndex = (partyIdolsIndex + 1)) { PartyIdol objectToSend = m_partyIdols[partyIdolsIndex]; writer.WriteUShort(((ushort)(objectToSend.TypeID))); objectToSend.Serialize(writer); } }
public override void Serialize(IDataWriter writer) { writer.WriteShort((short)((int)this.chosenIdols.Length)); uint[] numArray = this.chosenIdols; for (int i = 0; i < (int)numArray.Length; i++) { writer.WriteVarShort((int)numArray[i]); } writer.WriteShort((short)((int)this.partyChosenIdols.Length)); uint[] numArray1 = this.partyChosenIdols; for (int j = 0; j < (int)numArray1.Length; j++) { writer.WriteVarShort((int)numArray1[j]); } writer.WriteShort((short)((int)this.partyIdols.Length)); PartyIdol[] partyIdolArray = this.partyIdols; for (int k = 0; k < (int)partyIdolArray.Length; k++) { PartyIdol partyIdol = partyIdolArray[k]; writer.WriteShort(partyIdol.TypeId); partyIdol.Serialize(writer); } }
public override void Serialize(ICustomDataOutput writer) { m_partyIdol.Serialize(writer); }
public override void Serialize(IDataWriter writer) { m_partyIdol.Serialize(writer); }