public override bool ParseDataFromNDT(TsDataReader dr)
	{
		foreach (TsDataReader.Row data in dr)
		{
			Friend_InvitePersonCnt friend_InvitePersonCnt = new Friend_InvitePersonCnt();
			friend_InvitePersonCnt.SetData(data);
			Friend_InvitePersonManager.Get_Instance().Add(friend_InvitePersonCnt);
		}
		return true;
	}
Example #2
0
    public void REQ_INVITE_FRIEND()
    {
        NrMyCharInfo kMyCharInfo      = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;
        int          limitFriendCount = BASE_FRIENDCOUNTLIMIT_DATA.GetLimitFriendCount((short)kMyCharInfo.GetLevel());

        if (kMyCharInfo.m_kFriendInfo.GetFriendCount() >= limitFriendCount)
        {
            return;
        }
        if (Friend_InvitePersonManager.Get_Instance().IsAble_InvitePerson(kMyCharInfo.GetLevel(), kMyCharInfo.m_kFriendInfo.GetFriendCount()))
        {
            GS_GUIDE_INVITE_FRIEND_REQ gS_GUIDE_INVITE_FRIEND_REQ = new GS_GUIDE_INVITE_FRIEND_REQ();
            gS_GUIDE_INVITE_FRIEND_REQ.ui8ReqType = 0;
            SendPacket.GetInstance().SendObject(912, gS_GUIDE_INVITE_FRIEND_REQ);
        }
    }