Commit 2621e052 authored by Colomban Wendling's avatar Colomban Wendling
Browse files

Forbid changing a player's nick

It's not a good idea a player can change her nickname after it was
accepted by the game, so disable this.
parent 865e4373
......@@ -27,7 +27,7 @@ namespace OVCC
public PlayerID id { get; private set; }
public uint score { get; private set; }
[Description (nick = "Nick", blurb = "Player's nickname")]
public string nick { get; set; default = "Anonymous"; }
public string nick { get; construct; default = "Anonymous"; }
public Player (string nick)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment