mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-09 20:24:16 +00:00
Public release of the DLU server code!
Have fun!
This commit is contained in:
41
dDatabase/Tables/CDPropertyEntranceComponentTable.h
Normal file
41
dDatabase/Tables/CDPropertyEntranceComponentTable.h
Normal file
@@ -0,0 +1,41 @@
|
||||
#pragma once
|
||||
#include "CDTable.h"
|
||||
|
||||
struct CDPropertyEntranceComponent {
|
||||
uint32_t id;
|
||||
uint32_t mapID;
|
||||
std::string propertyName;
|
||||
bool isOnProperty;
|
||||
std::string groupType;
|
||||
};
|
||||
|
||||
class CDPropertyEntranceComponentTable : public CDTable {
|
||||
public:
|
||||
//! Constructor
|
||||
CDPropertyEntranceComponentTable();
|
||||
|
||||
//! Destructor
|
||||
~CDPropertyEntranceComponentTable();
|
||||
|
||||
//! Returns the table's name
|
||||
/*!
|
||||
\return The table name
|
||||
*/
|
||||
[[nodiscard]] std::string GetName() const override;
|
||||
|
||||
|
||||
//! Queries the table with a custom "where" clause
|
||||
/*!
|
||||
\param predicate The predicate
|
||||
*/
|
||||
CDPropertyEntranceComponent GetByID(uint32_t id);
|
||||
|
||||
//! Gets all the entries in the table
|
||||
/*!
|
||||
\return The entries
|
||||
*/
|
||||
[[nodiscard]] std::vector<CDPropertyEntranceComponent> GetEntries() const { return entries; }
|
||||
private:
|
||||
std::vector<CDPropertyEntranceComponent> entries {};
|
||||
CDPropertyEntranceComponent defaultEntry {};
|
||||
};
|
Reference in New Issue
Block a user