#if USE_UNI_LUA using LuaAPI = UniLua.Lua; using RealStatePtr = UniLua.ILuaState; using LuaCSFunction = UniLua.CSharpFunctionDelegate; #else using LuaAPI = XLua.LuaDLL.Lua; using RealStatePtr = System.IntPtr; using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; #endif using XLua; using System.Collections.Generic; namespace XLua.CSObjectWrap { using Utils = XLua.Utils; public class SnxxzUIItemLogicUtilityWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(Snxxz.UI.ItemLogicUtility); Utils.BeginObjectRegister(type, L, translator, 0, 33, 3, 1); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEquipScore", _m_GetEquipScore); Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsCustomItem", _m_IsCustomItem); Utils.RegisterFunc(L, Utils.METHOD_IDX, "RecommendItem", _m_RecommendItem); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnGetEquip", _m_OnGetEquip); Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshPickItem", _m_RefreshPickItem); Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckBetterEquipByRealm", _m_CheckBetterEquipByRealm); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDruglistByRealm", _m_GetDruglistByRealm); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetItemEffectCDTime", _m_SetItemEffectCDTime); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTimeOffest", _m_GetTimeOffest); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSellItemList", _m_GetSellItemList); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSellItemOrder", _m_SetSellItemOrder); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetOneKeySellModel", _m_GetOneKeySellModel); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCanSellEquipList", _m_GetCanSellEquipList); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OneKeySell", _m_OneKeySell); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetPack", _m_ResetPack); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLookIndex", _m_SetLookIndex); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHighestScoreEquipByPlace", _m_GetHighestScoreEquipByPlace); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearSortedBetterEquip", _m_ClearSortedBetterEquip); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBagSortBetterEquipList", _m_SetBagSortBetterEquipList); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBagSortBetterEquip", _m_GetBagSortBetterEquip); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetItemQuality", _m_GetItemQuality); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnChangeCoinsUnit", _m_OnChangeCoinsUnit); Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsFightUp", _m_IsFightUp); Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsOverdue", _m_IsOverdue); Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsJobCompatibleItem", _m_IsJobCompatibleItem); Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsEquip", _m_IsEquip); Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsWing", _m_IsWing); Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsDogzEquip", _m_IsDogzEquip); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPreciousItemEvent", _e_GetPreciousItemEvent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBetterEquipEvent", _e_GetBetterEquipEvent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "PickItemEvent", _e_PickItemEvent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "lookEquipEvent", _e_lookEquipEvent); Utils.RegisterFunc(L, Utils.GETTER_IDX, "isPackResetOk", _g_get_isPackResetOk); Utils.RegisterFunc(L, Utils.GETTER_IDX, "lookLineIndex", _g_get_lookLineIndex); Utils.RegisterFunc(L, Utils.GETTER_IDX, "lookItemGUID", _g_get_lookItemGUID); Utils.RegisterFunc(L, Utils.SETTER_IDX, "isPackResetOk", _s_set_isPackResetOk); Utils.EndObjectRegister(type, L, translator, null, null, null, null, null); Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); Utils.EndClassRegister(type, L, translator); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if(LuaAPI.lua_gettop(L) == 1) { Snxxz.UI.ItemLogicUtility gen_ret = new Snxxz.UI.ItemLogicUtility(); 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 Snxxz.UI.ItemLogicUtility constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Init(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Init( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetEquipScore(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>>(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) { PackType _type;translator.Get(L, 2, out _type); int _itemId = LuaAPI.xlua_tointeger(L, 3); System.Collections.Generic.Dictionary> _useDataDic = (System.Collections.Generic.Dictionary>)translator.GetObject(L, 4, typeof(System.Collections.Generic.Dictionary>)); bool _isPreview = LuaAPI.lua_toboolean(L, 5); int gen_ret = gen_to_be_invoked.GetEquipScore( _type, _itemId, _useDataDic, _isPreview ); LuaAPI.xlua_pushinteger(L, gen_ret); return 1; } if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>>(L, 4)) { PackType _type;translator.Get(L, 2, out _type); int _itemId = LuaAPI.xlua_tointeger(L, 3); System.Collections.Generic.Dictionary> _useDataDic = (System.Collections.Generic.Dictionary>)translator.GetObject(L, 4, typeof(System.Collections.Generic.Dictionary>)); int gen_ret = gen_to_be_invoked.GetEquipScore( _type, _itemId, _useDataDic ); LuaAPI.xlua_pushinteger(L, gen_ret); return 1; } if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { PackType _type;translator.Get(L, 2, out _type); int _itemId = LuaAPI.xlua_tointeger(L, 3); int gen_ret = gen_to_be_invoked.GetEquipScore( _type, _itemId ); LuaAPI.xlua_pushinteger(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 Snxxz.UI.ItemLogicUtility.GetEquipScore!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_IsCustomItem(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { int _itemId = LuaAPI.xlua_tointeger(L, 2); bool gen_ret = gen_to_be_invoked.IsCustomItem( _itemId ); LuaAPI.lua_pushboolean(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_RecommendItem(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { Snxxz.UI.ItemModel _item = (Snxxz.UI.ItemModel)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemModel)); gen_to_be_invoked.RecommendItem( _item ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_OnGetEquip(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { Snxxz.UI.ItemModel _item = (Snxxz.UI.ItemModel)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemModel)); gen_to_be_invoked.OnGetEquip( _item ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_RefreshPickItem(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { PackType _type;translator.Get(L, 2, out _type); string _guid = LuaAPI.lua_tostring(L, 3); gen_to_be_invoked.RefreshPickItem( _type, _guid ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_CheckBetterEquipByRealm(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { System.Collections.Generic.Dictionary gen_ret = gen_to_be_invoked.CheckBetterEquipByRealm( ); translator.Push(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_GetDruglistByRealm(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { System.Collections.Generic.List gen_ret = gen_to_be_invoked.GetDruglistByRealm( ); translator.Push(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_SetItemEffectCDTime(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { string _guid = LuaAPI.lua_tostring(L, 2); int _itemID = LuaAPI.xlua_tointeger(L, 3); int _getTime = LuaAPI.xlua_tointeger(L, 4); int _serverSurplusTime = LuaAPI.xlua_tointeger(L, 5); gen_to_be_invoked.SetItemEffectCDTime( _guid, _itemID, _getTime, _serverSurplusTime ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetTimeOffest(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { System.DateTime _getTime;translator.Get(L, 2, out _getTime); double gen_ret = gen_to_be_invoked.GetTimeOffest( _getTime ); LuaAPI.lua_pushnumber(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_GetSellItemList(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { System.Collections.Generic.List gen_ret = gen_to_be_invoked.GetSellItemList( ); translator.Push(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_SetSellItemOrder(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { Snxxz.UI.ItemModel _startModel = (Snxxz.UI.ItemModel)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemModel)); Snxxz.UI.ItemModel _endModel = (Snxxz.UI.ItemModel)translator.GetObject(L, 3, typeof(Snxxz.UI.ItemModel)); int gen_ret = gen_to_be_invoked.SetSellItemOrder( _startModel, _endModel ); LuaAPI.xlua_pushinteger(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_GetOneKeySellModel(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.GetOneKeySellModel( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetCanSellEquipList(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { Snxxz.UI.ItemModel _model = (Snxxz.UI.ItemModel)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemModel)); gen_to_be_invoked.GetCanSellEquipList( _model ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_OneKeySell(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { System.Collections.Generic.List __oneKeySelllist = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); gen_to_be_invoked.OneKeySell( __oneKeySelllist ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ResetPack(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { PackType _type;translator.Get(L, 2, out _type); gen_to_be_invoked.ResetPack( _type ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetLookIndex(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { string _guid = LuaAPI.lua_tostring(L, 2); int _singleRowCount = LuaAPI.xlua_tointeger(L, 3); gen_to_be_invoked.SetLookIndex( _guid, _singleRowCount ); return 0; } if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string _guid = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.SetLookIndex( _guid ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.ItemLogicUtility.SetLookIndex!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetHighestScoreEquipByPlace(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { int _equipPlace = LuaAPI.xlua_tointeger(L, 2); string gen_ret = gen_to_be_invoked.GetHighestScoreEquipByPlace( _equipPlace ); 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_ClearSortedBetterEquip(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.ClearSortedBetterEquip( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetBagSortBetterEquipList(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { Snxxz.UI.ItemModel _itemModel = (Snxxz.UI.ItemModel)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemModel)); gen_to_be_invoked.SetBagSortBetterEquipList( _itemModel ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetBagSortBetterEquip(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { int _equipPlace = LuaAPI.xlua_tointeger(L, 2); int _index = LuaAPI.xlua_tointeger(L, 3); Snxxz.UI.ItemModel gen_ret = gen_to_be_invoked.GetBagSortBetterEquip( _equipPlace, _index ); translator.Push(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_GetItemQuality(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>>(L, 3)) { int _itemId = LuaAPI.xlua_tointeger(L, 2); System.Collections.Generic.Dictionary> _useDataDic = (System.Collections.Generic.Dictionary>)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary>)); int gen_ret = gen_to_be_invoked.GetItemQuality( _itemId, _useDataDic ); LuaAPI.xlua_pushinteger(L, gen_ret); return 1; } if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { int _itemId = LuaAPI.xlua_tointeger(L, 2); int gen_ret = gen_to_be_invoked.GetItemQuality( _itemId ); LuaAPI.xlua_pushinteger(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 Snxxz.UI.ItemLogicUtility.GetItemQuality!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_OnChangeCoinsUnit(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { ulong _value = LuaAPI.lua_touint64(L, 2); string gen_ret = gen_to_be_invoked.OnChangeCoinsUnit( _value ); 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_IsFightUp(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { int __itemID = LuaAPI.xlua_tointeger(L, 2); int __score = LuaAPI.xlua_tointeger(L, 3); int gen_ret = gen_to_be_invoked.IsFightUp( __itemID, __score ); LuaAPI.xlua_pushinteger(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_IsOverdue(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { string _guid = LuaAPI.lua_tostring(L, 2); bool gen_ret = gen_to_be_invoked.IsOverdue( _guid ); LuaAPI.lua_pushboolean(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_IsJobCompatibleItem(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { int _itemId = LuaAPI.xlua_tointeger(L, 2); bool gen_ret = gen_to_be_invoked.IsJobCompatibleItem( _itemId ); LuaAPI.lua_pushboolean(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_IsEquip(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { int _itemId = LuaAPI.xlua_tointeger(L, 2); bool gen_ret = gen_to_be_invoked.IsEquip( _itemId ); LuaAPI.lua_pushboolean(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_IsWing(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { int _itemId = LuaAPI.xlua_tointeger(L, 2); bool gen_ret = gen_to_be_invoked.IsWing( _itemId ); LuaAPI.lua_pushboolean(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_IsDogzEquip(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); { int _itemId = LuaAPI.xlua_tointeger(L, 2); bool gen_ret = gen_to_be_invoked.IsDogzEquip( _itemId ); LuaAPI.lua_pushboolean(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_isPackResetOk(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isPackResetOk); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_lookLineIndex(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.lookLineIndex); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_lookItemGUID(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, gen_to_be_invoked.lookItemGUID); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_isPackResetOk(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); gen_to_be_invoked.isPackResetOk = LuaAPI.lua_toboolean(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _e_GetPreciousItemEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); System.Action gen_delegate = translator.GetDelegate>(L, 3); if (gen_delegate == null) { return LuaAPI.luaL_error(L, "#3 need System.Action!"); } if (gen_param_count == 3) { if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { gen_to_be_invoked.GetPreciousItemEvent += gen_delegate; return 0; } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.GetPreciousItemEvent -= gen_delegate; return 0; } } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.ItemLogicUtility.GetPreciousItemEvent!"); return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _e_GetBetterEquipEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); System.Action gen_delegate = translator.GetDelegate>(L, 3); if (gen_delegate == null) { return LuaAPI.luaL_error(L, "#3 need System.Action!"); } if (gen_param_count == 3) { if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { gen_to_be_invoked.GetBetterEquipEvent += gen_delegate; return 0; } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.GetBetterEquipEvent -= gen_delegate; return 0; } } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.ItemLogicUtility.GetBetterEquipEvent!"); return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _e_PickItemEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); System.Action gen_delegate = translator.GetDelegate>(L, 3); if (gen_delegate == null) { return LuaAPI.luaL_error(L, "#3 need System.Action!"); } if (gen_param_count == 3) { if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { gen_to_be_invoked.PickItemEvent += gen_delegate; return 0; } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.PickItemEvent -= gen_delegate; return 0; } } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.ItemLogicUtility.PickItemEvent!"); return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _e_lookEquipEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); System.Action gen_delegate = translator.GetDelegate(L, 3); if (gen_delegate == null) { return LuaAPI.luaL_error(L, "#3 need System.Action!"); } if (gen_param_count == 3) { if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { gen_to_be_invoked.lookEquipEvent += gen_delegate; return 0; } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.lookEquipEvent -= gen_delegate; return 0; } } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.ItemLogicUtility.lookEquipEvent!"); return 0; } } }