Example #1
0
        public PokeEngine(Configuration.Configuration config)         {
            config.CheckNull("config");
            Registry = new AutofacModuleRegistry();
            factory = new GraphicResources(config, Content);

            new GraphicsDeviceManager(this);

            Window.AllowUserResizing = true;
            

            Content.RootDirectory = "Content";

            Registry.RegisterModule(new GameEngineModule(factory, this));
        }
Example #2
0
 public GameEngineModule(GraphicResources resources, PokeEngine engine)
 {
     this.engine = engine;
     this.resources = resources;
 }