2023-02-16 17:30:33 +00:00
|
|
|
#ifndef __ACTIONCONTEXT__H__
|
|
|
|
#define __ACTIONCONTEXT__H__
|
|
|
|
|
|
|
|
#include "BehaviorStates.h"
|
|
|
|
#include "dCommonVars.h"
|
|
|
|
|
|
|
|
class AMFArrayValue;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Sent if contextual State and Strip informationis needed for a ControlBehaviors message
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
class ActionContext {
|
|
|
|
public:
|
|
|
|
ActionContext();
|
|
|
|
ActionContext(AMFArrayValue* arguments, std::string customStateKey = "stateID", std::string customStripKey = "stripID");
|
2024-01-03 13:34:38 +00:00
|
|
|
const StripId GetStripId() const { return stripId; };
|
|
|
|
const BehaviorState GetStateId() const { return stateId; };
|
2023-02-16 17:30:33 +00:00
|
|
|
private:
|
|
|
|
BehaviorState GetBehaviorStateFromArgument(AMFArrayValue* arguments, const std::string& key);
|
|
|
|
StripId GetStripIdFromArgument(AMFArrayValue* arguments, const std::string& key);
|
|
|
|
StripId stripId;
|
|
|
|
BehaviorState stateId;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //!__ACTIONCONTEXT__H__
|