2021-12-05 17:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// Custom Classes
|
|
|
|
#include "CDTable.h"
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\file CDBehaviorParameterTable.hpp
|
|
|
|
\brief Contains data for the BehaviorParameter table
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! BehaviorParameter Entry Struct
|
|
|
|
struct CDBehaviorParameter {
|
|
|
|
unsigned int behaviorID; //!< The Behavior ID
|
|
|
|
std::string parameterID; //!< The Parameter ID
|
|
|
|
float value; //!< The value of the behavior template
|
|
|
|
};
|
|
|
|
|
|
|
|
//! BehaviorParameter table
|
|
|
|
class CDBehaviorParameterTable : public CDTable {
|
|
|
|
private:
|
|
|
|
std::map<size_t, float> m_Entries;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
//! Constructor
|
|
|
|
CDBehaviorParameterTable(void);
|
|
|
|
|
|
|
|
//! Destructor
|
|
|
|
~CDBehaviorParameterTable(void);
|
|
|
|
|
|
|
|
//! Returns the table's name
|
|
|
|
/*!
|
|
|
|
\return The table name
|
|
|
|
*/
|
|
|
|
std::string GetName(void) const override;
|
|
|
|
|
2022-01-24 22:02:56 +00:00
|
|
|
float GetEntry(const uint32_t behaviorID, const std::string& name, const float defaultValue = 0);
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|