/// <summary> /// Calls a function by its number /// </summary> /// <param name="functionNumber"> /// The number of the function /// </param> /// <param name="self"> /// The self. /// </param> /// <param name="caller"> /// The caller. /// </param> /// <param name="target"> /// The target. /// </param> /// <param name="arguments"> /// The arguments. /// </param> /// <returns> /// </returns> public bool CallFunction( int functionNumber, INamedEntity self, INamedEntity caller, IInstancedEntity target, object[] arguments) { FunctionPrototype func = this.GetFunctionByNumber(functionNumber); return(func.Execute(self, caller, target, arguments)); }
/// <summary> /// Calls a function by its number /// </summary> /// <param name="functionNumber"> /// The number of the function /// </param> /// <param name="self"> /// The self. /// </param> /// <param name="caller"> /// The caller. /// </param> /// <param name="target"> /// The target. /// </param> /// <param name="arguments"> /// The arguments. /// </param> /// <returns> /// </returns> public bool CallFunction(int functionNumber, Dynel self, Dynel caller, object target, object[] arguments) { FunctionPrototype func = this.GetFunctionByNumber(functionNumber); return(func.Execute(self, caller, target, arguments)); }