Replace ITraitInfo interface with TraitInfo class.
This commit is contained in:
@@ -19,9 +19,9 @@ using OpenRA.Traits;
|
||||
namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
[Desc("Attach this to the world actor.", "Order of the layers defines the Z sorting.")]
|
||||
public class ResourceLayerInfo : ITraitInfo, Requires<ResourceTypeInfo>, Requires<BuildingInfluenceInfo>
|
||||
public class ResourceLayerInfo : TraitInfo, Requires<ResourceTypeInfo>, Requires<BuildingInfluenceInfo>
|
||||
{
|
||||
public virtual object Create(ActorInitializer init) { return new ResourceLayer(init.Self); }
|
||||
public override object Create(ActorInitializer init) { return new ResourceLayer(init.Self); }
|
||||
}
|
||||
|
||||
public class ResourceLayer : IWorldLoaded
|
||||
|
||||
Reference in New Issue
Block a user