| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(ComposeWinModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 46, 10, 7); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 47, 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, "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, "GetPackTypeByMakerId", _m_GetPackTypeByMakerId); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUpdateSendComposeEvent", _m_SetUpdateSendComposeEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsComposeJobLimit", _m_IsComposeJobLimit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsTrailerByLevel", _m_IsTrailerByLevel); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetPackTypeByMakerId(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | ComposeWinModel gen_to_be_invoked = (ComposeWinModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int[] _makeIds = (int[])translator.GetObject(L, 2, typeof(int[])); |
| | | |
| | | PackType gen_ret = gen_to_be_invoked.GetPackTypeByMakerId( _makeIds ); |
| | | 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_SetUpdateSendComposeEvent(RealStatePtr L) |
| | | { |
| | | try { |