public string RemoveGroupPlayer(RemoveGroupPlayerReq para, Action <ResponseEvent> callback) { const int subcmd = (int)ProtoCmd.ECmdRemoveGroupMemberReq; var response = new NetResponseCallback(RemoveGroupPlayerResponse); var seq = this.Send(para, subcmd, response, callback); Debugger.Log("RemoveGroupPlayer_Para {0} {1}", para, seq); return(seq); }
public void RemoveGroupPlayer(RemoveGroupPlayerPara para, Action <ResponseEvent> callback) { RemoveGroupPlayerReq removeGroupPlayerReq = new RemoveGroupPlayerReq { GroupId = this.GroupInfo.Id, RemovePlayerId = para.RemovePlayerId }; Action <ResponseEvent> cb = eve => { this.GroupUtil.SaveGroupInfo(eve, ((RemoveGroupPlayerRsp)eve.Data)?.GroupInfo); callback?.Invoke(eve); }; Core.Group.RemoveGroupPlayer(removeGroupPlayerReq, cb); }