2018-10-25 04:37:41 +00:00
|
|
|
using System;
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
namespace FFXIVClassic_Map_Server.packets.receive
|
|
|
|
{
|
|
|
|
class AchievementProgressRequestPacket
|
|
|
|
{
|
|
|
|
public bool invalidPacket = false;
|
|
|
|
|
2019-06-04 01:16:39 -04:00
|
|
|
public uint achievementId;
|
2018-10-25 04:37:41 +00:00
|
|
|
public uint responseType;
|
|
|
|
|
|
|
|
public AchievementProgressRequestPacket(byte[] data)
|
|
|
|
{
|
|
|
|
using (MemoryStream mem = new MemoryStream(data))
|
|
|
|
{
|
|
|
|
using (BinaryReader binReader = new BinaryReader(mem))
|
|
|
|
{
|
|
|
|
try
|
|
|
|
{
|
2019-06-04 01:16:39 -04:00
|
|
|
achievementId = binReader.ReadUInt32();
|
2018-10-25 04:37:41 +00:00
|
|
|
responseType = binReader.ReadUInt32();
|
|
|
|
}
|
|
|
|
catch (Exception)
|
|
|
|
{
|
|
|
|
invalidPacket = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|