public ChangeSlotSpellData(PacketReader reader, ChannelID channelID, NetID senderNetID) { this.ChannelID = channelID; this.SenderNetID = senderNetID; byte bitfield = reader.ReadByte(); byte spellSlot = (byte)(bitfield & 0x3F); bool isSummonerSpell = (bitfield & 0x40) != 0; this.SpellSlot = spellSlot; this.IsSummonerSpell = isSummonerSpell; this.ChangeSpellData = reader.ReadChangeSpellData(); this.ExtraBytes = reader.ReadLeft(); }
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); }
public ChangeSlotSpellDataMessage(uint netId, byte spellSlot, bool isSummonerSpell, IChangeSpellData changeSpellData) : base(netId) { this.spellSlot = spellSlot; this.isSummonerSpell = isSummonerSpell; this.changeSpellData = changeSpellData; }
public static void WriteChangeSpellData(this PacketWriter writer, IChangeSpellData data) { writer.WriteByte((byte)data.ChangeSlotSpellDataType); data.WriteBodyInternal(writer); }