2021-12-05 17:54:36 +00:00
|
|
|
/*
|
|
|
|
* Darkflame Universe
|
|
|
|
* Copyright 2018
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CHATPACKETS_H
|
|
|
|
#define CHATPACKETS_H
|
|
|
|
|
|
|
|
struct SystemAddress;
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include "dCommonVars.h"
|
|
|
|
|
2024-04-18 02:47:28 +00:00
|
|
|
struct ShowAllRequest{
|
|
|
|
LWOOBJID requestor = LWOOBJID_EMPTY;
|
|
|
|
bool displayZoneData = true;
|
|
|
|
bool displayIndividualPlayers = true;
|
|
|
|
void Serialize(RakNet::BitStream& bitStream);
|
|
|
|
void Deserialize(RakNet::BitStream& inStream);
|
|
|
|
};
|
|
|
|
|
|
|
|
struct FindPlayerRequest{
|
|
|
|
LWOOBJID requestor = LWOOBJID_EMPTY;
|
|
|
|
LUWString playerName;
|
|
|
|
void Serialize(RakNet::BitStream& bitStream);
|
|
|
|
void Deserialize(RakNet::BitStream& inStream);
|
|
|
|
};
|
|
|
|
|
2021-12-05 17:54:36 +00:00
|
|
|
namespace ChatPackets {
|
|
|
|
void SendChatMessage(const SystemAddress& sysAddr, char chatChannel, const std::string& senderName, LWOOBJID playerObjectID, bool senderMythran, const std::u16string& message);
|
|
|
|
void SendSystemMessage(const SystemAddress& sysAddr, const std::u16string& message, bool broadcast = false);
|
|
|
|
void SendMessageFail(const SystemAddress& sysAddr);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CHATPACKETS_H
|