DarkflameServer/dDatabase/Tables/CDLevelProgressionLookupTable.h

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

50 lines
1.1 KiB
C
Raw Normal View History

#pragma once
// Custom Classes
#include "CDTable.h"
/*!
\file CDLevelProgressionLookupTable.hpp
\brief Contains data for the LevelProgressionLookup table
*/
//! LevelProgressionLookup Entry Struct
struct CDLevelProgressionLookup {
unsigned int id; //!< The Level ID
unsigned int requiredUScore; //!< The required LEGO Score
std::string BehaviorEffect; //!< The behavior effect attached to this
};
//! LevelProgressionLookup table
class CDLevelProgressionLookupTable : public CDTable {
private:
std::vector<CDLevelProgressionLookup> entries;
2022-07-28 13:39:57 +00:00
public:
2022-07-28 13:39:57 +00:00
//! Constructor
CDLevelProgressionLookupTable(void);
2022-07-28 13:39:57 +00:00
//! Destructor
~CDLevelProgressionLookupTable(void);
2022-07-28 13:39:57 +00:00
//! Returns the table's name
/*!
\return The table name
*/
std::string GetName(void) const override;
2022-07-28 13:39:57 +00:00
//! Queries the table with a custom "where" clause
/*!
\param predicate The predicate
*/
std::vector<CDLevelProgressionLookup> Query(std::function<bool(CDLevelProgressionLookup)> predicate);
2022-07-28 13:39:57 +00:00
//! Gets all the entries in the table
/*!
\return The entries
*/
std::vector<CDLevelProgressionLookup> GetEntries(void) const;
2022-07-28 13:39:57 +00:00
};