#pragma once #include "CDTable.h" #include enum class eDeletionRestrictionsCheckType : uint32_t; struct CDDeletionRestriction { uint32_t id{}; bool restricted{}; // LOTs, zone ids or other rows of this table, depending on checkType; ids that aren't numbers are left out std::vector ids; eDeletionRestrictionsCheckType checkType{}; }; class CDDeletionRestrictionsTable : public CDTable> { public: void LoadValuesFromDatabase(); std::optional GetByID(uint32_t id) const; };