#pragma once // Custom Classes #include "CDTable.h" struct CDLootTable { uint32_t itemid; //!< The LOT of the item uint32_t LootTableIndex; //!< The Loot Table Index bool MissionDrop; //!< Whether or not this loot table is a mission drop uint32_t sortPriority; //!< The sorting priority }; typedef uint32_t LootTableIndex; typedef std::vector LootTableEntries; class CDLootTableTable : public CDTable { private: CDLootTable ReadRow(CppSQLite3Query& tableData) const; std::unordered_map entries; public: void LoadValuesFromDatabase(); // Queries the table with a custom "where" clause const LootTableEntries& GetTable(uint32_t tableId); };