Remove reference to Game.modData
This commit is contained in:
@@ -22,10 +22,12 @@ namespace OpenRA.Graphics
|
|||||||
Dictionary<string, CursorSequence> cursors;
|
Dictionary<string, CursorSequence> cursors;
|
||||||
Cache<string, PaletteReference> palettes;
|
Cache<string, PaletteReference> palettes;
|
||||||
|
|
||||||
public Action OnProgress = () => { if (Game.modData != null && Game.modData.LoadScreen != null) Game.modData.LoadScreen.Display(); };
|
public Action OnProgress;
|
||||||
|
|
||||||
public CursorProvider(ModData modData)
|
public CursorProvider(ModData modData)
|
||||||
{
|
{
|
||||||
|
OnProgress = () => { if (modData.LoadScreen != null) modData.LoadScreen.Display(); };
|
||||||
|
|
||||||
var sequenceFiles = modData.Manifest.Cursors;
|
var sequenceFiles = modData.Manifest.Cursors;
|
||||||
|
|
||||||
cursors = new Dictionary<string, CursorSequence>();
|
cursors = new Dictionary<string, CursorSequence>();
|
||||||
|
|||||||
Reference in New Issue
Block a user