Exemplo n.º 1
0
	public void Request_Enter(UInt32 _shopUId, string _name, byte[] _content)
	{
		if( true == AsPvpManager.Instance.CheckMatching() || true == AsPvpManager.Instance.CheckInArena())
			return;

		if( true == AsInstanceDungeonManager.Instance.CheckMatching() || true == AsInstanceDungeonManager.Instance.CheckInIndun())
			return;

		if( false == s_IsSendCS_PRIVATESHOP_ENTER )
			return;
		
		body_CS_PRIVATESHOP_ENTER enter = new body_CS_PRIVATESHOP_ENTER(_shopUId);
		AsCommonSender.Send(enter.ClassToPacketBytes());
		s_IsSendCS_PRIVATESHOP_ENTER = false;
		
		m_CurShopUId = _shopUId;
		m_strTitle = string.Format(AsTableManager.Instance.GetTbl_String(1231), _name);
		SetContent(_content);
		
		Debug.Log("AsPStoreManager::Request_Enter: shop uid = " + enter.nPrivateShopUID);
		Debug.Log("AsPStoreManager::Request_Enter: m_strContent = " + m_strContent);
	}
Exemplo n.º 2
0
	void SendPurchaseInfo()
	{
		body_CS_PRIVATESHOP_ENTER enter = new body_CS_PRIVATESHOP_ENTER( m_SavedSlot.SearchInfo.nPrivateShopUID);
		AsCommonSender.Send(enter.ClassToPacketBytes());
		
		body_CS_PRIVATESHOP_ITEMBUY buy = new body_CS_PRIVATESHOP_ITEMBUY( m_SavedSlot.SearchInfo.nPrivateShopUID,
			m_SavedSlot.SearchInfo.nPrivateShopSlot, (byte)m_SavedCount);
		AsPStoreManager.Instance.Request_ItemBuy(buy);
		
		body_CS_PRIVATESHOP_LEAVE leave = new body_CS_PRIVATESHOP_LEAVE( m_SavedSlot.SearchInfo.nPrivateShopUID);
		AsCommonSender.Send(leave.ClassToPacketBytes());
	}