void TryRemovePStoreItem(UIPStoreSlot pstoreSlot) { body_CS_PRIVATESHOP_REGISTRATION_ITEM register = new body_CS_PRIVATESHOP_REGISTRATION_ITEM( false, pstoreSlot.InvenIdx, (byte)pstoreSlot.slotIndex, (short)pstoreSlot.slotItem.realItem.sItem.nOverlapped, pstoreSlot.gold); // AsCommonSender.Send(register.ClassToPacketBytes()); AsPStoreManager.Instance.Request_Registraion_Item(register); }
public void Request_Registraion_Item(body_CS_PRIVATESHOP_REGISTRATION_ITEM _registration) { AsCommonSender.Send(_registration.ClassToPacketBytes()); Debug.Log("ItemReleasedOnPStoreDlg: packet send. start slot index = " + _registration.nInvenSlot + ", dest slot index = " + _registration.nPrivateShopSlot + ", count = " + _registration.nItemCount); }
void StoreGoods_OkBtnClick_(int _idx, int _quantity, UInt64 _gold, int _slotIndex) { body_CS_PRIVATESHOP_REGISTRATION_ITEM registration = new body_CS_PRIVATESHOP_REGISTRATION_ITEM(true, _slotIndex, (byte)_idx, (Int16)_quantity, _gold); RealItem _realItem = ItemMgr.HadItemManagement.Inven.GetRealItemInSlot( _slotIndex ); if( null != _realItem ) AsSoundManager.Instance.PlaySound( _realItem.item.ItemData.getStrDropSound, Vector3.zero, false); AsPStoreManager.Instance.Request_Registraion_Item(registration); }