2023-02-14 02:55:44 +00:00
|
|
|
#include "AddActionMessage.h"
|
|
|
|
|
2023-02-16 17:30:33 +00:00
|
|
|
AddActionMessage::AddActionMessage(AMFArrayValue* arguments) : BehaviorMessageBase(arguments) {
|
|
|
|
actionContext = ActionContext(arguments);
|
|
|
|
actionIndex = GetActionIndexFromArgument(arguments);
|
2023-02-14 02:55:44 +00:00
|
|
|
|
2023-02-16 17:30:33 +00:00
|
|
|
auto* actionValue = arguments->FindValue<AMFArrayValue>("action");
|
|
|
|
if (!actionValue) return;
|
2023-02-14 02:55:44 +00:00
|
|
|
|
2023-02-16 17:30:33 +00:00
|
|
|
action = Action(actionValue);
|
2023-02-14 02:55:44 +00:00
|
|
|
|
2023-02-16 17:30:33 +00:00
|
|
|
Game::logger->LogDebug("AddActionMessage", "actionIndex %i stripId %i stateId %i type %s valueParameterName %s valueParameterString %s valueParameterDouble %f behaviorId %i", actionIndex, actionContext.GetStripId(), actionContext.GetStateId(), action.GetType().c_str(), action.GetValueParameterName().c_str(), action.GetValueParameterString().c_str(), action.GetValueParameterDouble(), behaviorId);
|
2023-02-14 02:55:44 +00:00
|
|
|
}
|