mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-25 02:57:45 +00:00
Enum List Type
This commit is contained in:
parent
1332d580df
commit
a8be93b5fd
2 changed files with 13 additions and 7 deletions
|
@ -802,8 +802,6 @@ namespace Core {
|
||||||
Normal = 0x1,
|
Normal = 0x1,
|
||||||
MountSkill = 0xD,
|
MountSkill = 0xD,
|
||||||
};
|
};
|
||||||
|
|
||||||
/*! ModelType as found in eventsystemdefine.exd */
|
|
||||||
|
|
||||||
enum SocialCategory : uint8_t
|
enum SocialCategory : uint8_t
|
||||||
{
|
{
|
||||||
|
@ -813,6 +811,14 @@ namespace Core {
|
||||||
FreeCompany = 5,
|
FreeCompany = 5,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum SocialListType : uint8_t
|
||||||
|
{
|
||||||
|
PartyList = 0x02,
|
||||||
|
FriendList = 0x0b,
|
||||||
|
SearchList = 0x0e,
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
// todo: rename SocialRequestAction and SocialRequestResponse cause they seem ambiguous
|
// todo: rename SocialRequestAction and SocialRequestResponse cause they seem ambiguous
|
||||||
enum class SocialRequestAction : uint8_t
|
enum class SocialRequestAction : uint8_t
|
||||||
{
|
{
|
||||||
|
|
|
@ -433,7 +433,7 @@ void Core::Network::GameConnection::socialListHandler( const Packets::GamePacket
|
||||||
uint8_t type = inPacket.getValAt< uint8_t >( 0x2A );
|
uint8_t type = inPacket.getValAt< uint8_t >( 0x2A );
|
||||||
uint8_t count = inPacket.getValAt< uint8_t >( 0x2B );
|
uint8_t count = inPacket.getValAt< uint8_t >( 0x2B );
|
||||||
|
|
||||||
if( type == 0x02 )
|
if( type == SocialListType::PartyList )
|
||||||
{ // party list
|
{ // party list
|
||||||
|
|
||||||
ZoneChannelPacket< FFXIVIpcSocialList > listPacket( pPlayer->getId() );;
|
ZoneChannelPacket< FFXIVIpcSocialList > listPacket( pPlayer->getId() );;
|
||||||
|
@ -449,7 +449,7 @@ void Core::Network::GameConnection::socialListHandler( const Packets::GamePacket
|
||||||
queueOutPacket( listPacket );
|
queueOutPacket( listPacket );
|
||||||
|
|
||||||
}
|
}
|
||||||
else if( type == 0x0b )
|
else if( type == SocialListType::FriendList )
|
||||||
{ // friend list
|
{ // friend list
|
||||||
|
|
||||||
ZoneChannelPacket< FFXIVIpcSocialList > listPacket( pPlayer->getId() );
|
ZoneChannelPacket< FFXIVIpcSocialList > listPacket( pPlayer->getId() );
|
||||||
|
@ -466,8 +466,8 @@ void Core::Network::GameConnection::socialListHandler( const Packets::GamePacket
|
||||||
auto pFriend = actor->getAsPlayer();
|
auto pFriend = actor->getAsPlayer();
|
||||||
if( pFriend )
|
if( pFriend )
|
||||||
{
|
{
|
||||||
listPacket.data().entries[i] = pFriend->generatePlayerEntry();
|
/*listPacket.data().entries[i] = pFriend->generatePlayerEntry();
|
||||||
i++;
|
i++;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo: remove this branch entirely when using manager. physically hurts
|
// todo: remove this branch entirely when using manager. physically hurts
|
||||||
|
@ -481,7 +481,7 @@ void Core::Network::GameConnection::socialListHandler( const Packets::GamePacket
|
||||||
queueOutPacket( listPacket );
|
queueOutPacket( listPacket );
|
||||||
|
|
||||||
}
|
}
|
||||||
else if( type == 0x0e )
|
else if( type == SocialListType::SearchList )
|
||||||
{ // player search result
|
{ // player search result
|
||||||
// TODO: implement player search
|
// TODO: implement player search
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue