private static void ExtendConfiguration(Configuration c) { c.SetProperty("generate_statistics", "true"); }
public void Play() { SelectDeck.ViewModel selectDeck1 = null; SelectDeck.ViewModel selectDeck2 = null; var configuration1 = new Configuration { ScreenTitle = "Select your deck", ForwardText = "Next", PreviousScreen = this, Forward = (deck1) => { if (selectDeck2 == null) { selectDeck2 = ViewModels.SelectDeck.Create(new Configuration { ScreenTitle = "Select your opponent deck", ForwardText = "Start the game", PreviousScreen = selectDeck1, Forward = (deck2) => { try { var mp = MatchParameters.Default( player1: new PlayerParameters { Name = YourName, AvatarId = RandomEx.Next(), Deck = deck1 }, player2: new PlayerParameters { Name = NameGenerator.GenerateRandomName(MediaLibrary.GetPlayerUnitNames()), AvatarId = RandomEx.Next(), Deck = deck2 }, isTournament: false); Ui.Match = new Match(mp); Ui.Match.Start(); } catch (Exception ex) { HandleException(ex); } Shell.ChangeScreen(this); } }); } Shell.ChangeScreen(selectDeck2); } }; selectDeck1 = ViewModels.SelectDeck.Create(configuration1); Shell.ChangeScreen(selectDeck1); }
private static void BuildSchema(Configuration configuration) { new SchemaExport(configuration).Execute(true, true, false); }