format codebase

This commit is contained in:
aronwk-aaron
2022-07-28 08:39:57 -05:00
parent 4f7aa11067
commit 19e77a38d8
881 changed files with 34700 additions and 38689 deletions

View File

@@ -2,40 +2,40 @@
#include "CDTable.h"
struct CDPropertyEntranceComponent {
uint32_t id;
uint32_t mapID;
std::string propertyName;
bool isOnProperty;
std::string groupType;
uint32_t id;
uint32_t mapID;
std::string propertyName;
bool isOnProperty;
std::string groupType;
};
class CDPropertyEntranceComponentTable : public CDTable {
public:
//! Constructor
CDPropertyEntranceComponentTable();
//! Constructor
CDPropertyEntranceComponentTable();
//! Destructor
~CDPropertyEntranceComponentTable();
//! Destructor
~CDPropertyEntranceComponentTable();
//! Returns the table's name
/*!
\return The table name
*/
[[nodiscard]] std::string GetName() const override;
//! 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);
//! 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; }
//! 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 {};
std::vector<CDPropertyEntranceComponent> entries{};
CDPropertyEntranceComponent defaultEntry{};
};