Exemple #1
0
        public static void Main(string[] args)
        {
            bool benchmark = args.Length > 0 && args[0] == @"-benchmark";

            BasicGameHost host = Host.GetSuitableHost();

            if (benchmark)
            {
                host.Add(new Benchmark());
            }
            else
            {
                host.Add(new VisualTestGame());
            }
            host.Run();
        }
Exemple #2
0
        public static void Main(string[] args)
        {
            BasicGameHost host = Host.GetSuitableHost(@"osu-visual-tests");

            host.Add(new VisualTestGame());
            host.Run();
        }
Exemple #3
0
 public static void Main()
 {
     using (BaseGame game = new SampleGame())
         using (BasicGameHost host = Host.GetSuitableHost(@"sample-game"))
         {
             host.Add(game);
             host.Run();
         }
 }
Exemple #4
0
        private OsuGameBase loadOsu(BasicGameHost host)
        {
            var osu = new OsuGameBase();

            host.Add(osu);

            //reset beatmap database (sqlite and storage backing)
            osu.Beatmaps.Reset();

            return(osu);
        }
Exemple #5
0
        public static void Main(string[] args)
        {
            using (BasicGameHost host = Host.GetSuitableHost(@"osu-visual-tests"))
            {
                Ruleset.Register(new OsuRuleset());
                Ruleset.Register(new TaikoRuleset());
                Ruleset.Register(new ManiaRuleset());
                Ruleset.Register(new CatchRuleset());

                host.Add(new VisualTestGame());
                host.Run();
            }
        }
Exemple #6
0
        public static void Main(string[] args)
        {
            bool benchmark = args.Length > 0 && args[0] == @"-benchmark";

            using (BasicGameHost host = Host.GetSuitableHost(@"osu"))
            {
                Ruleset.Register(new OsuRuleset());
                Ruleset.Register(new TaikoRuleset());
                Ruleset.Register(new ManiaRuleset());
                Ruleset.Register(new CatchRuleset());

                if (benchmark)
                {
                    host.Add(new Benchmark());
                }
                else
                {
                    host.Add(new VisualTestGame());
                }
                host.Run();
            }
        }
Exemple #7
0
        private OsuGameBase loadOsu(BasicGameHost host)
        {
            var osu = new OsuGameBase();

            host.Add(osu);

            while (!osu.IsLoaded)
            {
                Thread.Sleep(1);
            }

            //reset beatmap database (sqlite and storage backing)
            osu.Beatmaps.Reset();

            return(osu);
        }
Exemple #8
0
        private OsuGameBase loadOsu(BasicGameHost host)
        {
            var osu = new OsuGameBase();
            host.Add(osu);

            while (!osu.IsLoaded)
                Thread.Sleep(1);

            //reset beatmap database (sqlite and storage backing)
            osu.Dependencies.Get<BeatmapDatabase>().Reset();

            return osu;
        }