2021-12-05 17:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// Custom Classes
|
|
|
|
#include "CDTable.h"
|
2022-07-09 06:07:52 +00:00
|
|
|
#include <unordered_map>
|
2022-07-12 03:43:09 +00:00
|
|
|
#include <unordered_set>
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
\file CDBehaviorTemplateTable.hpp
|
|
|
|
\brief Contains data for the BehaviorTemplate table
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! BehaviorTemplate Entry Struct
|
|
|
|
struct CDBehaviorTemplate {
|
2022-07-12 03:43:09 +00:00
|
|
|
unsigned int behaviorID; //!< The Behavior ID
|
|
|
|
unsigned int templateID; //!< The Template ID (LOT)
|
|
|
|
unsigned int effectID; //!< The Effect ID attached
|
2022-08-11 14:36:03 +00:00
|
|
|
size_t effectHandle; //!< The effect handle
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
//! BehaviorTemplate table
|
|
|
|
class CDBehaviorTemplateTable : public CDTable {
|
|
|
|
public:
|
2022-08-11 14:36:03 +00:00
|
|
|
void LoadHost() override;
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
//! Constructor
|
|
|
|
CDBehaviorTemplateTable(void);
|
|
|
|
|
|
|
|
//! Destructor
|
|
|
|
~CDBehaviorTemplateTable(void);
|
|
|
|
|
|
|
|
//! Returns the table's name
|
|
|
|
/*!
|
|
|
|
\return The table name
|
|
|
|
*/
|
|
|
|
std::string GetName(void) const override;
|
|
|
|
|
2022-08-11 14:36:03 +00:00
|
|
|
const CDBehaviorTemplate& GetByBehaviorID(const uint32_t behaviorID) const;
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|