public void Given_A_Game() { var factory = new PlayerModelFactory(OneFrame, NumberOfPins); var repository = new PlayerRepository(factory); _game = new Game(repository, OneFrame); _game.AddPlayer(TheDude); }
private void CreatePlayer() { Debug.Log("Game Controller CreatePlayer running"); var playerView = player.GetComponent <PlayerView>(); if (playerView == null) { Debug.Log("couldn't locate PlayerView in main menu"); } PlayerModelFactory PlayerModelFactory = new PlayerModelFactory(); PlayerModelFactory.Model.Id = new Guid("11111111-1111-1111-1111-111111111112"); PlayerModelFactory.Model.Position = new WGVector3(); PlayerControllerBuilder PlayerControllerBuilder = new PlayerControllerBuilder(PlayerModelFactory.Model, playerView); IPlayerControllerOptions options = new PlayerControllerOptions(); if (Debug.isDebugBuild) { options.Uri = new Uri("https://marblemotiondev.wolfgamesllc.com/api/players/"); } if (Application.isEditor) { options.Uri = new Uri("https://localhost:44340/api/players/"); } options.Uri = new Uri("https://localhost:44340/api/players/"); IHttpClientService httpClient = new HttpClientService(mainMenu.GetComponent <NonAsyncHttpClient>(), new UnityJsonConverter()); Debug.Log("cookie = {" + httpClient.HandleGetCookieClicked() + "}"); PlayerControllerBuilder.Configure(options).ConfigureHttpClientService(httpClient).Build(); }