DarkflameServer/dDatabase/CDClientDatabase/CDClientTables/CDLevelProgressionLookupTable.h

24 lines
696 B
C
Raw Normal View History

#pragma once
// Custom Classes
#include "CDTable.h"
struct CDLevelProgressionLookup {
2022-07-28 13:39:57 +00:00
unsigned int id; //!< The Level ID
unsigned int requiredUScore; //!< The required LEGO Score
std::string BehaviorEffect; //!< The behavior effect attached to this
};
class CDLevelProgressionLookupTable : public CDTable<CDLevelProgressionLookupTable> {
private:
2022-07-28 13:39:57 +00:00
std::vector<CDLevelProgressionLookup> entries;
public:
void LoadValuesFromDatabase();
// Queries the table with a custom "where" clause
2022-07-28 13:39:57 +00:00
std::vector<CDLevelProgressionLookup> Query(std::function<bool(CDLevelProgressionLookup)> predicate);
const std::vector<CDLevelProgressionLookup>& GetEntries() const;
};