DarkflameServer/dDatabase/CDClientDatabase/CDClientTables/CDPackageComponentTable.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
442 B
C
Raw Normal View History

#pragma once
// Custom Classes
#include "CDTable.h"
struct CDPackageComponent {
uint32_t id;
uint32_t LootMatrixIndex;
uint32_t packageType;
};
class CDPackageComponentTable : public CDTable<CDPackageComponentTable, std::vector<CDPackageComponent>> {
public:
void LoadValuesFromDatabase();
// Queries the table with a custom "where" clause
std::vector<CDPackageComponent> Query(std::function<bool(CDPackageComponent)> predicate);
};