public override void Serialize(LittleEndianWriter writer) { writer.WriteByte(spellSlot); byte bitfield = 0; if (isSummonerSpell) { bitfield |= 0x01; } writer.WriteByte(bitfield); writer.WriteUInt((uint)changeSpellData.ChangeSlotSpellDataType); ChangeSpellDataExtension.WriteChangeSpellData(writer, changeSpellData); changeSpellData.Serialize(writer); }
public override void Serialize(LittleEndianWriter writer) { writer.WriteByte((byte)0); writer.WriteByte((byte)0x00); writer.WriteByte((byte)0x02); writer.WriteByte((byte)0x00); writer.WriteByte((byte)0x00); writer.WriteByte((byte)0x00); writer.WriteString("BlindMonkQTwoDash"); writer.WriteByte((byte)0x00); return; byte bitfield = 0; bitfield |= (byte)((byte)spellSlot & 0x3F); if (isSummonerSpell) { bitfield |= 0x40; } writer.WriteByte(bitfield); ChangeSpellDataExtension.WriteChangeSpellData(writer, changeSpellData); changeSpellData.Serialize(writer); }
public static void WriteChangeSpellData(this LittleEndianWriter writer, IChangeSpellData data) { data.Serialize(writer); }
public static void WriteChangeSpellData(this LittleEndianWriter writer, IChangeSpellData data) { writer.WriteByte((byte)data.ChangeSlotSpellDataType); data.Serialize(writer); }