Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
SpellBookPackets.cpp
Go to the documentation of this file.
1/*
2* This file is part of Project SkyFire https://www.projectskyfire.org.
3* See LICENSE.md file for Copyright information
4*/
5
6#include "SpellBookPackets.h"
7
9{
10 WorldPacket BuildSupercededSpellPacket(std::vector<SupercededSpellPair> const& spellPairs)
11 {
13 data.WriteBits(spellPairs.size(), 22);
14 data.WriteBits(spellPairs.size(), 22);
15 data.FlushBits();
16
17 for (SupercededSpellPair const& spellPair : spellPairs)
18 {
19 data << uint32(spellPair.first);
20 data << uint32(spellPair.second);
21 }
22
23 return data;
24 }
25}
std::uint32_t uint32
Definition Define.h:77
void WriteBits(T value, size_t bits)
Definition ByteBuffer.h:192
void FlushBits()
Definition ByteBuffer.h:154
@ SMSG_SUPERCEDED_SPELL
Definition Opcodes.h:1022
WorldPacket BuildSupercededSpellPacket(std::vector< SupercededSpellPair > const &spellPairs)
std::pair< uint32, uint32 > SupercededSpellPair