DarkflameServer/dDatabase/Tables/CDBehaviorParameterTable.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
611 B
C
Raw Normal View History

#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
};
2023-07-16 07:27:30 +00:00
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);
};