Show links embedded in chat

Allows clicking if supported by terminal,
or at least copy and paste to web browser.

Suggestion by brkmrr9 in #207
This commit is contained in:
ORelio 2016-10-07 19:52:28 +02:00
parent 9cd983c50d
commit 1180c06b1f
6 changed files with 59 additions and 28 deletions

View file

@ -34,7 +34,9 @@ namespace MinecraftClient.Protocol
/// <summary>
/// This method is called when the protocol handler receives a chat message
/// </summary>
void OnTextReceived(string text);
/// <param name="text">Text received from the server</param>
/// <param name="links">Links embedded in text (for click events)</param>
void OnTextReceived(string text, IEnumerable<string> links);
/// <summary>
/// This method is called when a new player joins the game