Exemplo n.º 1
0
        public void Update(Player updatedPlayer)
        {
            var player = this.Get(updatedPlayer.Id);
            player.Name = updatedPlayer.Name;
            player.Rank = updatedPlayer.Rank;
            player.SkillLevel = updatedPlayer.SkillLevel;

        }
Exemplo n.º 2
0
 public void Post(Player player)
 {
     player.Id = nextPlayerID++;
     players.Add(player);
 }