Add CDBaseCombatAIComponentTable with LoadValuesFromDefaults support

Co-authored-by: aronwk-aaron <26027722+aronwk-aaron@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-08-31 21:58:26 +00:00
parent 6bb8040221
commit dac47cc240
5 changed files with 107 additions and 22 deletions

View File

@@ -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