mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-22 12:47:46 +00:00
29 lines
736 B
C#
29 lines
736 B
C#
![]() |
using System;
|
|||
|
using System.IO;
|
|||
|
using System.Text;
|
|||
|
|
|||
|
namespace FFXIVClassic_Map_Server.packets.receive.social
|
|||
|
{
|
|||
|
class AddRemoveSocialPacket
|
|||
|
{
|
|||
|
public bool invalidPacket = false;
|
|||
|
public string name;
|
|||
|
|
|||
|
public AddRemoveSocialPacket(byte[] data)
|
|||
|
{
|
|||
|
using (MemoryStream mem = new MemoryStream(data))
|
|||
|
{
|
|||
|
using (BinaryReader binReader = new BinaryReader(mem))
|
|||
|
{
|
|||
|
try{
|
|||
|
name = Encoding.ASCII.GetString(binReader.ReadBytes(0x20));
|
|||
|
}
|
|||
|
catch (Exception){
|
|||
|
invalidPacket = true;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|