Example #1
0
 public void SetPlayerLabelCoordinates(PlayerLabelCoordinatesDto coords)
 {
     UpdatePlayerProperties(coords.Name, player =>
     {
         player.Label.X = coords.X;
         player.Label.Y = coords.Y;
     });
 }
Example #2
0
 public IActionResult SetPlayerLabelCoordinates([Required][FromBody] PlayerLabelCoordinatesDto coords)
 {
     _gameFieldService.SetPlayerLabelCoordinates(coords);
     return(Ok());
 }