mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 21:47:24 +00:00
23 lines
522 B
C++
23 lines
522 B
C++
#pragma once
|
|
|
|
// Custom Classes
|
|
#include "CDTable.h"
|
|
|
|
struct CDPackageComponent {
|
|
uint32_t id;
|
|
uint32_t LootMatrixIndex;
|
|
uint32_t packageType;
|
|
};
|
|
|
|
class CDPackageComponentTable : public CDTable<CDPackageComponentTable> {
|
|
private:
|
|
std::vector<CDPackageComponent> entries;
|
|
|
|
public:
|
|
void LoadValuesFromDatabase();
|
|
// Queries the table with a custom "where" clause
|
|
std::vector<CDPackageComponent> Query(std::function<bool(CDPackageComponent)> predicate);
|
|
|
|
const std::vector<CDPackageComponent>& GetEntries() const;
|
|
};
|