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