DarkflameServer/dDatabase/Tables/CDLevelProgressionLookupTable.h
David Markowitz 79094b6664 wow
2023-07-16 00:27:30 -07:00

24 lines
683 B
C++

#pragma once
// Custom Classes
#include "CDTable.h"
struct CDLevelProgressionLookup {
unsigned int id; //!< The Level ID
unsigned int requiredUScore; //!< The required LEGO Score
std::string BehaviorEffect; //!< The behavior effect attached to this
};
namespace CDLevelProgressionLookupTable {
private:
std::vector<CDLevelProgressionLookup> entries;
public:
void LoadTableIntoMemory();
// Queries the table with a custom "where" clause
std::vector<CDLevelProgressionLookup> Query(std::function<bool(CDLevelProgressionLookup)> predicate);
// Gets all the entries in the table
std::vector<CDLevelProgressionLookup> GetEntries(void) const;
};