jmdejong / Asciifarm

Multiplayer ascii-graphics based RPG/farming game
GNU General Public License v3.0
65 stars 4 forks source link

messages to client and chat colours #7

Closed jmdejong closed 5 years ago

jmdejong commented 6 years ago

Currently the server just send full text messages to the client, which are then printed without disticntion to the client. It would be better if the server would send some kind of more specific messages for chat, combat etc. so the client can choose for it self how to display the messages.

The server should still send some text to the client as default of for if the message is unknown.

Having this would also allow the client to display coloured messages, which would be a great addition.

jmdejong commented 5 years ago

The server now sends the type of message along with the text, and teh client colours different messages differently.