Allow ActorInits to target a specific trait by matching the @ suffix.

This commit is contained in:
Paul Chote
2020-06-02 19:39:32 +01:00
committed by teinarss
parent b38018af9c
commit 0eb0041f90
6 changed files with 61 additions and 11 deletions

View File

@@ -327,6 +327,9 @@ namespace OpenRA.Traits
public abstract class TraitInfo : ITraitInfoInterface
{
// Value is set using reflection during TraitInfo creation
public readonly string InstanceName = null;
public abstract object Create(ActorInitializer init);
}