2023-02-14 02:55:44 +00:00
|
|
|
#ifndef __MIGRATEACTIONSMESSAGE__H__
|
|
|
|
#define __MIGRATEACTIONSMESSAGE__H__
|
|
|
|
|
2024-01-03 13:34:38 +00:00
|
|
|
#include "Action.h"
|
2023-02-16 17:30:33 +00:00
|
|
|
#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 moves an Action after the first Action to a different Strip
|
|
|
|
*
|
|
|
|
*/
|
2023-02-14 02:55:44 +00:00
|
|
|
class MigrateActionsMessage : public BehaviorMessageBase {
|
|
|
|
public:
|
|
|
|
MigrateActionsMessage(AMFArrayValue* arguments);
|
2024-01-03 13:34:38 +00:00
|
|
|
int32_t GetSrcActionIndex() const { return srcActionIndex; };
|
|
|
|
int32_t GetDstActionIndex() const { return dstActionIndex; };
|
|
|
|
ActionContext GetSourceActionContext() const { return sourceActionContext; };
|
|
|
|
ActionContext GetDestinationActionContext() const { return destinationActionContext; };
|
|
|
|
const std::vector<Action>& GetMigratedActions() const { return migratedActions; };
|
|
|
|
void SetMigratedActions(std::vector<Action>::const_iterator start, std::vector<Action>::const_iterator end) { migratedActions.assign(start, end); };
|
2023-02-14 02:55:44 +00:00
|
|
|
private:
|
2024-01-03 13:34:38 +00:00
|
|
|
std::vector<Action> migratedActions;
|
2023-02-16 17:30:33 +00:00
|
|
|
ActionContext sourceActionContext;
|
|
|
|
ActionContext destinationActionContext;
|
2024-01-03 13:34:38 +00:00
|
|
|
int32_t srcActionIndex;
|
|
|
|
int32_t dstActionIndex;
|
2023-02-14 02:55:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //!__MIGRATEACTIONSMESSAGE__H__
|