public string SendToGroupClient(SendToGroupClientReq para, Action <ResponseEvent> callback) { const int subcmd = (int)ProtoCmd.ECmdGroupChatReq; var response = new NetResponseCallback(SendToGroupClientResponse); var seq = this.Send(para, subcmd, response, callback); Debugger.Log("SendToGroupClient_Para {0} {1}", para, seq); return(seq); }
public void SendToGroupClient(SendToGroupClientPara para, Action <ResponseEvent> callback) { SendToGroupClientReq req = new SendToGroupClientReq { GroupId = this.GroupInfo.Id, RecvType = para.RecvType, Msg = para.Msg }; req.RecvPlayerList.AddRange(para.RecvPlayerList); Action <ResponseEvent> cb = eve => { callback?.Invoke(eve); }; Core.Group.SendToGroupClient(req, cb); }