BFA Update (still lots of testing to do tho)

This commit is contained in:
hondacrx
2018-12-10 12:46:25 -05:00
parent 468b053946
commit 8e20114e10
256 changed files with 35613 additions and 10459 deletions
+24 -6
View File
@@ -152,12 +152,12 @@ namespace Game.Network.Packets
public override void Read()
{
int size = _worldPacket.ReadBits<int>(6);
uint size = _worldPacket.ReadUInt32();
for (int i = 0; i < size; ++i)
Talents[i] = _worldPacket.ReadUInt16();
Talents[i].Read(_worldPacket);
}
public Array<ushort> Talents = new Array<ushort>(6);
public Array<PvPTalent> Talents = new Array<PvPTalent>(4);
}
class LearnPvpTalentsFailed : ServerPacket
@@ -170,16 +170,34 @@ namespace Game.Network.Packets
_worldPacket.WriteUInt32(SpellID);
_worldPacket.WriteUInt32(Talents.Count);
foreach (var id in Talents)
_worldPacket.WriteUInt16(id);
foreach (var pvpTalent in Talents)
pvpTalent.Write(_worldPacket);
}
public uint Reason;
public uint SpellID;
public List<ushort> Talents = new List<ushort>();
public List<PvPTalent> Talents = new List<PvPTalent>();
}
//Structs
public struct PvPTalent
{
public ushort PvPTalentID;
public byte Slot;
public void Read(WorldPacket data)
{
PvPTalentID = data.ReadUInt16();
Slot = data.ReadUInt8();
}
public void Write(WorldPacket data)
{
data.WriteUInt16(PvPTalentID);
data.WriteUInt8(Slot);
}
}
struct GlyphBinding
{
public GlyphBinding(uint spellId, ushort glyphId)