Ejemplo n.º 1
0
        } // func running

        /// <summary>Creates a function, that wraps resume.</summary>
        /// <param name="dlg"></param>
        /// <returns></returns>
        public static Func <object[], LuaResult> wrap(Delegate dlg)
        {
            LuaThread t = new LuaThread(dlg);

            return(new Func <object[], LuaResult>(args => t.resume(args)));
        } // func wrap
Ejemplo n.º 2
0
        } // func Resume

        /// <summary>Executes a part of the thread.</summary>
        /// <param name="co">Thread, that should resume.</param>
        /// <param name="args">Arguments, that will pass to the function-part</param>
        /// <returns>Result of the function.</returns>
        public static LuaResult resume(LuaThread co, object[] args)
        {
            return(co.resume(args));
        } // func resume
Ejemplo n.º 3
0
    } // func running

    /// <summary>Creates a function, that wraps resume.</summary>
    /// <param name="dlg"></param>
    /// <returns></returns>
    public static Func<object[], LuaResult> wrap(Delegate dlg)
    {
      LuaThread t = new LuaThread(dlg);
      return new Func<object[], LuaResult>(args => t.resume(args));
    } // func wrap
Ejemplo n.º 4
0
 /// <summary>Executes a part of the thread.</summary>
 /// <param name="co">Thread, that should resume.</param>
 /// <param name="args">Arguments, that will pass to the function-part</param>
 /// <returns>Result of the function.</returns>
 public static LuaResult resume(LuaThread co, object[] args)
 => co.resume(args);
Ejemplo n.º 5
0
    } // func Resume

    /// <summary>Executes a part of the thread.</summary>
    /// <param name="co">Thread, that should resume.</param>
    /// <param name="args">Arguments, that will pass to the function-part</param>
    /// <returns>Result of the function.</returns>
    public static LuaResult resume(LuaThread co, object[] args)
    {
      return co.resume(args);
    } // func resume