public Demo() { renderGroup = new QueuedList<IRenderable>(); gameObjects = new QueuedList<IGameEntity>(); modelEntityFactory = new ModelEntityFactory(); Random = new Random(); ForceRegistry = new ForceRegistry(); }
public Demo( ContentManager contentManager, RenderContext renderContext, QueuedList<IRenderable> renderGroup, QueuedList<IGameEntity> gameObjects) : base() { content = contentManager; this.renderContext = renderContext; this.renderGroup = renderGroup; this.gameObjects = gameObjects; ForceRegistry = new ForceRegistry(); }
public override void LoadContent() { if (renderContext == null) { SetupRenderContextAndCamera(); } if (content == null) { content = this.ScreenManager.Game.Content; } if (ForceRegistry == null) { ForceRegistry = new ForceRegistry(); } MEFactory.LoadContent(Content); }