2023-02-14 02:55:44 +00:00
|
|
|
#ifndef __ADDACTIONMESSAGE__H__
|
|
|
|
#define __ADDACTIONMESSAGE__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 Send if a player takes an Action A from the toolbox and adds it to an already existing strip
|
|
|
|
*
|
|
|
|
*/
|
2023-02-14 02:55:44 +00:00
|
|
|
class AddActionMessage : public BehaviorMessageBase {
|
|
|
|
public:
|
|
|
|
AddActionMessage(AMFArrayValue* arguments);
|
|
|
|
const uint32_t GetActionIndex() { return actionIndex; };
|
2023-02-16 17:30:33 +00:00
|
|
|
Action GetAction() { return action; };
|
|
|
|
ActionContext GetActionContext() { return actionContext; };
|
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 //!__ADDACTIONMESSAGE__H__
|