public override void Serialize(IDataWriter writer) { writer.WriteBoolean(m_spellPrevisualization); writer.WriteShort(((short)(m_spells.Count))); int spellsIndex; for (spellsIndex = 0; (spellsIndex < m_spells.Count); spellsIndex = (spellsIndex + 1)) { SpellItem objectToSend = m_spells[spellsIndex]; objectToSend.Serialize(writer); } }
public override void Serialize(ICustomDataOutput writer) { writer.WriteShort(((short)(m_slaveSpells.Count))); int slaveSpellsIndex; for (slaveSpellsIndex = 0; (slaveSpellsIndex < m_slaveSpells.Count); slaveSpellsIndex = (slaveSpellsIndex + 1)) { SpellItem objectToSend = m_slaveSpells[slaveSpellsIndex]; objectToSend.Serialize(writer); } m_slaveStats.Serialize(writer); writer.WriteShort(((short)(m_shortcuts.Count))); int shortcutsIndex; for (shortcutsIndex = 0; (shortcutsIndex < m_shortcuts.Count); shortcutsIndex = (shortcutsIndex + 1)) { Shortcut objectToSend = m_shortcuts[shortcutsIndex]; writer.WriteUShort(((ushort)(objectToSend.TypeID))); objectToSend.Serialize(writer); } writer.WriteDouble(m_masterId); writer.WriteDouble(m_slaveId); }