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