#include "SplitStripMessage.h" SplitStripMessage::SplitStripMessage(AMFArrayValue* arguments) { auto* srcActionIndexValue = arguments->FindValue("srcActionIndex"); if (!srcActionIndexValue) return; srcActionIndex = static_cast(srcActionIndexValue->GetDoubleValue()); srcStripId = GetStripIDFromArgument(arguments, "srcStripID"); srcStateId = GetBehaviorStateFromArgument(arguments, "srcStateID"); dstStripId = GetStripIDFromArgument(arguments, "dstStripID"); dstStateId = GetBehaviorStateFromArgument(arguments, "dstStateID"); auto* dstStripUiArray = arguments->FindValue("dstStripUI"); if (!dstStripUiArray) return; auto* xPositionValue = dstStripUiArray->FindValue("x"); auto* yPositionValue = dstStripUiArray->FindValue("y"); if (!xPositionValue || !yPositionValue) return; yPosition = yPositionValue->GetDoubleValue(); xPosition = xPositionValue->GetDoubleValue(); behaviorId = GetBehaviorIDFromArgument(arguments); Game::logger->LogDebug("SplitStripMessage", "bhid %i x %f y %f srcStp %i dstStp %i srcStt %i dstStt %i srcActNdx %i", behaviorId, xPosition, yPosition, srcStripId, dstStripId, srcStateId, dstStateId, srcActionIndex); }