public void Draw(GameTime gameTime, GameObjectList gameObjects) { foreach (var system in _drawSystems) { system.Method(gameTime, system.RequiredComponents.Length == 0 ? gameObjects : gameObjects.All(system.RequiredComponents)); } foreach (var subScene in _subScenes) { subScene.Draw(gameTime, gameObjects); } }
public Scene PopSubScene(GameObjectList gameObjects) { _subScenes.Peek().Exit(gameObjects); return(_subScenes.Pop()); }
public void PushSubScene(Scene subScene, GameObjectList gameObjects) { _subScenes.Push(subScene); subScene.Enter(gameObjects); }