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:
Filip Maj 2015-12-05 00:11:29 -05:00
parent 2ce801f217
commit daaded83c3
2 changed files with 39 additions and 0 deletions

View File

@ -93,6 +93,10 @@
<Compile Include="packets\receive\script\ScriptResultPacket.cs" /> <Compile Include="packets\receive\script\ScriptResultPacket.cs" />
<Compile Include="packets\receive\SetTargetPacket.cs" /> <Compile Include="packets\receive\SetTargetPacket.cs" />
<Compile Include="packets\receive\LockTargetPacket.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\receive\StartScriptPacket.cs" />
<Compile Include="packets\send\actor\ActorDoEmotePacket.cs" /> <Compile Include="packets\send\actor\ActorDoEmotePacket.cs" />
<Compile Include="packets\send\actor\DeleteAllActorsPacket.cs" /> <Compile Include="packets\send\actor\DeleteAllActorsPacket.cs" />
@ -137,6 +141,10 @@
<Compile Include="packets\send\SetMapPacket.cs" /> <Compile Include="packets\send\SetMapPacket.cs" />
<Compile Include="packets\send\SetMusicPacket.cs" /> <Compile Include="packets\send\SetMusicPacket.cs" />
<Compile Include="packets\send\SetWeatherPacket.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\IssueListResponsePacket.cs" />
<Compile Include="packets\send\supportdesk\StartGMTicketPacket.cs" /> <Compile Include="packets\send\supportdesk\StartGMTicketPacket.cs" />
<Compile Include="packets\send\supportdesk\EndGMTicketPacket.cs" /> <Compile Include="packets\send\supportdesk\EndGMTicketPacket.cs" />

View File

@ -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;
}
}
}
}
}
}