Replace ITraitInfo interface with TraitInfo class.
This commit is contained in:
@@ -15,10 +15,10 @@ using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
class ImmobileInfo : ITraitInfo, IOccupySpaceInfo
|
||||
class ImmobileInfo : TraitInfo, IOccupySpaceInfo
|
||||
{
|
||||
public readonly bool OccupiesSpace = true;
|
||||
public object Create(ActorInitializer init) { return new Immobile(init, this); }
|
||||
public override object Create(ActorInitializer init) { return new Immobile(init, this); }
|
||||
|
||||
public IReadOnlyDictionary<CPos, SubCell> OccupiedCells(ActorInfo info, CPos location, SubCell subCell = SubCell.Any)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user