| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(DownLoadAndDiscompressTask); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 3, 7, 1); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 3, 8, 1); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Prepare", _m_Prepare); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "StartDownLoad", _m_StartDownLoad); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "totalCount", _g_get_totalCount); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "okCount", _g_get_okCount); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "restartApp", _g_get_restartApp); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "reinitedBuiltInAsset", _g_get_reinitedBuiltInAsset); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "step", _g_get_step); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "step", _s_set_step); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_reinitedBuiltInAsset(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | DownLoadAndDiscompressTask gen_to_be_invoked = (DownLoadAndDiscompressTask)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.reinitedBuiltInAsset); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_step(RealStatePtr L) |
| | | { |
| | | try { |