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