DarkflameServer/dGame/dPropertyBehaviors/ControlBehaviorMessages/AddActionMessage.h
David Markowitz 9655f0ee45 make include guards standards conforming
fix compile issues
2024-10-30 00:34:25 -07:00

31 lines
772 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