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`.
41 lines
1.1 KiB
C++
41 lines
1.1 KiB
C++
#pragma once
|
|
|
|
// Custom Classes
|
|
#include "CDTable.h"
|
|
#include <unordered_map>
|
|
#include <unordered_set>
|
|
|
|
/*!
|
|
\file CDBehaviorTemplateTable.hpp
|
|
\brief Contains data for the BehaviorTemplate table
|
|
*/
|
|
|
|
//! BehaviorTemplate Entry Struct
|
|
struct CDBehaviorTemplate {
|
|
unsigned int behaviorID; //!< The Behavior ID
|
|
unsigned int templateID; //!< The Template ID (LOT)
|
|
unsigned int effectID; //!< The Effect ID attached
|
|
size_t effectHandle; //!< The effect handle
|
|
};
|
|
|
|
|
|
//! BehaviorTemplate table
|
|
class CDBehaviorTemplateTable : public CDTable {
|
|
public:
|
|
void LoadHost() override;
|
|
|
|
//! Constructor
|
|
CDBehaviorTemplateTable(void);
|
|
|
|
//! Destructor
|
|
~CDBehaviorTemplateTable(void);
|
|
|
|
//! Returns the table's name
|
|
/*!
|
|
\return The table name
|
|
*/
|
|
std::string GetName(void) const override;
|
|
|
|
const CDBehaviorTemplate& GetByBehaviorID(const uint32_t behaviorID) const;
|
|
};
|