Changed things to do with Shroud to WRange. Updated Utility.

This commit is contained in:
Chicken man
2014-02-20 17:37:18 -05:00
parent 9e1f15448d
commit cf3cc43a28
11 changed files with 44 additions and 37 deletions

View File

@@ -14,7 +14,7 @@ namespace OpenRA.Traits
{
public class CreatesShroudInfo : ITraitInfo
{
public readonly int Range = 0;
public readonly WRange Range = WRange.Zero;
public object Create(ActorInitializer init) { return new CreatesShroud(this); }
}
@@ -43,6 +43,6 @@ namespace OpenRA.Traits
}
}
public int Range { get { return cachedDisabled ? 0 : Info.Range; } }
public WRange Range { get { return cachedDisabled ? WRange.Zero : Info.Range; } }
}
}