Replace ITraitInfo interface with TraitInfo class.
This commit is contained in:
@@ -15,14 +15,14 @@ using OpenRA.Traits;
|
||||
namespace OpenRA.Mods.Common.Traits.Conditions
|
||||
{
|
||||
[Desc("Grants a random condition from a predefined list to the actor when created.")]
|
||||
public class GrantRandomConditionInfo : ITraitInfo
|
||||
public class GrantRandomConditionInfo : TraitInfo
|
||||
{
|
||||
[FieldLoader.Require]
|
||||
[GrantedConditionReference]
|
||||
[Desc("List of conditions to grant from.")]
|
||||
public readonly string[] Conditions = null;
|
||||
|
||||
public object Create(ActorInitializer init) { return new GrantRandomCondition(init.Self, this); }
|
||||
public override object Create(ActorInitializer init) { return new GrantRandomCondition(init.Self, this); }
|
||||
}
|
||||
|
||||
public class GrantRandomCondition : INotifyCreated
|
||||
|
||||
Reference in New Issue
Block a user