sgolodetz/game1666 — Issue #44: Refactor the SceneGraph singleton
Author: sgolodetz
Created: 2012-01-21 21:32:41+00:00
State: open
Labels: Refactoring, Urgent

There are three singletons in the code: Renderer, BlueprintManager and SceneGraph. Of these, the first two seem fair enough, but SceneGraph doesn't need to be a singleton. It's only actually used by the UI to access specific model elements by name (which is a reasonable thing to do), so the damage isn't especially great, but it would be better to pass a reference to it into the view hierarchy instead.