| | |
| | | ItemOperateType _btnType;translator.Get(L, 2, out _btnType); |
| | | string _guid = LuaAPI.lua_tostring(L, 3); |
| | | |
| | | gen_to_be_invoked.PutOnItem( _btnType, _guid ); |
| | | gen_to_be_invoked.PutOnItem( _guid ); |
| | | |
| | | |
| | | |
| | |
| | | int _equipPlace = LuaAPI.xlua_tointeger(L, 2); |
| | | int _itemIndex = LuaAPI.xlua_tointeger(L, 3); |
| | | Snxxz.UI.ItemModel _oldItem = (Snxxz.UI.ItemModel)translator.GetObject(L, 4, typeof(Snxxz.UI.ItemModel)); |
| | | |
| | | gen_to_be_invoked.PutOnEquip( _equipPlace, _itemIndex, _oldItem ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_selectedItem(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.ItemOperateUtility gen_to_be_invoked = (Snxxz.UI.ItemOperateUtility)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.selectedItem); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |