2023-02-14 02:55:44 +00:00
|
|
|
#include "UpdateActionMessage.h"
|
|
|
|
|
2023-02-16 17:30:33 +00:00
|
|
|
#include "Action.h"
|
2023-02-14 02:55:44 +00:00
|
|
|
|
2023-02-16 17:30:33 +00:00
|
|
|
UpdateActionMessage::UpdateActionMessage(AMFArrayValue* arguments) : BehaviorMessageBase(arguments) {
|
|
|
|
actionContext = ActionContext(arguments);
|
2023-02-14 02:55:44 +00:00
|
|
|
|
2023-05-13 22:22:00 +00:00
|
|
|
auto* actionValue = arguments->GetArray("action");
|
2023-02-16 17:30:33 +00:00
|
|
|
if (!actionValue) return;
|
2023-02-14 02:55:44 +00:00
|
|
|
|
2023-02-16 17:30:33 +00:00
|
|
|
action = Action(actionValue);
|
|
|
|
actionIndex = GetActionIndexFromArgument(arguments);
|
2023-02-14 02:55:44 +00:00
|
|
|
|
2023-10-21 23:31:55 +00:00
|
|
|
LOG_DEBUG("type %s valueParameterName %s valueParameterString %s valueParameterDouble %f behaviorId %i actionIndex %i stripId %i stateId %i", action.GetType().c_str(), action.GetValueParameterName().c_str(), action.GetValueParameterString().c_str(), action.GetValueParameterDouble(), behaviorId, actionIndex, actionContext.GetStripId(), actionContext.GetStateId());
|
2023-02-14 02:55:44 +00:00
|
|
|
}
|