rename WRange to WDist in documentation
This commit is contained in:
@@ -247,7 +247,7 @@ namespace OpenRA.Graphics
|
||||
}
|
||||
|
||||
// Cells can be pushed up from below if they have non-zero height.
|
||||
// Each height step is equivalent to 512 WRange units, which is
|
||||
// Each height step is equivalent to 512 WDist units, which is
|
||||
// one MPos step for diamond cells, but only half a MPos step
|
||||
// for classic cells. Doh!
|
||||
var heightOffset = map.TileShape == TileShape.Diamond ? map.MaximumTerrainHeight : map.MaximumTerrainHeight / 2;
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace OpenRA.Mods.Common.Effects
|
||||
{
|
||||
public class BulletInfo : IProjectileInfo
|
||||
{
|
||||
[Desc("Projectile speed in WRange / tick, two values indicate variable velocity.")]
|
||||
[Desc("Projectile speed in WDist / tick, two values indicate variable velocity.")]
|
||||
public readonly WDist[] Speed = { new WDist(17) };
|
||||
[Desc("Maximum offset at the maximum range.")]
|
||||
public readonly WDist Inaccuracy = WDist.Zero;
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace OpenRA.Mods.Common.Effects
|
||||
[SequenceReference("Image")] public readonly string Sequence = "idle";
|
||||
public readonly string Palette = "effect";
|
||||
public readonly bool Shadow = false;
|
||||
[Desc("Projectile speed in WRange / tick")]
|
||||
[Desc("Projectile speed in WDist / tick")]
|
||||
public readonly WDist Speed = new WDist(8);
|
||||
[Desc("Maximum vertical pitch when changing altitude.")]
|
||||
public readonly WAngle MaximumPitch = WAngle.FromDegrees(30);
|
||||
|
||||
@@ -59,15 +59,15 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
public WVec Zero { get { return WVec.Zero; } }
|
||||
}
|
||||
|
||||
[ScriptGlobal("WRange")]
|
||||
[ScriptGlobal("WDist")]
|
||||
public class WRangeGlobal : ScriptGlobal
|
||||
{
|
||||
public WRangeGlobal(ScriptContext context) : base(context) { }
|
||||
|
||||
[Desc("Create a new WRange.")]
|
||||
[Desc("Create a new WDist.")]
|
||||
public WDist New(int r) { return new WDist(r); }
|
||||
|
||||
[Desc("Create a new WRange by cell distance")]
|
||||
[Desc("Create a new WDist by cell distance")]
|
||||
public WDist FromCells(int numCells) { return WDist.FromCells(numCells); }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[Desc("Travel time - split equally between ascent and descent")]
|
||||
public readonly int FlightDelay = 400;
|
||||
|
||||
[Desc("Visual ascent velocity in WRange / tick")]
|
||||
[Desc("Visual ascent velocity in WDist / tick")]
|
||||
public readonly WDist FlightVelocity = new WDist(512);
|
||||
|
||||
[Desc("Descend immediately on the target, with half the FlightDelay")]
|
||||
|
||||
Reference in New Issue
Block a user