DarkflameServer/dDatabase/CDClientDatabase/CDClientTables/CDInventoryComponentTable.h

19 lines
648 B
C
Raw Normal View History

#pragma once
// Custom Classes
#include "CDTable.h"
struct CDInventoryComponent {
uint32_t id; //!< The component ID for this object
uint32_t itemid; //!< The LOT of the object
uint32_t count; //!< The count of the items the object has
2022-07-28 13:39:57 +00:00
bool equip; //!< Whether or not to equip the item
};
class CDInventoryComponentTable : public CDTable<CDInventoryComponentTable, std::vector<CDInventoryComponent>> {
public:
void LoadValuesFromDatabase();
// Queries the table with a custom "where" clause
2022-07-28 13:39:57 +00:00
std::vector<CDInventoryComponent> Query(std::function<bool(CDInventoryComponent)> predicate);
};