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

64 lines
1.3 KiB
C
Raw Normal View History

#pragma once
2018-03-06 22:22:19 +01:00
#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 >
2019-08-07 21:42:38 -07:00
{
uint64_t channelID;
uint64_t characterID;
uint8_t result;
2019-08-07 21:42:38 -07:00
};
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 */