Esempio n. 1
0
        static int _g_get_NeedUpdateNum(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                CatLib.Contracts.UpdateSystem.IAutoUpdate __cl_gen_to_be_invoked = (CatLib.Contracts.UpdateSystem.IAutoUpdate)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, __cl_gen_to_be_invoked.NeedUpdateNum);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Esempio n. 2
0
        static int _m_UpdateAsset(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            CatLib.Contracts.UpdateSystem.IAutoUpdate __cl_gen_to_be_invoked = (CatLib.Contracts.UpdateSystem.IAutoUpdate)translator.FastGetCSObj(L, 1);


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 1)
                {
                    bool __cl_gen_ret = __cl_gen_to_be_invoked.UpdateAsset(  );
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
                {
                    string resUrl = LuaAPI.lua_tostring(L, 2);

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.UpdateAsset(resUrl);
                    LuaAPI.lua_pushboolean(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 CatLib.Contracts.UpdateSystem.IAutoUpdate.UpdateAsset!"));
        }