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