class AIPatrolCommandPrologue extends AICommandHandlerBase
{
	editable inlined var outPatrolPath : AIArgumentMapping;

	protected override function UpdateCommand( context : ScriptExecutionContext, command : AICommand ) : AIbehaviorUpdateOutcome
	{
		var typedCommand : AIPatrolCommand;
		typedCommand = ( ( AIPatrolCommand )( command ) );
		if( !( typedCommand ) )
		{
			return AIbehaviorUpdateOutcome.FAILURE;
		}
		if( !( typedCommand.pathParams ) )
		{
			return AIbehaviorUpdateOutcome.FAILURE;
		}
		if( !( ScriptExecutionContext.SetMappingValue( context, outPatrolPath, typedCommand.pathParams ) ) )
		{
			return AIbehaviorUpdateOutcome.FAILURE;
		}
		return AIbehaviorUpdateOutcome.SUCCESS;
	}

}

