Allow ActorInits to target a specific trait by matching the @ suffix.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user