Add WDist.MaxValue

This commit is contained in:
atlimit8
2015-09-08 23:17:17 -05:00
parent aae3c8ef7d
commit b6ffcb8279

View File

@@ -27,6 +27,7 @@ namespace OpenRA
public WDist(int r) { Length = r; }
public static readonly WDist Zero = new WDist(0);
public static readonly WDist MaxValue = new WDist(int.MaxValue);
public static WDist FromCells(int cells) { return new WDist(1024 * cells); }
public static WDist operator +(WDist a, WDist b) { return new WDist(a.Length + b.Length); }