2021-12-05 17:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// Custom Classes
|
|
|
|
#include "CDTable.h"
|
2022-07-09 06:07:52 +00:00
|
|
|
#include <unordered_map>
|
|
|
|
#include <unordered_set>
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
\file CDBehaviorParameterTable.hpp
|
|
|
|
\brief Contains data for the BehaviorParameter table
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! BehaviorParameter Entry Struct
|
|
|
|
struct CDBehaviorParameter {
|
2022-07-09 20:59:36 +00:00
|
|
|
int32_t behaviorID; //!< The Behavior ID
|
|
|
|
int32_t parameterID; //!< The Parameter ID
|
2021-12-05 17:54:36 +00:00
|
|
|
float value; //!< The value of the behavior template
|
|
|
|
};
|
|
|
|
|
|
|
|
//! BehaviorParameter table
|
|
|
|
class CDBehaviorParameterTable : public CDTable {
|
|
|
|
public:
|
2022-08-11 14:36:03 +00:00
|
|
|
void LoadHost() override;
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
//! Constructor
|
|
|
|
CDBehaviorParameterTable(void);
|
|
|
|
|
|
|
|
//! Destructor
|
|
|
|
~CDBehaviorParameterTable(void);
|
|
|
|
|
|
|
|
//! Returns the table's name
|
|
|
|
/*!
|
|
|
|
\return The table name
|
|
|
|
*/
|
|
|
|
std::string GetName(void) const override;
|
|
|
|
|
2022-07-09 20:59:36 +00:00
|
|
|
float GetEntry(const uint32_t behaviorID, const std::string& name, const float defaultValue = 0);
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|