mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-15 12:48:20 +00:00
9a07020a51
* Memory Savings Behavior Parameter table * Update CDBehaviorParameterTable.h
21 lines
627 B
C++
21 lines
627 B
C++
#pragma once
|
|
|
|
// Custom Classes
|
|
#include "CDTable.h"
|
|
#include <unordered_map>
|
|
#include <unordered_set>
|
|
|
|
class CDBehaviorParameterTable : public CDTable<CDBehaviorParameterTable> {
|
|
private:
|
|
typedef uint64_t BehaviorParameterHash;
|
|
typedef float BehaviorParameterValue;
|
|
std::unordered_map<BehaviorParameterHash, BehaviorParameterValue> m_Entries;
|
|
std::unordered_map<std::string, uint32_t> m_ParametersList;
|
|
public:
|
|
CDBehaviorParameterTable();
|
|
|
|
float GetValue(const uint32_t behaviorID, const std::string& name, const float defaultValue = 0);
|
|
|
|
std::map<std::string, float> GetParametersByBehaviorID(uint32_t behaviorID);
|
|
};
|