예제 #1
0
        private static void Main(string[] args)
        {
            var startModule = "BattleModule";
            if (args.Length != 0)
                startModule = args[0];

            var config = new Configuration();
            var engine = new PokeEngine(config);

            engine.Registry.RegisterModule(new PokemonGameModule());
            engine.Registry.RegisterModule(new BattleModule(engine));
            engine.Registry.RegisterModule(new MainModule.MainModule(CreateDummyMap()));
            engine.SetStartModule(startModule);
            engine.Run();
        }