mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
Added receive packet for all social add/remove. They are all the same structure so a single packet should do.
This commit is contained in:
parent
2ce801f217
commit
daaded83c3
@ -93,6 +93,10 @@
|
||||
<Compile Include="packets\receive\script\ScriptResultPacket.cs" />
|
||||
<Compile Include="packets\receive\SetTargetPacket.cs" />
|
||||
<Compile Include="packets\receive\LockTargetPacket.cs" />
|
||||
<Compile Include="packets\receive\social\AddBlacklistPacket.cs" />
|
||||
<Compile Include="packets\receive\social\AddFriendRequestPacket.cs" />
|
||||
<Compile Include="packets\receive\social\RemoveBlacklistPacket.cs" />
|
||||
<Compile Include="packets\receive\social\RemoveFriendRequestPacket.cs" />
|
||||
<Compile Include="packets\receive\StartScriptPacket.cs" />
|
||||
<Compile Include="packets\send\actor\ActorDoEmotePacket.cs" />
|
||||
<Compile Include="packets\send\actor\DeleteAllActorsPacket.cs" />
|
||||
@ -137,6 +141,10 @@
|
||||
<Compile Include="packets\send\SetMapPacket.cs" />
|
||||
<Compile Include="packets\send\SetMusicPacket.cs" />
|
||||
<Compile Include="packets\send\SetWeatherPacket.cs" />
|
||||
<Compile Include="packets\send\social\BlacklistAddedPacket.cs" />
|
||||
<Compile Include="packets\send\social\BlacklistRemovedPacket.cs" />
|
||||
<Compile Include="packets\send\social\FriendlistAddedPacket.cs" />
|
||||
<Compile Include="packets\send\social\FriendlistRemovedPacket.cs" />
|
||||
<Compile Include="packets\send\supportdesk\IssueListResponsePacket.cs" />
|
||||
<Compile Include="packets\send\supportdesk\StartGMTicketPacket.cs" />
|
||||
<Compile Include="packets\send\supportdesk\EndGMTicketPacket.cs" />
|
||||
|
@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user