示例#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();
        }
示例#2
0
 public GameEngineModule(GraphicResources resources, PokeEngine engine)
 {
     this.engine = engine;
     this.resources = resources;
 }