mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-12-20 03:30:18 +00:00
Document what needs to be done
May not do the recursive restriction cause they aren't used in the live game
This commit is contained in:
@@ -4,15 +4,17 @@
|
||||
|
||||
enum class eDeletionRestrictionsCheckType : uint32_t;
|
||||
|
||||
struct CDDeletionRestrictions {
|
||||
struct CDDeletionRestriction {
|
||||
uint32_t id;
|
||||
bool restricted;
|
||||
std::vector<uint32_t> ids;
|
||||
eDeletionRestrictionsCheckType checkType;
|
||||
};
|
||||
|
||||
class CDDeletionRestrictionsTable : public CDTable<CDDeletionRestrictionsTable, std::vector<CDDeletionRestrictions>> {
|
||||
class CDDeletionRestrictionsTable : public CDTable<CDDeletionRestrictionsTable, std::map<uint32_t, CDDeletionRestriction>> {
|
||||
public:
|
||||
void LoadValuesFromDatabase();
|
||||
std::vector<CDDeletionRestrictions> Query(std::function<bool(CDDeletionRestrictions)> predicate);
|
||||
const CDDeletionRestriction& GetByID(uint32_t id);
|
||||
|
||||
static CDDeletionRestriction Default;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user