| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(SelectEquipModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 18, 4, 3); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 17, 4, 3); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveHaveUnfixedSelectItem", _m_RemoveHaveUnfixedSelectItem); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddHaveAddSelectItem", _m_AddHaveAddSelectItem); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveHaveAddSelectItem", _m_RemoveHaveAddSelectItem); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAddParent", _m_SetAddParent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshSelectEquip", _m_RefreshSelectEquip); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSelectMatCell", _m_SetSelectMatCell); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateSelectItem", _m_UpdateSelectItem); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearSelectModel", _m_ClearSelectModel); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHaveUnfixedSelectItem", _m_GetHaveUnfixedSelectItem); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHaveAddSelectItem", _m_GetHaveAddSelectItem); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "haveSelectItemRefresh", _e_haveSelectItemRefresh); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "selectEquipEvent", _e_selectEquipEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateSelectEvent", _e_UpdateSelectEvent); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "addParent", _g_get_addParent); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectMatCell", _g_get_selectMatCell); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectItem", _g_get_selectItem); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "extraOneKeyPutCondis", _g_get_extraOneKeyPutCondis); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "noOneKeyPutCondis", _g_get_noOneKeyPutCondis); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SetAddParent(RealStatePtr L) |
| | | static int _m_SetSelectMatCell(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | |
| | | |
| | | |
| | | { |
| | | UnityEngine.GameObject _go = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); |
| | | Snxxz.UI.ComposeMatCell _matCell = (Snxxz.UI.ComposeMatCell)translator.GetObject(L, 2, typeof(Snxxz.UI.ComposeMatCell)); |
| | | |
| | | gen_to_be_invoked.SetAddParent( _go ); |
| | | gen_to_be_invoked.SetSelectMatCell( _matCell ); |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_RefreshSelectEquip(RealStatePtr L) |
| | | static int _m_UpdateSelectItem(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | |
| | | |
| | | |
| | | { |
| | | Snxxz.UI.ItemModel _model = (Snxxz.UI.ItemModel)translator.GetObject(L, 2, typeof(Snxxz.UI.ItemModel)); |
| | | int _itemIndex = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | gen_to_be_invoked.RefreshSelectEquip( _model ); |
| | | gen_to_be_invoked.UpdateSelectItem( _itemIndex ); |
| | | |
| | | |
| | | |
| | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_addParent(RealStatePtr L) |
| | | static int _g_get_selectMatCell(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.addParent); |
| | | translator.Push(L, gen_to_be_invoked.selectMatCell); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_haveSelectItemRefresh(RealStatePtr L) |
| | | static int _e_UpdateSelectEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1); |
| | | System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3); |
| | | System.Action<Snxxz.UI.ComposeMatCell, int, SelectItemType> gen_delegate = translator.GetDelegate<System.Action<Snxxz.UI.ComposeMatCell, int, SelectItemType>>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action!"); |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<Snxxz.UI.ComposeMatCell, int, SelectItemType>!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.haveSelectItemRefresh += gen_delegate; |
| | | gen_to_be_invoked.UpdateSelectEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.haveSelectItemRefresh -= gen_delegate; |
| | | gen_to_be_invoked.UpdateSelectEvent -= 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 SelectEquipModel.haveSelectItemRefresh!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_selectEquipEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | SelectEquipModel gen_to_be_invoked = (SelectEquipModel)translator.FastGetCSObj(L, 1); |
| | | System.Action<Snxxz.UI.ItemModel, UnityEngine.GameObject, SelectItemType> gen_delegate = translator.GetDelegate<System.Action<Snxxz.UI.ItemModel, UnityEngine.GameObject, SelectItemType>>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<Snxxz.UI.ItemModel, UnityEngine.GameObject, SelectItemType>!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.selectEquipEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.selectEquipEvent -= 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 SelectEquipModel.selectEquipEvent!"); |
| | | LuaAPI.luaL_error(L, "invalid arguments to SelectEquipModel.UpdateSelectEvent!"); |
| | | return 0; |
| | | } |
| | | |