1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-06-16 20:37:46 +00:00
sapphire/src/common/Network/PacketDef/Chat/ServerChatDef.h

63 lines
1.3 KiB
C++

#pragma once
#include <Common.h>
#include <Network/CommonNetwork.h>
namespace Sapphire::Network::Packets::Server
{
/**
* Structural representation of the packet sent by the server as response
* to a tell request
*/
struct FFXIVChatFrom : FFXIVIpcBasePacket< ChatFrom >
{
uint64_t fromCharacterID;
uint8_t type;
char fromName[32]; //uint8_t
char message[1024]; //uint8_t
};
/**
* Structural representation of the packet sent by the server as
* message from a chat channel that the player is associated to
*/
struct FFXIVChatToChannel : FFXIVIpcBasePacket< Chat >
{
uint64_t channelID;
uint64_t speakerCharacterID;
uint32_t speakerEntityID;
uint8_t type;
char speakerName[32];
char message[1024];
};
struct FFXIVJoinChannelResult : FFXIVIpcBasePacket< JoinChannelResult >
{
uint64_t channelID;
uint64_t characterID;
uint8_t result;
};
struct FFXIVRecvBusyStatus : FFXIVIpcBasePacket< RecvBusyStatus >
{
char toName[32]; //uint8_t
};
struct FFXIVRecvFinderStatus : FFXIVIpcBasePacket< RecvFinderStatus >
{
char toName[32]; //uint8_t
};
/**
* Structural representation of the packet sent by the server as response
* to a failed tell because of unavailable target player
*/
struct FFXIVIpcTellNotFound : FFXIVIpcBasePacket< TellNotFound >
{
char toName[32]; //uint8_t
};
} /* Sapphire::Common::Network::Packets::Server */