Farkle.Core.FarkleService.StartNewGame C# (CSharp) Méthode

StartNewGame() public méthode

public StartNewGame ( GameSetup setup ) : GameState
setup GameSetup
Résultat GameState
        public GameState StartNewGame(GameSetup setup)
        {
            return new GameState();
        }

Usage Example

 public ActionResult NewGame(GameSetup setup)
 {
     var service = new FarkleService();
     var gameState = service.StartNewGame(setup);
     //return View("Play", gameState);
     return null;
 }