public IActionResult SetCardRotation([Required][FromBody] CardParamDto <int> model) { _gameFieldService.SetCardRotation(model); return(Ok()); }
public IActionResult SetCardOwner([Required][FromBody] CardParamDto <string> model) { _gameFieldService.SetCardOwner(model); return(Ok()); }
public IActionResult SetCardIsThrown([Required][FromBody] CardParamDto <bool> model) { _gameFieldService.SetCardIsThrown(model); return(Ok()); }
public void SetCardIsThrown(CardParamDto <bool> model) { UpdateCardProperties(model.Id, card => card.IsThrown = model.Value); }
public void SetCardOwner(CardParamDto <string> model) { UpdateCardProperties(model.Id, card => card.Owner = model.Value); }
public void SetCardRotation(CardParamDto <int> model) { UpdateCardProperties(model.Id, card => card.Rotation = model.Value % 360); }