mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-09 17:08:06 +00:00

* feat: convert character ids to 64 bits remove all usages of the PERSISTENT bit with regards to storing of playerIDs on the server. the bit does not exist and was a phantom in the first place. Tested that a full playthrough of ag, ns and gf was still doable. slash commands work, ugc works, friends works, ignore list works, properties work and have names, teaming works. migrating an old mysql database works . need to test an old sqlite database * fix sqlite migration * remove nd specific column migration
35 lines
621 B
C++
35 lines
621 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{};
|
|
struct {
|
|
LWOOBJID itemID{};
|
|
int16_t itemCount{};
|
|
LOT itemLOT{};
|
|
LWOOBJID itemSubkey{};
|
|
};
|
|
|
|
void Serialize(RakNet::BitStream& bitStream) const;
|
|
bool Deserialize(RakNet::BitStream& bitStream);
|
|
};
|
|
|
|
#endif // __MAILINFO_H__
|