mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 21:47:24 +00:00
3cfbc9d3df
May not do the recursive restriction cause they aren't used in the live game
21 lines
489 B
C++
21 lines
489 B
C++
#pragma once
|
|
|
|
#include "CDTable.h"
|
|
|
|
enum class eDeletionRestrictionsCheckType : uint32_t;
|
|
|
|
struct CDDeletionRestriction {
|
|
uint32_t id;
|
|
bool restricted;
|
|
std::vector<uint32_t> ids;
|
|
eDeletionRestrictionsCheckType checkType;
|
|
};
|
|
|
|
class CDDeletionRestrictionsTable : public CDTable<CDDeletionRestrictionsTable, std::map<uint32_t, CDDeletionRestriction>> {
|
|
public:
|
|
void LoadValuesFromDatabase();
|
|
const CDDeletionRestriction& GetByID(uint32_t id);
|
|
|
|
static CDDeletionRestriction Default;
|
|
};
|