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