mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-25 22:27:45 +00:00
AchievementProgressRequestPacket.cs- Create this
This commit is contained in:
parent
384d134f1d
commit
e4956edf50
1 changed files with 33 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue