#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 ComposeWinModelWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(ComposeWinModel); Utils.BeginObjectRegister(type, L, translator, 0, 44, 10, 7); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetModel", _m_ResetModel); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ParseFuncConfig", _m_ParseFuncConfig); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ParseItemComoundConfig", _m_ParseItemComoundConfig); Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddComposeData", _m_AddComposeData); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateComposeDataByLevel", _m_UpdateComposeDataByLevel); Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetFirstTypeData", _m_TryGetFirstTypeData); Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetSecondTypeData", _m_TryGetSecondTypeData); Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetThirdTypeData", _m_TryGetThirdTypeData); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetCurComposeModel", _m_SetCurComposeModel); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateThirdType", _m_UpdateThirdType); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateSecondType", _m_UpdateSecondType); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateReduce", _m_UpdateReduce); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateComposeEquipPlace", _m_UpdateComposeEquipPlace); Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetIncreaseRateItemIndex", _m_TryGetIncreaseRateItemIndex); Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetCountById", _m_TryGetCountById); Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetIdByDisplay", _m_TryGetIdByDisplay); Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetItemCompoundByMakeId", _m_TryGetItemCompoundByMakeId); Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsComposeJobLimit", _m_IsComposeJobLimit); Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsTrailerByLevel", _m_IsTrailerByLevel); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTicketId", _m_GetTicketId); Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsEnoughUnfixedMat", _m_IsEnoughUnfixedMat); Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsEnoughFixedMat", _m_IsEnoughFixedMat); Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsEnoughMoney", _m_IsEnoughMoney); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendComposeRequest", _m_SendComposeRequest); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendComposeQuest", _m_SendComposeQuest); Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsBindByFixedAndUnFixedMat", _m_IsBindByFixedAndUnFixedMat); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBindOrNoBindMinCnt", _m_GetBindOrNoBindMinCnt); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComposeSuccessRate", _m_GetComposeSuccessRate); Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsComposeTicketByType", _m_IsComposeTicketByType); Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckComposeItemById", _m_CheckComposeItemById); Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckIsComposeByType", _m_CheckIsComposeByType); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetJumpToModel", _m_SetJumpToModel); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetJumpToModel", _m_ResetJumpToModel); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetComposeTypeRed", _m_SetComposeTypeRed); Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshComposeRed", _m_RefreshComposeRed); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetModelEvent", _e_ResetModelEvent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateThirdTypeEvent", _e_UpdateThirdTypeEvent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateSecondTypeEvent", _e_UpdateSecondTypeEvent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateReduceEvent", _e_UpdateReduceEvent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateEquipTypeEvent", _e_UpdateEquipTypeEvent); Utils.RegisterFunc(L, Utils.GETTER_IDX, "CurComposeModel", _g_get_CurComposeModel); Utils.RegisterFunc(L, Utils.GETTER_IDX, "secondType", _g_get_secondType); Utils.RegisterFunc(L, Utils.GETTER_IDX, "thirdType", _g_get_thirdType); Utils.RegisterFunc(L, Utils.GETTER_IDX, "composeDataDict", _g_get_composeDataDict); Utils.RegisterFunc(L, Utils.GETTER_IDX, "composeOpenDataDict", _g_get_composeOpenDataDict); Utils.RegisterFunc(L, Utils.GETTER_IDX, "composeRed", _g_get_composeRed); Utils.RegisterFunc(L, Utils.GETTER_IDX, "composeBtnRed", _g_get_composeBtnRed); Utils.RegisterFunc(L, Utils.GETTER_IDX, "composeToolRed", _g_get_composeToolRed); Utils.RegisterFunc(L, Utils.GETTER_IDX, "secondTypeRedDict", _g_get_secondTypeRedDict); Utils.RegisterFunc(L, Utils.GETTER_IDX, "thirdTypeRedDict", _g_get_thirdTypeRedDict); Utils.RegisterFunc(L, Utils.SETTER_IDX, "composeDataDict", _s_set_composeDataDict); Utils.RegisterFunc(L, Utils.SETTER_IDX, "composeOpenDataDict", _s_set_composeOpenDataDict); Utils.RegisterFunc(L, Utils.SETTER_IDX, "composeRed", _s_set_composeRed); Utils.RegisterFunc(L, Utils.SETTER_IDX, "composeBtnRed", _s_set_composeBtnRed); Utils.RegisterFunc(L, Utils.SETTER_IDX, "composeToolRed", _s_set_composeToolRed); Utils.RegisterFunc(L, Utils.SETTER_IDX, "secondTypeRedDict", _s_set_secondTypeRedDict); Utils.RegisterFunc(L, Utils.SETTER_IDX, "thirdTypeRedDict", _s_set_thirdTypeRedDict); Utils.EndObjectRegister(type, L, translator, null, null, null, null, null); Utils.BeginClassRegister(type, L, __CreateInstance, 4, 0, 0); Utils.RegisterObject(L, translator, Utils.CLS_IDX, "COMPOSE_REDKEY", ComposeWinModel.COMPOSE_REDKEY); Utils.RegisterObject(L, translator, Utils.CLS_IDX, "COMPOSETOOL_REDKEY", ComposeWinModel.COMPOSETOOL_REDKEY); Utils.RegisterObject(L, translator, Utils.CLS_IDX, "COMPOSEBTN_REDKEY", ComposeWinModel.COMPOSEBTN_REDKEY); 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) { ComposeWinModel gen_ret = new ComposeWinModel(); 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 ComposeWinModel constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Init(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)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_UnInit(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.UnInit( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_OnBeforePlayerDataInitialize(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.OnBeforePlayerDataInitialize( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_OnPlayerLoginOk(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.OnPlayerLoginOk( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ResetModel(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.ResetModel( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ParseFuncConfig(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.ParseFuncConfig( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ParseItemComoundConfig(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.ParseItemComoundConfig( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_AddComposeData(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { TableConfig.ItemCompoundConfig _itemCompound = (TableConfig.ItemCompoundConfig)translator.GetObject(L, 2, typeof(TableConfig.ItemCompoundConfig)); System.Collections.Generic.Dictionary _keyValues = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); gen_to_be_invoked.AddComposeData( _itemCompound, _keyValues ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_UpdateComposeDataByLevel(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.UpdateComposeDataByLevel( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_TryGetFirstTypeData(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { int _firstType = LuaAPI.xlua_tointeger(L, 2); ComposeWinModel.ComposeFirstTypeData _firstTypeData; bool gen_ret = gen_to_be_invoked.TryGetFirstTypeData( _firstType, out _firstTypeData ); LuaAPI.lua_pushboolean(L, gen_ret); translator.Push(L, _firstTypeData); return 2; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_TryGetSecondTypeData(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { int _firstType = LuaAPI.xlua_tointeger(L, 2); int _secondType = LuaAPI.xlua_tointeger(L, 3); ComposeWinModel.ComposeSecondTypeData _secondTypeData; bool gen_ret = gen_to_be_invoked.TryGetSecondTypeData( _firstType, _secondType, out _secondTypeData ); LuaAPI.lua_pushboolean(L, gen_ret); translator.Push(L, _secondTypeData); return 2; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_TryGetThirdTypeData(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) { int _firstType = LuaAPI.xlua_tointeger(L, 2); int _secondType = LuaAPI.xlua_tointeger(L, 3); int _thirdType = LuaAPI.xlua_tointeger(L, 4); System.Collections.Generic.List _thirdTypeDatas; bool gen_ret = gen_to_be_invoked.TryGetThirdTypeData( _firstType, _secondType, _thirdType, out _thirdTypeDatas ); LuaAPI.lua_pushboolean(L, gen_ret); translator.Push(L, _thirdTypeDatas); return 2; } if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) { int _firstType = LuaAPI.xlua_tointeger(L, 2); int _secondType = LuaAPI.xlua_tointeger(L, 3); int _thirdType = LuaAPI.xlua_tointeger(L, 4); ComposeWinModel.ComposeThirdTypeData _thirdTypeData; bool gen_ret = gen_to_be_invoked.TryGetThirdTypeData( _firstType, _secondType, _thirdType, out _thirdTypeData ); LuaAPI.lua_pushboolean(L, gen_ret); translator.Push(L, _thirdTypeData); return 2; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to ComposeWinModel.TryGetThirdTypeData!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetCurComposeModel(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { TableConfig.ItemCompoundConfig _compoundModel = (TableConfig.ItemCompoundConfig)translator.GetObject(L, 2, typeof(TableConfig.ItemCompoundConfig)); gen_to_be_invoked.SetCurComposeModel( _compoundModel ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_UpdateThirdType(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { int _thirdType = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.UpdateThirdType( _thirdType ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_UpdateSecondType(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { int _secondType = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.UpdateSecondType( _secondType ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_UpdateReduce(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { Snxxz.UI.ComposeMatCell _matCell = (Snxxz.UI.ComposeMatCell)translator.GetObject(L, 2, typeof(Snxxz.UI.ComposeMatCell)); NeedMatType _matType;translator.Get(L, 3, out _matType); gen_to_be_invoked.UpdateReduce( _matCell, _matType ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_UpdateComposeEquipPlace(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { TableConfig.ItemCompoundConfig _itemCompound = (TableConfig.ItemCompoundConfig)translator.GetObject(L, 2, typeof(TableConfig.ItemCompoundConfig)); int _equipIndex = LuaAPI.xlua_tointeger(L, 3); gen_to_be_invoked.UpdateComposeEquipPlace( _itemCompound, _equipIndex ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_TryGetIncreaseRateItemIndex(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { TableConfig.ItemCompoundConfig _itemCompound = (TableConfig.ItemCompoundConfig)translator.GetObject(L, 2, typeof(TableConfig.ItemCompoundConfig)); bool _IsIncrease = LuaAPI.lua_toboolean(L, 3); System.Collections.Generic.List _indexlist; bool gen_ret = gen_to_be_invoked.TryGetIncreaseRateItemIndex( _itemCompound, _IsIncrease, out _indexlist ); LuaAPI.lua_pushboolean(L, gen_ret); translator.Push(L, _indexlist); return 2; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_TryGetCountById(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { NeedMatType _matType;translator.Get(L, 2, out _matType); TableConfig.ItemCompoundConfig _itemCompound = (TableConfig.ItemCompoundConfig)translator.GetObject(L, 3, typeof(TableConfig.ItemCompoundConfig)); int _itemId = LuaAPI.xlua_tointeger(L, 4); int _itemCount; bool gen_ret = gen_to_be_invoked.TryGetCountById( _matType, _itemCompound, _itemId, out _itemCount ); LuaAPI.lua_pushboolean(L, gen_ret); LuaAPI.xlua_pushinteger(L, _itemCount); return 2; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_TryGetIdByDisplay(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { NeedMatType _matType;translator.Get(L, 2, out _matType); TableConfig.ItemCompoundConfig _itemCompound = (TableConfig.ItemCompoundConfig)translator.GetObject(L, 3, typeof(TableConfig.ItemCompoundConfig)); int _display = LuaAPI.xlua_tointeger(L, 4); int _itemId; bool gen_ret = gen_to_be_invoked.TryGetIdByDisplay( _matType, _itemCompound, _display, out _itemId ); LuaAPI.lua_pushboolean(L, gen_ret); LuaAPI.xlua_pushinteger(L, _itemId); return 2; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_TryGetItemCompoundByMakeId(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { int __ticketId = LuaAPI.xlua_tointeger(L, 2); TableConfig.ItemCompoundConfig _itemCompound; bool gen_ret = gen_to_be_invoked.TryGetItemCompoundByMakeId( __ticketId, out _itemCompound ); LuaAPI.lua_pushboolean(L, gen_ret); translator.Push(L, _itemCompound); return 2; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_IsComposeJobLimit(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { int _composeId = LuaAPI.xlua_tointeger(L, 2); bool gen_ret = gen_to_be_invoked.IsComposeJobLimit( _composeId ); 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_IsTrailerByLevel(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { TableConfig.ItemCompoundConfig _itemCompound = (TableConfig.ItemCompoundConfig)translator.GetObject(L, 2, typeof(TableConfig.ItemCompoundConfig)); bool gen_ret = gen_to_be_invoked.IsTrailerByLevel( _itemCompound ); 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_GetTicketId(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { int _firstType = LuaAPI.xlua_tointeger(L, 2); int _secondType = LuaAPI.xlua_tointeger(L, 3); int _thirdType = LuaAPI.xlua_tointeger(L, 4); int gen_ret = gen_to_be_invoked.GetTicketId( _firstType, _secondType, _thirdType ); 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_IsEnoughUnfixedMat(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { TableConfig.ItemCompoundConfig _compoundModel = (TableConfig.ItemCompoundConfig)translator.GetObject(L, 2, typeof(TableConfig.ItemCompoundConfig)); bool gen_ret = gen_to_be_invoked.IsEnoughUnfixedMat( _compoundModel ); 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_IsEnoughFixedMat(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { TableConfig.ItemCompoundConfig _config = (TableConfig.ItemCompoundConfig)translator.GetObject(L, 2, typeof(TableConfig.ItemCompoundConfig)); bool gen_ret = gen_to_be_invoked.IsEnoughFixedMat( _config ); 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_IsEnoughMoney(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { TableConfig.ItemCompoundConfig _compoundModel = (TableConfig.ItemCompoundConfig)translator.GetObject(L, 2, typeof(TableConfig.ItemCompoundConfig)); bool gen_ret = gen_to_be_invoked.IsEnoughMoney( _compoundModel ); 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_SendComposeRequest(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 7&& translator.Assignable(L, 2)&& translator.Assignable>>(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)) { TableConfig.ItemCompoundConfig _compoundModel = (TableConfig.ItemCompoundConfig)translator.GetObject(L, 2, typeof(TableConfig.ItemCompoundConfig)); System.Collections.Generic.Dictionary> _fixedItemIndexDict = (System.Collections.Generic.Dictionary>)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary>)); UIEffect _composEffect = (UIEffect)translator.GetObject(L, 4, typeof(UIEffect)); int _composeCount = LuaAPI.xlua_tointeger(L, 5); int _successRate = LuaAPI.xlua_tointeger(L, 6); bool _isIncrease = LuaAPI.lua_toboolean(L, 7); gen_to_be_invoked.SendComposeRequest( _compoundModel, _fixedItemIndexDict, _composEffect, _composeCount, _successRate, _isIncrease ); return 0; } if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable>>(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) { TableConfig.ItemCompoundConfig _compoundModel = (TableConfig.ItemCompoundConfig)translator.GetObject(L, 2, typeof(TableConfig.ItemCompoundConfig)); System.Collections.Generic.Dictionary> _fixedItemIndexDict = (System.Collections.Generic.Dictionary>)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary>)); UIEffect _composEffect = (UIEffect)translator.GetObject(L, 4, typeof(UIEffect)); int _composeCount = LuaAPI.xlua_tointeger(L, 5); int _successRate = LuaAPI.xlua_tointeger(L, 6); gen_to_be_invoked.SendComposeRequest( _compoundModel, _fixedItemIndexDict, _composEffect, _composeCount, _successRate ); return 0; } if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable>>(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) { TableConfig.ItemCompoundConfig _compoundModel = (TableConfig.ItemCompoundConfig)translator.GetObject(L, 2, typeof(TableConfig.ItemCompoundConfig)); System.Collections.Generic.Dictionary> _fixedItemIndexDict = (System.Collections.Generic.Dictionary>)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary>)); UIEffect _composEffect = (UIEffect)translator.GetObject(L, 4, typeof(UIEffect)); int _composeCount = LuaAPI.xlua_tointeger(L, 5); gen_to_be_invoked.SendComposeRequest( _compoundModel, _fixedItemIndexDict, _composEffect, _composeCount ); return 0; } if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable>>(L, 3)&& translator.Assignable(L, 4)) { TableConfig.ItemCompoundConfig _compoundModel = (TableConfig.ItemCompoundConfig)translator.GetObject(L, 2, typeof(TableConfig.ItemCompoundConfig)); System.Collections.Generic.Dictionary> _fixedItemIndexDict = (System.Collections.Generic.Dictionary>)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary>)); UIEffect _composEffect = (UIEffect)translator.GetObject(L, 4, typeof(UIEffect)); gen_to_be_invoked.SendComposeRequest( _compoundModel, _fixedItemIndexDict, _composEffect ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to ComposeWinModel.SendComposeRequest!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SendComposeQuest(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { TableConfig.ItemCompoundConfig _compoundModel = (TableConfig.ItemCompoundConfig)translator.GetObject(L, 2, typeof(TableConfig.ItemCompoundConfig)); UIEffect _composEffect = (UIEffect)translator.GetObject(L, 3, typeof(UIEffect)); byte[] _unfixedIndexArray = LuaAPI.lua_tobytes(L, 4); int _composeCount = LuaAPI.xlua_tointeger(L, 5); bool _isIncrease = LuaAPI.lua_toboolean(L, 6); gen_to_be_invoked.SendComposeQuest( _compoundModel, _composEffect, _unfixedIndexArray, _composeCount, _isIncrease ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_IsBindByFixedAndUnFixedMat(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { System.Collections.Generic.Dictionary> _fixedMat = (System.Collections.Generic.Dictionary>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary>)); System.Collections.Generic.Dictionary> _unfixedMat = (System.Collections.Generic.Dictionary>)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary>)); bool gen_ret = gen_to_be_invoked.IsBindByFixedAndUnFixedMat( _fixedMat, _unfixedMat ); 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_GetBindOrNoBindMinCnt(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { int _minBindCnt; int _minNoBindCnt; gen_to_be_invoked.GetBindOrNoBindMinCnt( out _minBindCnt, out _minNoBindCnt ); LuaAPI.xlua_pushinteger(L, _minBindCnt); LuaAPI.xlua_pushinteger(L, _minNoBindCnt); return 2; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetComposeSuccessRate(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { TableConfig.ItemCompoundConfig _tagItemCompound = (TableConfig.ItemCompoundConfig)translator.GetObject(L, 2, typeof(TableConfig.ItemCompoundConfig)); Snxxz.UI.ItemModel _itemModel = (Snxxz.UI.ItemModel)translator.GetObject(L, 3, typeof(Snxxz.UI.ItemModel)); int _successRate = LuaAPI.xlua_tointeger(L, 4); int gen_ret = gen_to_be_invoked.GetComposeSuccessRate( _tagItemCompound, _itemModel, _successRate ); 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_IsComposeTicketByType(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { int _secondType = LuaAPI.xlua_tointeger(L, 2); bool gen_ret = gen_to_be_invoked.IsComposeTicketByType( _secondType ); 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_CheckComposeItemById(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { int _itemId = LuaAPI.xlua_tointeger(L, 2); int _jumpId; bool gen_ret = gen_to_be_invoked.CheckComposeItemById( _itemId, out _jumpId ); LuaAPI.lua_pushboolean(L, gen_ret); LuaAPI.xlua_pushinteger(L, _jumpId); return 2; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_CheckIsComposeByType(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { int _firstType = LuaAPI.xlua_tointeger(L, 2); int _secondType = LuaAPI.xlua_tointeger(L, 3); int _thirdType = LuaAPI.xlua_tointeger(L, 4); bool gen_ret = gen_to_be_invoked.CheckIsComposeByType( _firstType, _secondType, _thirdType ); 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_SetJumpToModel(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { ComposeFuncType _type;translator.Get(L, 2, out _type); int _secondType = LuaAPI.xlua_tointeger(L, 3); int _thirdType = LuaAPI.xlua_tointeger(L, 4); gen_to_be_invoked.SetJumpToModel( _type, _secondType, _thirdType ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ResetJumpToModel(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.ResetJumpToModel( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetComposeTypeRed(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.SetComposeTypeRed( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_RefreshComposeRed(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.RefreshComposeRed( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_CurComposeModel(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.CurComposeModel); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_secondType(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.secondType); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_thirdType(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.thirdType); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_composeDataDict(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.composeDataDict); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_composeOpenDataDict(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.composeOpenDataDict); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_composeRed(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.composeRed); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_composeBtnRed(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.composeBtnRed); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_composeToolRed(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.composeToolRed); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_secondTypeRedDict(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.secondTypeRedDict); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_thirdTypeRedDict(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.thirdTypeRedDict); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_composeDataDict(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.composeDataDict = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_composeOpenDataDict(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.composeOpenDataDict = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_composeRed(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.composeRed = (Snxxz.UI.Redpoint)translator.GetObject(L, 2, typeof(Snxxz.UI.Redpoint)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_composeBtnRed(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.composeBtnRed = (Snxxz.UI.Redpoint)translator.GetObject(L, 2, typeof(Snxxz.UI.Redpoint)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_composeToolRed(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.composeToolRed = (Snxxz.UI.Redpoint)translator.GetObject(L, 2, typeof(Snxxz.UI.Redpoint)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_secondTypeRedDict(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.secondTypeRedDict = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_thirdTypeRedDict(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.thirdTypeRedDict = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _e_ResetModelEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)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.ResetModelEvent += gen_delegate; return 0; } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.ResetModelEvent -= 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 ComposeWinModel.ResetModelEvent!"); return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _e_UpdateThirdTypeEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)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.UpdateThirdTypeEvent += gen_delegate; return 0; } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.UpdateThirdTypeEvent -= 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 ComposeWinModel.UpdateThirdTypeEvent!"); return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _e_UpdateSecondTypeEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)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.UpdateSecondTypeEvent += gen_delegate; return 0; } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.UpdateSecondTypeEvent -= 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 ComposeWinModel.UpdateSecondTypeEvent!"); return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _e_UpdateReduceEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)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.UpdateReduceEvent += gen_delegate; return 0; } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.UpdateReduceEvent -= 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 ComposeWinModel.UpdateReduceEvent!"); return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _e_UpdateEquipTypeEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); ComposeWinModel gen_to_be_invoked = (ComposeWinModel)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.UpdateEquipTypeEvent += gen_delegate; return 0; } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.UpdateEquipTypeEvent -= 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 ComposeWinModel.UpdateEquipTypeEvent!"); return 0; } } }