private static int Action(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 1); Delegate o = DelegateFactory.Action(LuaScriptMgr.GetLuaFunction(L, 1)); LuaScriptMgr.Push(L, o); return(1); }