DarkflameServer/dDatabase/Tables/CDLevelProgressionLookupTable.h

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

24 lines
683 B
C
Raw Normal View History

#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
};
2023-07-16 07:27:30 +00:00
namespace CDLevelProgressionLookupTable {
private:
std::vector<CDLevelProgressionLookup> entries;
2022-07-28 13:39:57 +00:00
public:
2023-07-16 07:27:30 +00:00
void LoadTableIntoMemory();
// Queries the table with a custom "where" clause
std::vector<CDLevelProgressionLookup> Query(std::function<bool(CDLevelProgressionLookup)> predicate);
2022-07-28 13:39:57 +00:00
// Gets all the entries in the table
std::vector<CDLevelProgressionLookup> GetEntries(void) const;
};