public void Serialize(IDataWriter writer) { writer.WriteDouble(MasterId); writer.WriteDouble(SlaveId); for (var i = 0; i < SlaveSpells.Length; i++) { SlaveSpells[i].Serialize(writer); } SlaveStats.Serialize(writer); for (var i = 0; i < Shortcuts.Length; i++) { Shortcuts[i].Serialize(writer); } }
public override void Serialize(IDataWriter writer) { writer.WriteDouble(MasterId); writer.WriteDouble(SlaveId); writer.WriteShort((short)SlaveSpells.Count); foreach (var x in SlaveSpells) { x.Serialize(writer); } SlaveStats.Serialize(writer); writer.WriteShort((short)Shortcuts.Count); foreach (var x in Shortcuts) { x.Serialize(writer); } }
public override void Serialize(IDataWriter writer) { writer.WriteDouble(MasterId); writer.WriteDouble(SlaveId); writer.WriteShort((short)SlaveSpells.Count); for (var slaveSpellsIndex = 0; slaveSpellsIndex < SlaveSpells.Count; slaveSpellsIndex++) { var objectToSend = SlaveSpells[slaveSpellsIndex]; objectToSend.Serialize(writer); } SlaveStats.Serialize(writer); writer.WriteShort((short)Shortcuts.Count); for (var shortcutsIndex = 0; shortcutsIndex < Shortcuts.Count; shortcutsIndex++) { var objectToSend = Shortcuts[shortcutsIndex]; writer.WriteUShort(objectToSend.TypeID); objectToSend.Serialize(writer); } }