| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.RewardPreviewGroup); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 2, 0, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 3, 0, 0); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Display", _m_Display); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "LuaDisplay", _m_LuaDisplay); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Hide", _m_Hide); |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_LuaDisplay(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.RewardPreviewGroup gen_to_be_invoked = (Snxxz.UI.RewardPreviewGroup)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 2&& translator.Assignable<int[]>(L, 2)) |
| | | { |
| | | int[] _itemIds = (int[])translator.GetObject(L, 2, typeof(int[])); |
| | | |
| | | gen_to_be_invoked.LuaDisplay( _itemIds ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | if(gen_param_count == 3&& translator.Assignable<int[]>(L, 2)&& translator.Assignable<int[]>(L, 3)) |
| | | { |
| | | int[] _itemIds = (int[])translator.GetObject(L, 2, typeof(int[])); |
| | | int[] _itemCounts = (int[])translator.GetObject(L, 3, typeof(int[])); |
| | | |
| | | gen_to_be_invoked.LuaDisplay( _itemIds, _itemCounts ); |
| | | |
| | | |
| | | |
| | | 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.RewardPreviewGroup.LuaDisplay!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Hide(RealStatePtr L) |
| | | { |
| | | try { |