mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-10 10:18:21 +00:00
b6af92ef81
* Split out BehaviorMessage class changes from PR #1452 * remove <string_view> inclusion in ActionContext.h * add the arguments nullptr check back in * remove redundant std::string constructor calls * Update AddStripMessage.cpp - change push_back to emplace_back
31 lines
787 B
C++
31 lines
787 B
C++
#ifndef __ADDACTIONMESSAGE__H__
|
|
#define __ADDACTIONMESSAGE__H__
|
|
|
|
#include "Action.h"
|
|
#include "ActionContext.h"
|
|
#include "BehaviorMessageBase.h"
|
|
|
|
class AMFArrayValue;
|
|
|
|
/**
|
|
* @brief Send if a player takes an Action A from the toolbox and adds it to an already existing strip
|
|
*
|
|
*/
|
|
class AddActionMessage : public BehaviorMessageBase {
|
|
public:
|
|
AddActionMessage(const AMFArrayValue* arguments);
|
|
|
|
[[nodiscard]] int32_t GetActionIndex() const noexcept { return m_ActionIndex; };
|
|
|
|
[[nodiscard]] const Action& GetAction() const noexcept { return m_Action; };
|
|
|
|
[[nodiscard]] const ActionContext& GetActionContext() const noexcept { return m_ActionContext; };
|
|
|
|
private:
|
|
int32_t m_ActionIndex{ -1 };
|
|
ActionContext m_ActionContext;
|
|
Action m_Action;
|
|
};
|
|
|
|
#endif //!__ADDACTIONMESSAGE__H__
|