DarkflameServer/dDatabase/CDClientDatabase/CDClientTables/CDDeletionRestrictionsTable.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
489 B
C
Raw Normal View History

2024-06-05 07:39:36 +00:00
#pragma once
#include "CDTable.h"
enum class eDeletionRestrictionsCheckType : uint32_t;
struct CDDeletionRestriction {
2024-06-05 07:39:36 +00:00
uint32_t id;
bool restricted;
std::vector<uint32_t> ids;
eDeletionRestrictionsCheckType checkType;
};
class CDDeletionRestrictionsTable : public CDTable<CDDeletionRestrictionsTable, std::map<uint32_t, CDDeletionRestriction>> {
2024-06-05 07:39:36 +00:00
public:
void LoadValuesFromDatabase();
const CDDeletionRestriction& GetByID(uint32_t id);
static CDDeletionRestriction Default;
2024-06-05 07:39:36 +00:00
};