mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-04-26 16:46:31 +00:00
22 lines
430 B
C++
22 lines
430 B
C++
#ifndef CDPLAYERFLAGSTABLE_H
|
|
#define CDPLAYERFLAGSTABLE_H
|
|
|
|
#include <map>
|
|
#include <optional>
|
|
|
|
namespace CDPlayerFlagsTable {
|
|
struct Entry {
|
|
bool sessionOnly{};
|
|
bool onlySetByServer{};
|
|
bool sessionZoneOnly{};
|
|
};
|
|
|
|
using FlagId = uint32_t;
|
|
using Table = std::map<FlagId, std::optional<Entry>>;
|
|
|
|
void LoadValuesFromDatabase();
|
|
const std::optional<Entry> GetEntry(const FlagId flagId);
|
|
};
|
|
|
|
#endif //!CDPLAYERFLAGSTABLE_H
|