mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 02:43:44 +00:00
The NexusDashboard-parity dashboard (dDashboardServer) and everything built on it on the experimental branch: accounts, characters, properties and moderation tools, permissions shared with in-game slash commands, economy reports, World 3D and property 3D views with client scenery, scheduled events (features, vanity changes, live events, announcements, restarts), vanity files and events, the CDClient browser, the message inspector with saved captures, chat filter tools, community challenges, live ops, the AI moderator helper, and the server-side changes they need. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
37 lines
750 B
C++
37 lines
750 B
C++
#ifndef __MAILINFO_H__
|
|
#define __MAILINFO_H__
|
|
|
|
#include <string>
|
|
#include <cstdint>
|
|
#include "dCommonVars.h"
|
|
|
|
namespace RakNet {
|
|
class BitStream;
|
|
}
|
|
|
|
struct MailInfo {
|
|
std::string senderUsername;
|
|
std::string recipient;
|
|
std::string subject;
|
|
std::string body;
|
|
uint64_t id{};
|
|
LWOOBJID senderId{};
|
|
LWOOBJID receiverId{};
|
|
uint64_t timeSent{};
|
|
bool wasRead{};
|
|
uint16_t languageCode{};
|
|
// Attachment item config (LDF "key=type:value" lines), kept so items keep their data through the mail
|
|
std::string itemConfig;
|
|
struct {
|
|
LWOOBJID itemID{};
|
|
int16_t itemCount{};
|
|
LOT itemLOT{};
|
|
LWOOBJID itemSubkey{};
|
|
};
|
|
|
|
void Serialize(RakNet::BitStream& bitStream) const;
|
|
bool Deserialize(RakNet::BitStream& bitStream);
|
|
};
|
|
|
|
#endif // __MAILINFO_H__
|