#pragma once // Custom Classes #include "CDTable.h" struct CDLootTable { unsigned int itemid; //!< The LOT of the item unsigned int LootTableIndex; //!< The Loot Table Index unsigned int id; //!< The ID bool MissionDrop; //!< Whether or not this loot table is a mission drop unsigned int sortPriority; //!< The sorting priority }; class CDLootTableTable : public CDTable { private: std::vector entries; public: void LoadValuesFromDatabase(); // Queries the table with a custom "where" clause std::vector Query(std::function predicate); const std::vector& GetEntries() const; };