mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-23 22:17:31 +00:00
56f371216b
There is now an option to utilize shared memory for some CDClient tables by adding `CD_PROVIDER_MEMORY=1` to the CMakeVariables.txt file. Allows masterconfig.ini to specify another run command for the world server, to allow for easier debugging through `valgrind`.
39 lines
927 B
C++
39 lines
927 B
C++
#pragma once
|
|
|
|
// Custom Classes
|
|
#include "CDTable.h"
|
|
#include <unordered_map>
|
|
#include <unordered_set>
|
|
|
|
/*!
|
|
\file CDBehaviorParameterTable.hpp
|
|
\brief Contains data for the BehaviorParameter table
|
|
*/
|
|
|
|
//! BehaviorParameter Entry Struct
|
|
struct CDBehaviorParameter {
|
|
int32_t behaviorID; //!< The Behavior ID
|
|
int32_t parameterID; //!< The Parameter ID
|
|
float value; //!< The value of the behavior template
|
|
};
|
|
|
|
//! BehaviorParameter table
|
|
class CDBehaviorParameterTable : public CDTable {
|
|
public:
|
|
void LoadHost() override;
|
|
|
|
//! Constructor
|
|
CDBehaviorParameterTable(void);
|
|
|
|
//! Destructor
|
|
~CDBehaviorParameterTable(void);
|
|
|
|
//! Returns the table's name
|
|
/*!
|
|
\return The table name
|
|
*/
|
|
std::string GetName(void) const override;
|
|
|
|
float GetEntry(const uint32_t behaviorID, const std::string& name, const float defaultValue = 0);
|
|
};
|