mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-09 17:08:06 +00:00
it compiles again
This commit is contained in:
@@ -46,10 +46,15 @@ namespace ChatPackets {
|
||||
bitStream.Write(playerObjectID); // senderID
|
||||
bitStream.Write<uint16_t>(0); // sourceID
|
||||
bitStream.Write(responseCode);
|
||||
bitStream.Write(message)
|
||||
bitStream.Write(message);
|
||||
|
||||
}
|
||||
|
||||
bool ChatMessage::Deserialize(RakNet::BitStream& inStream) {
|
||||
//TODO: Implement this
|
||||
return false;
|
||||
}
|
||||
|
||||
void SendSystemMessage(const SystemAddress& sysAddr, const std::u16string& message, const bool broadcast) {
|
||||
CBITSTREAM;
|
||||
BitStreamUtils::WriteHeader(bitStream, eConnectionType::CHAT, MessageType::Chat::GENERAL_CHAT_MESSAGE);
|
||||
|
@@ -11,6 +11,8 @@ struct SystemAddress;
|
||||
#include <string>
|
||||
#include "dCommonVars.h"
|
||||
#include "BitStreamUtils.h"
|
||||
#include "MessageType/Chat.h"
|
||||
#include "eChatMessageResponseCode.h"
|
||||
|
||||
enum class eCannedText : uint8_t {
|
||||
CHAT_DISABLED = 0,
|
||||
@@ -18,6 +20,8 @@ enum class eCannedText : uint8_t {
|
||||
};
|
||||
|
||||
namespace ChatPackets {
|
||||
void SendSystemMessage(const SystemAddress& sysAddr, const std::u16string& message, const bool broadcast = false);
|
||||
|
||||
struct ShowAllRequest : public LUBitStream {
|
||||
LWOOBJID requestor = LWOOBJID_EMPTY;
|
||||
bool displayZoneData = true;
|
||||
@@ -53,6 +57,8 @@ namespace ChatPackets {
|
||||
bool senderMythran;
|
||||
eChatMessageResponseCode responseCode = eChatMessageResponseCode::SENT;
|
||||
LUWString message;
|
||||
|
||||
ChatMessage() : LUBitStream(eConnectionType::CHAT, MessageType::Chat::GENERAL_CHAT_MESSAGE) {};
|
||||
virtual void Serialize(RakNet::BitStream& bitStream) const override;
|
||||
virtual bool Deserialize(RakNet::BitStream& inStream) override;
|
||||
};
|
||||
|
Reference in New Issue
Block a user