static int _g_get_Progress(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { KEngine.StaticAssetLoader __cl_gen_to_be_invoked = (KEngine.StaticAssetLoader)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushnumber(L, __cl_gen_to_be_invoked.Progress); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _g_get_TheAsset(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); KEngine.StaticAssetLoader gen_to_be_invoked = (KEngine.StaticAssetLoader)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.TheAsset); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _m_Load_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 3 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && translator.Assignable <KEngine.AssetFileLoader.AssetFileBridgeDelegate>(L, 2) && translator.Assignable <KEngine.LoaderMode>(L, 3)) { string url = LuaAPI.lua_tostring(L, 1); KEngine.AssetFileLoader.AssetFileBridgeDelegate callback = translator.GetDelegate <KEngine.AssetFileLoader.AssetFileBridgeDelegate>(L, 2); KEngine.LoaderMode loaderMode; translator.Get(L, 3, out loaderMode); KEngine.StaticAssetLoader __cl_gen_ret = KEngine.StaticAssetLoader.Load(url, callback, loaderMode); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 2 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && translator.Assignable <KEngine.AssetFileLoader.AssetFileBridgeDelegate>(L, 2)) { string url = LuaAPI.lua_tostring(L, 1); KEngine.AssetFileLoader.AssetFileBridgeDelegate callback = translator.GetDelegate <KEngine.AssetFileLoader.AssetFileBridgeDelegate>(L, 2); KEngine.StaticAssetLoader __cl_gen_ret = KEngine.StaticAssetLoader.Load(url, callback); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 1 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) { string url = LuaAPI.lua_tostring(L, 1); KEngine.StaticAssetLoader __cl_gen_ret = KEngine.StaticAssetLoader.Load(url); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to KEngine.StaticAssetLoader.Load!")); }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 1) { KEngine.StaticAssetLoader __cl_gen_ret = new KEngine.StaticAssetLoader(); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to KEngine.StaticAssetLoader constructor!")); }