Beispiel #1
0
        public static void Main()
        {
            BasicGameHost host = Host.GetSuitableHost();

            host.Load(new SampleGame());
            host.Run();
        }
Beispiel #2
0
        public static void Main()
        {
            BasicGameHost host = Host.GetSuitableHost();

            host.Load(new VisualTestGame());
            host.Run();
        }
Beispiel #3
0
        public static void Main(string[] args)
        {
            BasicGameHost host = Host.GetSuitableHost(@"osu-visual-tests");

            host.Add(new VisualTestGame());
            host.Run();
        }
Beispiel #4
0
 public static void Main()
 {
     using (BaseGame game = new SampleGame())
         using (BasicGameHost host = Host.GetSuitableHost(@"sample-game"))
         {
             host.Add(game);
             host.Run();
         }
 }
Beispiel #5
0
 public static void Main()
 {
     using (Game game = new SampleGame())
         using (BasicGameHost host = Host.GetSuitableHost())
         {
             host.Load(game);
             host.Run();
         }
 }
Beispiel #6
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();
            }
        }
Beispiel #7
0
        public static void Main(string[] args)
        {
            bool benchmark = args.Length > 0 && args[0] == @"-benchmark";

            BasicGameHost host = Host.GetSuitableHost();

            if (benchmark)
            {
                host.Load(new Benchmark());
            }
            else
            {
                host.Load(new VisualTestGame());
            }
            host.Run();
        }
Beispiel #8
0
        public static void Main(string[] args)
        {
            bool benchmark = args.Length > 0 && args[0] == @"-benchmark";

            using (BasicGameHost host = Host.GetSuitableHost(@"visual-tests"))
            {
                if (benchmark)
                {
                    host.Add(new Benchmark());
                }
                else
                {
                    host.Add(new VisualTestGame());
                }
                host.Run();
            }
        }
Beispiel #9
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();
            }
        }