Add IEnumerable<ITraitInfo> ActorInfo.TraitInfos() replacing actorInfo.traits enumeration
This commit is contained in:
@@ -187,5 +187,6 @@ namespace OpenRA
|
||||
public bool HasTraitInfo<T>() where T : ITraitInfo { return Traits.Contains<T>(); }
|
||||
public T TraitInfo<T>() where T : ITraitInfo { return Traits.Get<T>(); }
|
||||
public T TraitInfoOrDefault<T>() where T : ITraitInfo { return Traits.GetOrDefault<T>(); }
|
||||
public IEnumerable<T> TraitInfos<T>() where T : ITraitInfo { return Traits.WithInterface<T>(); }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user