Add an interface to prevent actors from being spawned by SpawnMapActors

This commit is contained in:
Oliver Brakmann
2018-12-26 13:38:26 +00:00
committed by Paul Chote
parent df1d928242
commit c2cf8ba599
2 changed files with 23 additions and 0 deletions

View File

@@ -538,4 +538,10 @@ namespace OpenRA.Mods.Common.Traits
OnChange = onChange;
}
}
[RequireExplicitImplementation]
public interface IPreventMapSpawn
{
bool PreventMapSpawn(World world, ActorReference actorReference);
}
}