Made SheetBuilder rely on global settings rather than global renderer.

Additionally exposed an InitializeSettings method on game to initialize the global settings so that other classes can set up all the secret dependencies on the global settings required.
This commit is contained in:
RoosterDragon
2014-12-07 17:28:01 +00:00
parent 9cbac2d5e1
commit b28d999131
5 changed files with 17 additions and 13 deletions

View File

@@ -46,7 +46,7 @@ namespace OpenRA.Graphics
}
public SheetBuilder(SheetType t)
: this(t, Game.Renderer.SheetSize) { }
: this(t, Game.Settings.Graphics.SheetSize) { }
public SheetBuilder(SheetType t, int sheetSize)
: this(t, () => AllocateSheet(sheetSize)) { }