static int LoadLevel(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); GameResFactory obj = (GameResFactory)ToLua.CheckObject(L, 1, typeof(GameResFactory)); string arg0 = ToLua.CheckString(L, 2); obj.LoadLevel(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }