No need for dummy value

This commit is contained in:
Gustas
2024-06-03 19:14:39 +03:00
committed by Matthias Mailänder
parent 5ddc7b1177
commit 734afd8bcf

View File

@@ -44,7 +44,7 @@ namespace OpenRA.Mods.Common.Traits
}
actorReference.Add(new SkipMakeAnimsInit());
actorReference.Add(new SpawnedByMapInit(kv.Key));
actorReference.Add(new SpawnedByMapInit());
if (PreventMapSpawn(world, actorReference, preventMapSpawns))
continue;
@@ -66,9 +66,13 @@ namespace OpenRA.Mods.Common.Traits
}
public class SkipMakeAnimsInit : RuntimeFlagInit { }
public class SpawnedByMapInit : ValueActorInit<string>, ISuppressInitExport, ISingleInstanceInit
public class SpawnedByMapInit : ActorInit, ISuppressInitExport, ISingleInstanceInit
{
public SpawnedByMapInit(string value)
: base(value) { }
protected SpawnedByMapInit(string instanceName)
: base(instanceName) { }
public SpawnedByMapInit() { }
public override MiniYaml Save() => null;
}
}