public void RequestDelFriend(long player_id_)
        {
            CSFriendDelRequest req = new CSFriendDelRequest();

#if !NETWORK_SYNC || UNITY_EDITOR
            this.OnScAsyncRequest(req, player_id_);
#else
            this.OnScRequest(req, player_id_);
#endif
        }
        public override void OnPackageRequest(IMessage imsg, params object[] msg_params)
        {
            base.OnPackageRequest(imsg, msg_params);

            if (imsg is CSFriendRequest)
            {
                FriendReqType   r_type = (FriendReqType)(msg_params[0]);
                CSFriendRequest req    = imsg as CSFriendRequest;
                req.Type = r_type;
            }
            else if (imsg is CSFriendAddRequest)
            {
                CSFriendAddRequest req = imsg as CSFriendAddRequest;
                req.PlayerId = (long)(msg_params[0]);
            }
            else if (imsg is CSFriendDelRequest)
            {
                CSFriendDelRequest req = imsg as CSFriendDelRequest;
                req.PlayerId = (long)(msg_params[0]);
            }
            else if (imsg is CSFriendAgreeRequest)
            {
                CSFriendAgreeRequest req = imsg as CSFriendAgreeRequest;
                req.PlayerId = (long)(msg_params[0]);
            }
            else if (imsg is CSFriendDelApplyRequest)
            {
                CSFriendDelApplyRequest req = imsg as CSFriendDelApplyRequest;
                req.FriendId = (long)(msg_params[0]);
            }
            else if (imsg is CSFriendGiftRequest)
            {
                CSFriendGiftRequest req = imsg as CSFriendGiftRequest;
            }
            else if (imsg is CSFriendGiftSendRequest)
            {
                CSFriendGiftSendRequest req = imsg as CSFriendGiftSendRequest;
                req.FriendId = (long)(msg_params[0]);
            }
            else if (imsg is CSFriendGiftDrawRequest)
            {
                CSFriendGiftDrawRequest req = imsg as CSFriendGiftDrawRequest;
                req.GiftId = (long)(msg_params[0]);
            }
            else if (imsg is CSFriendViewRequest)
            {
                CSFriendViewRequest req = imsg as CSFriendViewRequest;
                req.FriendId = (long)(msg_params[0]);
            }
            else if (imsg is CSFriendRecommendListRequest)
            {
            }
            else if (imsg is CSFriendRecommendGetRequest)
            {
                CSFriendRecommendGetRequest req = imsg as CSFriendRecommendGetRequest;
                req.RecommendId = (long)(msg_params[0]);
            }
            else if (imsg is CSFriendRecommendApplyRequest)
            {
                CSFriendRecommendApplyRequest req = imsg as CSFriendRecommendApplyRequest;
                req.RecommendId.AddRange((List <long>)(msg_params[0]));
            }
        }