예제 #1
0
 static int GetTable(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         LuaFramework.LuaManager obj = (LuaFramework.LuaManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.LuaManager));
         string arg0             = ToLua.CheckString(L, 2);
         LuaInterface.LuaTable o = obj.GetTable(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #2
0
파일: Util.cs 프로젝트: mengtest/wh
        //获取luatable
        public static LuaTable GetTable(string table)
        {
            LuaManager luaMgr = AppFacade.Instance.GetManager <LuaManager>(ManagerName.Lua);

            return(luaMgr.GetTable(table));
        }