2021-12-05 18:54:36 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// Custom Classes
|
|
|
|
#include "CDTable.h"
|
2022-07-08 23:07:52 -07:00
|
|
|
#include <unordered_map>
|
|
|
|
#include <unordered_set>
|
2021-12-05 18:54:36 +01:00
|
|
|
|
2023-03-17 07:36:21 -07:00
|
|
|
class CDBehaviorParameterTable : public CDTable<CDBehaviorParameterTable> {
|
2021-12-05 18:54:36 +01:00
|
|
|
private:
|
2023-08-03 19:31:02 -07:00
|
|
|
typedef uint64_t BehaviorParameterHash;
|
|
|
|
typedef float BehaviorParameterValue;
|
|
|
|
std::unordered_map<BehaviorParameterHash, BehaviorParameterValue> m_Entries;
|
2022-12-29 01:43:52 -08:00
|
|
|
std::unordered_map<std::string, uint32_t> m_ParametersList;
|
2021-12-05 18:54:36 +01:00
|
|
|
public:
|
2023-08-10 21:27:40 -07:00
|
|
|
void LoadValuesFromDatabase();
|
2023-08-03 19:31:02 -07:00
|
|
|
|
2022-12-29 01:43:52 -08:00
|
|
|
float GetValue(const uint32_t behaviorID, const std::string& name, const float defaultValue = 0);
|
2022-07-08 23:07:52 -07:00
|
|
|
|
|
|
|
std::map<std::string, float> GetParametersByBehaviorID(uint32_t behaviorID);
|
2021-12-05 18:54:36 +01:00
|
|
|
};
|