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);
|
||||
|
||||
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);
|
||||
|
||||
@@ -11,7 +11,6 @@ FileSystem: DefaultFileSystem
|
||||
$cnc-content: cnccontent
|
||||
|
||||
Rules:
|
||||
content|rules.yaml
|
||||
|
||||
Cursors:
|
||||
content|cursors.yaml
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
World:
|
||||
@@ -11,7 +11,6 @@ FileSystem: DefaultFileSystem
|
||||
$d2k-content: d2kcontent
|
||||
|
||||
Rules:
|
||||
content|rules.yaml
|
||||
|
||||
Cursors:
|
||||
content|cursors.yaml
|
||||
|
||||
@@ -11,7 +11,6 @@ FileSystem: DefaultFileSystem
|
||||
$ra-content: racontent
|
||||
|
||||
Rules:
|
||||
content|rules.yaml
|
||||
|
||||
Cursors:
|
||||
content|cursors.yaml
|
||||
|
||||
@@ -11,7 +11,6 @@ FileSystem: DefaultFileSystem
|
||||
$ts-content: tscontent
|
||||
|
||||
Rules:
|
||||
content|rules.yaml
|
||||
|
||||
Cursors:
|
||||
content|cursors.yaml
|
||||
|
||||
Reference in New Issue
Block a user