protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); assets = new AssetStore(Content, GraphicsDevice, new AnimationFactory()); postProcessEffect = Content.Load <Effect>("effects/PostProcess"); effects = new Effects(Content.Load <Effect>("effects/SolidThing"), Content.Load <Effect>("effects/SpiritRealm"), Content.Load <Effect>("effects/Background")); emitterFactory = new ParticleEmitterFactory(assets); world = new World(new EntityFactory(assets), new RoomBackground(assets.BrickTile, assets.TorchLight, new Vector2(4000, 4000), spriteBatch), // Hack emitterFactory); }
public ParticleEmitterFactory(AssetStore assets) { this.assets = assets; }
public EntityFactory(AssetStore assets) { this.assets = assets; }