Add an interface to prevent actors from being spawned by SpawnMapActors
This commit is contained in:
committed by
Paul Chote
parent
df1d928242
commit
c2cf8ba599
@@ -538,4 +538,10 @@ namespace OpenRA.Mods.Common.Traits
|
||||
OnChange = onChange;
|
||||
}
|
||||
}
|
||||
|
||||
[RequireExplicitImplementation]
|
||||
public interface IPreventMapSpawn
|
||||
{
|
||||
bool PreventMapSpawn(World world, ActorReference actorReference);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user