mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-26 07:27:18 +00:00
20 lines
611 B
C++
20 lines
611 B
C++
#pragma once
|
|
|
|
// Custom Classes
|
|
#include "CDTable.h"
|
|
#include <unordered_map>
|
|
#include <unordered_set>
|
|
|
|
struct CDBehaviorParameter {
|
|
unsigned int behaviorID; //!< The Behavior ID
|
|
std::unordered_map<std::string, uint32_t>::iterator parameterID; //!< The Parameter ID
|
|
float value; //!< The value of the behavior template
|
|
};
|
|
|
|
namespace CDBehaviorParameterTable {
|
|
void LoadTableIntoMemory();
|
|
float GetValue(const uint32_t behaviorID, const std::string& name, const float defaultValue = 0.0f);
|
|
|
|
std::map<std::string, float> GetParametersByBehaviorID(uint32_t behaviorID);
|
|
};
|