2017-08-22 21:36:20 +02:00
|
|
|
#ifndef _CORE_NETWORK_PACKETS_CHAT_SERVER_IPC_H
|
|
|
|
#define _CORE_NETWORK_PACKETS_CHAT_SERVER_IPC_H
|
|
|
|
|
2018-03-06 22:22:19 +01:00
|
|
|
#include <Common.h>
|
|
|
|
#include <Network/CommonNetwork.h>
|
2017-08-22 21:36:20 +02:00
|
|
|
|
2019-06-03 00:21:58 +10:00
|
|
|
namespace Sapphire::Network::Packets::Server
|
2019-06-02 23:28:19 +10:00
|
|
|
{
|
2017-08-22 21:36:20 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Structural representation of the packet sent by the server as response
|
2017-08-22 23:53:20 +02:00
|
|
|
* to a tell request
|
2017-08-22 21:36:20 +02:00
|
|
|
*/
|
2019-01-12 22:53:16 +01:00
|
|
|
struct FFXIVIpcTell : FFXIVIpcBasePacket< Tell >
|
2017-08-22 21:36:20 +02:00
|
|
|
{
|
2019-01-12 22:53:16 +01:00
|
|
|
uint64_t contentId;
|
|
|
|
uint16_t worldId;
|
2019-01-31 13:13:46 +11:00
|
|
|
uint8_t flags;
|
2018-08-29 21:40:59 +02:00
|
|
|
char receipientName[32];
|
2019-01-12 22:53:16 +01:00
|
|
|
char msg[1029];
|
2017-08-22 21:36:20 +02:00
|
|
|
};
|
|
|
|
|
2023-05-30 22:42:20 +09:00
|
|
|
struct FFXIVIpcChannelChat : FFXIVIpcBasePacket< ChannelChat >
|
|
|
|
{
|
|
|
|
uint64_t channelId;
|
|
|
|
uint64_t contentId;
|
|
|
|
uint32_t charaId;
|
|
|
|
uint8_t type;
|
|
|
|
uint8_t unknown1;
|
|
|
|
uint8_t unknown2;
|
|
|
|
char name[32];
|
|
|
|
char message[1024];
|
|
|
|
uint8_t padding;
|
|
|
|
};
|
|
|
|
|
2018-08-29 21:40:59 +02:00
|
|
|
/**
|
2017-08-22 23:53:20 +02:00
|
|
|
* Structural representation of the packet sent by the server as response
|
|
|
|
* to a failed tell because of unavailable target player
|
|
|
|
*/
|
2019-01-12 22:53:16 +01:00
|
|
|
struct FFXIVIpcTellErrNotFound : FFXIVIpcBasePacket< TellErrNotFound >
|
2017-08-22 23:53:20 +02:00
|
|
|
{
|
2018-08-29 21:40:59 +02:00
|
|
|
char receipientName[32];
|
2017-08-22 23:53:20 +02:00
|
|
|
};
|
2017-08-22 21:36:20 +02:00
|
|
|
|
2019-08-07 21:42:38 -07:00
|
|
|
struct FFXIVIpcFreeCompanyEvent : FFXIVIpcBasePacket< FreeCompanyEvent >
|
|
|
|
{
|
|
|
|
uint16_t unknown;
|
|
|
|
uint16_t unknown1;
|
|
|
|
uint16_t unknown2;
|
|
|
|
uint16_t unknown3;
|
|
|
|
uint16_t unknown4;
|
|
|
|
char padding[6];
|
|
|
|
uint8_t eventID;
|
|
|
|
/*
|
|
|
|
* 0x0F Login
|
|
|
|
* 0x10 Logout
|
|
|
|
*/
|
|
|
|
uint8_t padding1;
|
|
|
|
char padding2[6];
|
|
|
|
uint16_t unknown5;
|
|
|
|
char parameter[46];
|
|
|
|
/**
|
|
|
|
* eventID | parameter usage
|
|
|
|
* 0x0F FC name
|
|
|
|
* 0x10 FC name
|
|
|
|
*/
|
|
|
|
char parameter1[32];
|
|
|
|
/**
|
|
|
|
* eventID | parameter1 usage
|
|
|
|
* 0x0F Character name
|
|
|
|
* 0x10 Character name
|
|
|
|
*/
|
|
|
|
};
|
|
|
|
|
2019-06-02 23:28:19 +10:00
|
|
|
} /* Sapphire::Common::Network::Packets::Server */
|
2017-08-22 21:36:20 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /*_CORE_NETWORK_PACKETS_CHAT_SERVER_IPC_H*/
|