| | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 8, 5, 2); |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 9, 5, 2); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "Init", _m_Init_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAssetVersionFile", _m_GetAssetVersionFile_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "BeginDownLoadTask", _m_BeginDownLoadTask_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "UpdateAssetVersions", _m_UpdateAssetVersions_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAssetVersion", _m_GetAssetVersion_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAssetFilePath", _m_GetAssetFilePath_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetBuiltInAssetFilePath", _m_GetBuiltInAssetFilePath_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "IsUnpriorAssetDownLoadOk", _m_IsUnpriorAssetDownLoadOk_xlua_st_); |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetBuiltInAssetFilePath_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | string __assetKey = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | string gen_ret = AssetVersionUtility.GetBuiltInAssetFilePath( __assetKey ); |
| | | LuaAPI.lua_pushstring(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsUnpriorAssetDownLoadOk_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |