Merged in dude22072/ffxiv-classic-server-1 (pull request #57)

Achievement Progress Request (0x0135) implementation
This commit is contained in:
Joseph Mikel Keller authored and Filip Maj committed 2019-06-04 05:11:51 +00:00
commit 2195b0b7dc
3 files changed
+75

No files matched your search

@@ -0,0 +1,33 @@
using System;
using System.IO;
namespace FFXIVClassic_Map_Server.packets.receive
{
class AchievementProgressRequestPacket
{
public bool invalidPacket = false;
public uint achievementID;
public uint responseType;
public AchievementProgressRequestPacket(byte[] data)
{
using (MemoryStream mem = new MemoryStream(data))
{
using (BinaryReader binReader = new BinaryReader(mem))
{
try
{
achievementID = binReader.ReadUInt32();
responseType = binReader.ReadUInt32();
}
catch (Exception)
{
invalidPacket = true;
}
}
}
}
}
}