mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 21:47:24 +00:00
30 lines
619 B
C++
30 lines
619 B
C++
#pragma once
|
|
|
|
// Custom Classes
|
|
#include "CDTable.h"
|
|
|
|
/*!
|
|
\file CDBrickIDTableTable.hpp
|
|
\brief Contains data for the BrickIDTable table
|
|
*/
|
|
|
|
//! BrickIDTable Entry Struct
|
|
struct CDBrickIDTable {
|
|
uint32_t NDObjectID;
|
|
uint32_t LEGOBrickID;
|
|
};
|
|
|
|
|
|
//! BrickIDTable table
|
|
class CDBrickIDTableTable : public CDTable<CDBrickIDTableTable> {
|
|
private:
|
|
std::vector<CDBrickIDTable> entries;
|
|
|
|
public:
|
|
void LoadValuesFromDatabase();
|
|
// Queries the table with a custom "where" clause
|
|
std::vector<CDBrickIDTable> Query(std::function<bool(CDBrickIDTable)> predicate);
|
|
|
|
const std::vector<CDBrickIDTable>& GetEntries() const;
|
|
};
|