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:
|
|
|
|
UpdateActionMessage(AMFArrayValue* arguments);
|
|
|
|
const uint32_t GetActionIndex() { return actionIndex; };
|
2023-02-16 17:30:33 +00:00
|
|
|
ActionContext GetActionContext() { return actionContext; };
|
|
|
|
Action GetAction() { return action; };
|
2023-02-14 02:55:44 +00:00
|
|
|
private:
|
|
|
|
uint32_t actionIndex;
|
2023-02-16 17:30:33 +00:00
|
|
|
ActionContext actionContext;
|
|
|
|
Action action;
|
|
|
|
};
|
2023-02-14 02:55:44 +00:00
|
|
|
|
|
|
|
#endif //!__UPDATEACTIONMESSAGE__H__
|