示例#1
0
	void FriendInvite( byte[] _packet)
	{
		if( false == AsGameMain.GetOptionState( OptionBtnType.OptionBtnType_FriendInviteRefuse))
			return;
		
		body_SC_FRIEND_INVITE invite = new body_SC_FRIEND_INVITE();
		invite.PacketBytesToClass( _packet);
		AsSocialManager.Instance.FriendInvite( invite);

		#if _SOCIAL_LOG_
		Debug.Log( "FriendInvite nUserUniqKey: " + invite.nUserUniqKey.ToString());
		#endif
	}
示例#2
0
	public void FriendInvite( body_SC_FRIEND_INVITE invite)
	{
		string userName = AsUtil.GetRealString( System.Text.UTF8Encoding.UTF8.GetString( invite.szCharName));
		if( m_MsgBox_FriendInvite == null)
		{
			string strMsg = string.Format( AsTableManager.Instance.GetTbl_String( 165), userName);
			m_MsgBox_FriendInvite = AsNotify.Instance.MessageBox( AsTableManager.Instance.GetTbl_String( 1203), strMsg, this, "OnMsgBox_FriendInvite_Ok", "OnMsgBox_FriendInvite_Cancel", AsNotify.MSG_BOX_TYPE.MBT_OKCANCEL, AsNotify.MSG_BOX_ICON.MBI_QUESTION);
			m_invite = invite;
		}
		else
		{
			AsCommonSender.SendFriendJoin( userName, invite.nUserUniqKey, eFRIEND_JOIN_TYPE.eFRIEND_JOIN_BUSY);
		}
	}