2023-02-14 02:55:44 +00:00
|
|
|
#ifndef __UPDATEACTIONMESSAGE__H__
|
|
|
|
#define __UPDATEACTIONMESSAGE__H__
|
|
|
|
|
2023-02-16 17:30:33 +00:00
|
|
|
#include "Action.h"
|
|
|
|
#include "ActionContext.h"
|
2023-02-14 02:55:44 +00:00
|
|
|
#include "BehaviorMessageBase.h"
|
|
|
|
|
|
|
|
class AMFArrayValue;
|
|
|
|
|
2023-02-16 17:30:33 +00:00
|
|
|
/**
|
|
|
|
* @brief Sent when a player updates the value in an Action
|
|
|
|
*
|
|
|
|
*/
|
2023-02-14 02:55:44 +00:00
|
|
|
class UpdateActionMessage : public BehaviorMessageBase {
|
|
|
|
public:
|
2024-02-27 07:29:51 +00:00
|
|
|
UpdateActionMessage(const AMFArrayValue& arguments);
|
2024-02-18 06:38:26 +00:00
|
|
|
|
|
|
|
[[nodiscard]] int32_t GetActionIndex() const noexcept { return m_ActionIndex; }
|
|
|
|
|
|
|
|
[[nodiscard]] const ActionContext& GetActionContext() const noexcept { return m_ActionContext; }
|
|
|
|
|
|
|
|
[[nodiscard]] const Action& GetAction() const noexcept { return m_Action; }
|
|
|
|
|
2023-02-14 02:55:44 +00:00
|
|
|
private:
|
2024-02-18 06:38:26 +00:00
|
|
|
int32_t m_ActionIndex;
|
|
|
|
ActionContext m_ActionContext;
|
|
|
|
Action m_Action;
|
2023-02-16 17:30:33 +00:00
|
|
|
};
|
2023-02-14 02:55:44 +00:00
|
|
|
|
|
|
|
#endif //!__UPDATEACTIONMESSAGE__H__
|