DarkflameServer/dDatabase/CDClientDatabase/CDClientTables/CDDeletionRestrictionsTable.h
Aaron Kimbre 3cfbc9d3df Document what needs to be done
May not do the recursive restriction cause they aren't used in the live game
2024-06-06 21:11:43 -05:00

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;
};