Remove redundant placeholder world definition.
Co-Authored-By: Gustas Kažukauskas <37534529+punkpun@users.noreply.github.com>
This commit is contained in:
committed by
Matthias Mailänder
parent
a66feafa3f
commit
d2780382bc
@@ -24,6 +24,15 @@ namespace OpenRA
|
|||||||
ArgumentNullException.ThrowIfNull(dict);
|
ArgumentNullException.ThrowIfNull(dict);
|
||||||
|
|
||||||
this.dict = new Dictionary<string, ActorInfo>(dict);
|
this.dict = new Dictionary<string, ActorInfo>(dict);
|
||||||
|
|
||||||
|
// Include an empty entry for each system actor to guarantee that
|
||||||
|
// they will be defined even if not specified in the mod yaml
|
||||||
|
foreach (var systemActor in Enum.GetValues<SystemActors>())
|
||||||
|
{
|
||||||
|
var key = systemActor.ToString().ToLowerInvariant();
|
||||||
|
if (!dict.ContainsKey(key))
|
||||||
|
this.dict[key] = new ActorInfo(key);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool ContainsKey(string key) => dict.ContainsKey(key);
|
public bool ContainsKey(string key) => dict.ContainsKey(key);
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ FileSystem: DefaultFileSystem
|
|||||||
$cnc-content: cnccontent
|
$cnc-content: cnccontent
|
||||||
|
|
||||||
Rules:
|
Rules:
|
||||||
content|rules.yaml
|
|
||||||
|
|
||||||
Cursors:
|
Cursors:
|
||||||
content|cursors.yaml
|
content|cursors.yaml
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
World:
|
|
||||||
@@ -11,7 +11,6 @@ FileSystem: DefaultFileSystem
|
|||||||
$d2k-content: d2kcontent
|
$d2k-content: d2kcontent
|
||||||
|
|
||||||
Rules:
|
Rules:
|
||||||
content|rules.yaml
|
|
||||||
|
|
||||||
Cursors:
|
Cursors:
|
||||||
content|cursors.yaml
|
content|cursors.yaml
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ FileSystem: DefaultFileSystem
|
|||||||
$ra-content: racontent
|
$ra-content: racontent
|
||||||
|
|
||||||
Rules:
|
Rules:
|
||||||
content|rules.yaml
|
|
||||||
|
|
||||||
Cursors:
|
Cursors:
|
||||||
content|cursors.yaml
|
content|cursors.yaml
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ FileSystem: DefaultFileSystem
|
|||||||
$ts-content: tscontent
|
$ts-content: tscontent
|
||||||
|
|
||||||
Rules:
|
Rules:
|
||||||
content|rules.yaml
|
|
||||||
|
|
||||||
Cursors:
|
Cursors:
|
||||||
content|cursors.yaml
|
content|cursors.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user