Add method to check if IGlobalModData exists.
This commit is contained in:
@@ -169,6 +169,11 @@ namespace OpenRA
|
||||
return new ReadOnlyDictionary<string, string>(inner);
|
||||
}
|
||||
|
||||
public bool Contains<T>() where T : IGlobalModData
|
||||
{
|
||||
return modules.Contains<T>();
|
||||
}
|
||||
|
||||
public T Get<T>() where T : IGlobalModData
|
||||
{
|
||||
var module = modules.GetOrDefault<T>();
|
||||
|
||||
Reference in New Issue
Block a user