Remove redundant placeholder world definition.

Co-Authored-By: Gustas Kažukauskas <37534529+punkpun@users.noreply.github.com>
This commit is contained in:
Paul Chote
2025-05-09 19:01:17 +01:00
committed by Matthias Mailänder
parent a66feafa3f
commit d2780382bc
6 changed files with 9 additions and 5 deletions

View File

@@ -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);

View File

@@ -11,7 +11,6 @@ FileSystem: DefaultFileSystem
$cnc-content: cnccontent
Rules:
content|rules.yaml
Cursors:
content|cursors.yaml

View File

@@ -1 +0,0 @@
World:

View File

@@ -11,7 +11,6 @@ FileSystem: DefaultFileSystem
$d2k-content: d2kcontent
Rules:
content|rules.yaml
Cursors:
content|cursors.yaml

View File

@@ -11,7 +11,6 @@ FileSystem: DefaultFileSystem
$ra-content: racontent
Rules:
content|rules.yaml
Cursors:
content|cursors.yaml

View File

@@ -11,7 +11,6 @@ FileSystem: DefaultFileSystem
$ts-content: tscontent
Rules:
content|rules.yaml
Cursors:
content|cursors.yaml