mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-11-06 15:42:06 +00:00
Add CDBaseCombatAIComponentTable with LoadValuesFromDefaults support
Co-authored-by: aronwk-aaron <26027722+aronwk-aaron@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#ifndef CDBASECOMBATAICOMPONENTTABLE_H
|
||||
#define CDBASECOMBATAICOMPONENTTABLE_H
|
||||
|
||||
#include "CDTable.h"
|
||||
|
||||
struct CDBaseCombatAIComponent {
|
||||
int32_t id;
|
||||
float aggroRadius;
|
||||
float tetherSpeed;
|
||||
float pursuitSpeed;
|
||||
float softTetherRadius;
|
||||
float hardTetherRadius;
|
||||
};
|
||||
|
||||
class CDBaseCombatAIComponentTable : public CDTable<CDBaseCombatAIComponentTable, std::vector<CDBaseCombatAIComponent>> {
|
||||
public:
|
||||
void LoadValuesFromDatabase();
|
||||
void LoadValuesFromDefaults();
|
||||
|
||||
std::vector<CDBaseCombatAIComponent> Query(std::function<bool(CDBaseCombatAIComponent)> predicate);
|
||||
const std::vector<CDBaseCombatAIComponent>& GetEntries() const;
|
||||
};
|
||||
|
||||
#endif //CDBASECOMBATAICOMPONENTTABLE_H
|
||||
Reference in New Issue
Block a user