//Allow other classes to remove their light from the lighting queue public void removeLight(LightingController.LightSource light) { lighting.Remove(light); }
/// <summary> /// Load game content. /// </summary> protected override void LoadContent() { // Initialise game object containers. gameObjects = new List<GameObject>(); addedGameObjects = new Stack<GameObject>(); removedGameObjects = new Stack<GameObject>(); // Create game objects. worldBase = new Land(this, this.size); gameObjects.Add(worldBase); ocean = new Ocean(this, this.size); gameObjects.Add(ocean); lighting = new LightingController(this); gameObjects.Add(lighting); player = new Player(this); gameObjects.Add(player); controller = new EnemyController(this); gameObjects.Add(controller); base.LoadContent(); }
//Allow other classes to add a light to the lighting queue public void addLight(LightingController.LightSource light) { lighting.Add(light); }