public override Task <ChatAck> SendChat(ChatReq request, ServerCallContext context) { chatAdapter.AddMessage(request.Header.PlayerID, request.Content); return(Task.FromResult(new ChatAck { Content = request.Content })); }
public void CLIENT2LOBBY_SendMessage_REQ(ChatInfo info) { ChatReq req = new ChatReq(); req.chatType = (int)info.chatType; req.revRoleName = info.talkerName; req.content = info.content; //ChatProxy.instance.AddChatInfo(info); //ChatProxy.instance.UpdateChatByProtocol(info.isMe ); Protocol.ProtocolProxy.instance.SendProtocol(req); }