copy from Lua/Gen/MarketConfigWrap.cs
copy to Lua/Gen/AuctionConfigWrap.cs
| File was copied from Lua/Gen/MarketConfigWrap.cs |
| | |
| | | namespace XLua.CSObjectWrap |
| | | { |
| | | using Utils = XLua.Utils; |
| | | public class MarketConfigWrap |
| | | public class AuctionConfigWrap |
| | | { |
| | | public static void __Register(RealStatePtr L) |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(MarketConfig); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 10, 0); |
| | | System.Type type = typeof(AuctionConfig); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 7, 0); |
| | | |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "type", _g_get_type); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "name", _g_get_name); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "limitLv", _g_get_limitLv); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "queryType", _g_get_queryType); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "ChooseName", _g_get_ChooseName); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Id", _g_get_Id); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "TypeId", _g_get_TypeId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "ChooseItem1", _g_get_ChooseItem1); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "ChooseItem2", _g_get_ChooseItem2); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "ChooseItem3", _g_get_ChooseItem3); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "itemTypeName", _g_get_itemTypeName); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "itemTypeIcon", _g_get_itemTypeIcon); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "TypeName", _g_get_TypeName); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "ChooseItemName1", _g_get_ChooseItemName1); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "ChooseItemName2", _g_get_ChooseItemName2); |
| | | |
| | | |
| | | |
| | |
| | | if(LuaAPI.lua_gettop(L) == 1) |
| | | { |
| | | |
| | | MarketConfig gen_ret = new MarketConfig(); |
| | | AuctionConfig gen_ret = new AuctionConfig(); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | return 1; |
| | |
| | | { |
| | | string _input = LuaAPI.lua_tostring(L, 2); |
| | | |
| | | MarketConfig gen_ret = new MarketConfig(_input); |
| | | AuctionConfig gen_ret = new AuctionConfig(_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 MarketConfig constructor!"); |
| | | return LuaAPI.luaL_error(L, "invalid arguments to AuctionConfig constructor!"); |
| | | |
| | | } |
| | | |
| | |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 1); |
| | | |
| | | MarketConfig gen_ret = MarketConfig.Get( _id ); |
| | | AuctionConfig gen_ret = AuctionConfig.Get( _id ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | |
| | | { |
| | | string _id = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | MarketConfig gen_ret = MarketConfig.Get( _id ); |
| | | AuctionConfig gen_ret = AuctionConfig.Get( _id ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | return LuaAPI.luaL_error(L, "invalid arguments to MarketConfig.Get!"); |
| | | return LuaAPI.luaL_error(L, "invalid arguments to AuctionConfig.Get!"); |
| | | |
| | | } |
| | | |
| | |
| | | |
| | | { |
| | | |
| | | System.Collections.Generic.List<string> gen_ret = MarketConfig.GetKeys( ); |
| | | System.Collections.Generic.List<string> gen_ret = AuctionConfig.GetKeys( ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | |
| | | |
| | | { |
| | | |
| | | System.Collections.Generic.List<MarketConfig> gen_ret = MarketConfig.GetValues( ); |
| | | System.Collections.Generic.List<AuctionConfig> gen_ret = AuctionConfig.GetValues( ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 1); |
| | | |
| | | bool gen_ret = MarketConfig.Has( _id ); |
| | | bool gen_ret = AuctionConfig.Has( _id ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | |
| | | { |
| | | string _id = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | bool gen_ret = MarketConfig.Has( _id ); |
| | | bool gen_ret = AuctionConfig.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 MarketConfig.Has!"); |
| | | return LuaAPI.luaL_error(L, "invalid arguments to AuctionConfig.Has!"); |
| | | |
| | | } |
| | | |
| | |
| | | { |
| | | bool _sync = LuaAPI.lua_toboolean(L, 1); |
| | | |
| | | MarketConfig.Init( _sync ); |
| | | AuctionConfig.Init( _sync ); |
| | | |
| | | |
| | | |
| | |
| | | if(gen_param_count == 0) |
| | | { |
| | | |
| | | MarketConfig.Init( ); |
| | | AuctionConfig.Init( ); |
| | | |
| | | |
| | | |
| | |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | return LuaAPI.luaL_error(L, "invalid arguments to MarketConfig.Init!"); |
| | | return LuaAPI.luaL_error(L, "invalid arguments to AuctionConfig.Init!"); |
| | | |
| | | } |
| | | |
| | |
| | | { |
| | | try { |
| | | |
| | | LuaAPI.lua_pushboolean(L, MarketConfig.inited); |
| | | LuaAPI.lua_pushboolean(L, AuctionConfig.inited); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_type(RealStatePtr L) |
| | | static int _g_get_Id(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | MarketConfig gen_to_be_invoked = (MarketConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.type); |
| | | AuctionConfig gen_to_be_invoked = (AuctionConfig)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_name(RealStatePtr L) |
| | | static int _g_get_TypeId(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | MarketConfig gen_to_be_invoked = (MarketConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushstring(L, gen_to_be_invoked.name); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_limitLv(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | MarketConfig gen_to_be_invoked = (MarketConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.limitLv); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_queryType(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | MarketConfig gen_to_be_invoked = (MarketConfig)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.queryType); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_ChooseName(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | MarketConfig gen_to_be_invoked = (MarketConfig)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.ChooseName); |
| | | AuctionConfig gen_to_be_invoked = (AuctionConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.TypeId); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | MarketConfig gen_to_be_invoked = (MarketConfig)translator.FastGetCSObj(L, 1); |
| | | AuctionConfig gen_to_be_invoked = (AuctionConfig)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.ChooseItem1); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | MarketConfig gen_to_be_invoked = (MarketConfig)translator.FastGetCSObj(L, 1); |
| | | AuctionConfig gen_to_be_invoked = (AuctionConfig)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.ChooseItem2); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_ChooseItem3(RealStatePtr L) |
| | | static int _g_get_TypeName(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | MarketConfig gen_to_be_invoked = (MarketConfig)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.ChooseItem3); |
| | | AuctionConfig gen_to_be_invoked = (AuctionConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushstring(L, gen_to_be_invoked.TypeName); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_itemTypeName(RealStatePtr L) |
| | | static int _g_get_ChooseItemName1(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | MarketConfig gen_to_be_invoked = (MarketConfig)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.itemTypeName); |
| | | AuctionConfig gen_to_be_invoked = (AuctionConfig)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.ChooseItemName1); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_itemTypeIcon(RealStatePtr L) |
| | | static int _g_get_ChooseItemName2(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | MarketConfig gen_to_be_invoked = (MarketConfig)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.itemTypeIcon); |
| | | AuctionConfig gen_to_be_invoked = (AuctionConfig)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.ChooseItemName2); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |