2023-02-14 02:55:44 +00:00
|
|
|
#ifndef __ADDSTRIPMESSAGE__H__
|
|
|
|
#define __ADDSTRIPMESSAGE__H__
|
|
|
|
|
2023-02-16 17:30:33 +00:00
|
|
|
#include "ActionContext.h"
|
2023-02-14 02:55:44 +00:00
|
|
|
#include "BehaviorMessageBase.h"
|
2023-02-16 17:30:33 +00:00
|
|
|
#include "StripUiPosition.h"
|
2023-02-14 02:55:44 +00:00
|
|
|
|
2023-02-16 17:30:33 +00:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class Action;
|
2023-02-14 02:55:44 +00:00
|
|
|
class AMFArrayValue;
|
|
|
|
|
2023-02-16 17:30:33 +00:00
|
|
|
/**
|
|
|
|
* @brief Sent in 2 contexts:
|
|
|
|
* A player adds an Action A from their toolbox without attaching it to an existing Strip. In this case, only 1 action is sent.
|
|
|
|
* A player moves a Strip from BehaviorState A directly to BehaviorState B. In this case, a list of actions are sent.
|
|
|
|
*
|
|
|
|
*/
|
2023-02-14 02:55:44 +00:00
|
|
|
class AddStripMessage : public BehaviorMessageBase {
|
|
|
|
public:
|
2024-02-10 19:44:40 +00:00
|
|
|
AddStripMessage(AMFArrayValue* const arguments);
|
2024-01-03 13:34:38 +00:00
|
|
|
StripUiPosition GetPosition() const { return position; };
|
|
|
|
ActionContext GetActionContext() const { return actionContext; };
|
2024-01-30 03:45:50 +00:00
|
|
|
std::vector<Action> GetActionsToAdd() const;
|
2023-02-14 02:55:44 +00:00
|
|
|
private:
|
2023-02-16 17:30:33 +00:00
|
|
|
StripUiPosition position;
|
|
|
|
ActionContext actionContext;
|
|
|
|
std::vector<Action> actionsToAdd;
|
2023-02-14 02:55:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //!__ADDSTRIPMESSAGE__H__
|