示例#1
0
 /// <summary>
 /// 增加一个函数
 /// </summary>
 /// <param name="funcName">函数名</param>
 /// <param name="argv">形参列表</param>
 /// <returns>操作成功与否</returns>
 public bool AddFunction(string funcName, List<string> argv)
 {
     if (this.funcList.Find((x) => x.functionName == funcName) != null)
     {
         return false;
     }
     var nf = new FunctionPackage(funcName, this, argv);
     this.funcList.Add(nf);
     HalationInvoker.AddScene(nf.functionCallName);
     return true;
 }
示例#2
0
        /// <summary>
        /// 增加一个函数
        /// </summary>
        /// <param name="funcName">函数名</param>
        /// <param name="argv">形参列表</param>
        /// <returns>操作成功与否</returns>
        public bool AddFunction(string funcName, List <string> argv)
        {
            if (this.funcList.Find(x => x.functionName == funcName) != null)
            {
                return(false);
            }
            var nf = new FunctionPackage(funcName, this, argv);

            this.funcList.Add(nf);
            HalationInvoker.AddScene(nf.functionCallName);
            return(true);
        }