mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-04-26 16:46:31 +00:00
34 lines
595 B
C++
34 lines
595 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{};
|
|
uint32_t senderId{};
|
|
uint32_t receiverId{};
|
|
uint64_t timeSent{};
|
|
bool wasRead{};
|
|
struct {
|
|
LWOOBJID itemID{};
|
|
int32_t itemCount{};
|
|
LOT itemLOT{};
|
|
LWOOBJID itemSubkey{};
|
|
};
|
|
|
|
void Serialize(RakNet::BitStream& bitStream) const;
|
|
bool Deserialize(RakNet::BitStream& bitStream);
|
|
};
|
|
|
|
#endif // __MAILINFO_H__
|