public void Draw(ITickEvent tickEvent) { IsDrawing = true; Systems.Draw(tickEvent); IsDrawing = false; }
/// <summary> /// This is called when the game should draw itself. /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> protected override void Draw(GameTime gameTime) { _frameCounter.Update((float)gameTime.ElapsedGameTime.TotalSeconds); graphics.GraphicsDevice.Clear(_screen.BackgroundColor); _screen.Draw(spriteBatch); Systems.Draw(spriteBatch, _entities); _screen.DrawAfterEntities(spriteBatch); base.Draw(gameTime); }