Replace ITraitInfo interface with TraitInfo class.

This commit is contained in:
Paul Chote
2020-05-11 18:12:19 +01:00
committed by reaperrr
parent 3cd7ec3878
commit 86f61298e6
243 changed files with 510 additions and 505 deletions

View File

@@ -16,7 +16,7 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Actors possessing this trait should define the GainsExperience trait. When the prerequisites are fulfilled, ",
"this trait grants a level-up to newly spawned actors. If additionally the actor's owning player defines the ProductionIconOverlay ",
"trait, the production queue icon renders with an overlay defined in that trait.")]
public class ProducibleWithLevelInfo : ITraitInfo, Requires<GainsExperienceInfo>
public class ProducibleWithLevelInfo : TraitInfo, Requires<GainsExperienceInfo>
{
public readonly string[] Prerequisites = { };
@@ -26,7 +26,7 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Should the level-up animation be suppressed when actor is created?")]
public readonly bool SuppressLevelupAnimation = true;
public object Create(ActorInitializer init) { return new ProducibleWithLevel(init, this); }
public override object Create(ActorInitializer init) { return new ProducibleWithLevel(init, this); }
}
public class ProducibleWithLevel : INotifyCreated