| File was renamed from Lua/Gen/MarketQueryConfigWrap.cs |
| | |
| | | namespace XLua.CSObjectWrap |
| | | { |
| | | using Utils = XLua.Utils; |
| | | public class MarketQueryConfigWrap |
| | | public class AuctionIndexConfigWrap |
| | | { |
| | | public static void __Register(RealStatePtr L) |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(MarketQueryConfig); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 0); |
| | | System.Type type = typeof(AuctionIndexConfig); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 0); |
| | | |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "queryType", _g_get_queryType); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "ChooseType", _g_get_ChooseType); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Id", _g_get_Id); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Job", _g_get_Job); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "ItemType", _g_get_ItemType); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Order", _g_get_Order); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "SpecItemID", _g_get_SpecItemID); |
| | | |
| | | |
| | | |
| | |
| | | if(LuaAPI.lua_gettop(L) == 1) |
| | | { |
| | | |
| | | MarketQueryConfig gen_ret = new MarketQueryConfig(); |
| | | AuctionIndexConfig gen_ret = new AuctionIndexConfig(); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | return 1; |
| | |
| | | { |
| | | string _input = LuaAPI.lua_tostring(L, 2); |
| | | |
| | | MarketQueryConfig gen_ret = new MarketQueryConfig(_input); |
| | | AuctionIndexConfig gen_ret = new AuctionIndexConfig(_input); |
| | | translator.Push(L, 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 MarketQueryConfig constructor!"); |
| | | return LuaAPI.luaL_error(L, "invalid arguments to AuctionIndexConfig constructor!"); |
| | | |
| | | } |
| | | |
| | |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 1); |
| | | |
| | | MarketQueryConfig gen_ret = MarketQueryConfig.Get( _id ); |
| | | AuctionIndexConfig gen_ret = AuctionIndexConfig.Get( _id ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | |
| | | { |
| | | string _id = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | MarketQueryConfig gen_ret = MarketQueryConfig.Get( _id ); |
| | | AuctionIndexConfig gen_ret = AuctionIndexConfig.Get( _id ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | return LuaAPI.luaL_error(L, "invalid arguments to MarketQueryConfig.Get!"); |
| | | return LuaAPI.luaL_error(L, "invalid arguments to AuctionIndexConfig.Get!"); |
| | | |
| | | } |
| | | |
| | |
| | | |
| | | { |
| | | |
| | | System.Collections.Generic.List<string> gen_ret = MarketQueryConfig.GetKeys( ); |
| | | System.Collections.Generic.List<string> gen_ret = AuctionIndexConfig.GetKeys( ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | |
| | | |
| | | { |
| | | |
| | | System.Collections.Generic.List<MarketQueryConfig> gen_ret = MarketQueryConfig.GetValues( ); |
| | | System.Collections.Generic.List<AuctionIndexConfig> gen_ret = AuctionIndexConfig.GetValues( ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 1); |
| | | |
| | | bool gen_ret = MarketQueryConfig.Has( _id ); |
| | | bool gen_ret = AuctionIndexConfig.Has( _id ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | |
| | | { |
| | | string _id = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | bool gen_ret = MarketQueryConfig.Has( _id ); |
| | | bool gen_ret = AuctionIndexConfig.Has( _id ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | return LuaAPI.luaL_error(L, "invalid arguments to MarketQueryConfig.Has!"); |
| | | return LuaAPI.luaL_error(L, "invalid arguments to AuctionIndexConfig.Has!"); |
| | | |
| | | } |
| | | |
| | |
| | | { |
| | | bool _sync = LuaAPI.lua_toboolean(L, 1); |
| | | |
| | | MarketQueryConfig.Init( _sync ); |
| | | AuctionIndexConfig.Init( _sync ); |
| | | |
| | | |
| | | |
| | |
| | | if(gen_param_count == 0) |
| | | { |
| | | |
| | | MarketQueryConfig.Init( ); |
| | | AuctionIndexConfig.Init( ); |
| | | |
| | | |
| | | |
| | |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | return LuaAPI.luaL_error(L, "invalid arguments to MarketQueryConfig.Init!"); |
| | | return LuaAPI.luaL_error(L, "invalid arguments to AuctionIndexConfig.Init!"); |
| | | |
| | | } |
| | | |
| | |
| | | { |
| | | try { |
| | | |
| | | LuaAPI.lua_pushboolean(L, MarketQueryConfig.inited); |
| | | LuaAPI.lua_pushboolean(L, AuctionIndexConfig.inited); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_queryType(RealStatePtr L) |
| | | static int _g_get_Id(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | MarketQueryConfig gen_to_be_invoked = (MarketQueryConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.queryType); |
| | | AuctionIndexConfig gen_to_be_invoked = (AuctionIndexConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Id); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_ChooseType(RealStatePtr L) |
| | | static int _g_get_Job(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | MarketQueryConfig gen_to_be_invoked = (MarketQueryConfig)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.ChooseType); |
| | | AuctionIndexConfig gen_to_be_invoked = (AuctionIndexConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Job); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_ItemType(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | AuctionIndexConfig gen_to_be_invoked = (AuctionIndexConfig)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.ItemType); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_Order(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | AuctionIndexConfig gen_to_be_invoked = (AuctionIndexConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Order); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_SpecItemID(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | AuctionIndexConfig gen_to_be_invoked = (AuctionIndexConfig)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.SpecItemID); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |