Пример #1
0
        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();
        }
Пример #2
0
 public static void WriteChangeSpellData(this LittleEndianWriter writer, IChangeSpellData data)
 {
     data.Serialize(writer);
 }
Пример #3
0
 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;
 }
Пример #5
0
 public static void WriteChangeSpellData(this PacketWriter writer, IChangeSpellData data)
 {
     writer.WriteByte((byte)data.ChangeSlotSpellDataType);
     data.WriteBodyInternal(writer);
 }