rename WRange to WDist in documentation

This commit is contained in:
Matthias Mailänder
2015-07-09 12:36:29 +02:00
parent ff7fe2bab5
commit 8d8d7ab8ea
5 changed files with 7 additions and 7 deletions

View File

@@ -247,7 +247,7 @@ namespace OpenRA.Graphics
} }
// Cells can be pushed up from below if they have non-zero height. // 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 // one MPos step for diamond cells, but only half a MPos step
// for classic cells. Doh! // for classic cells. Doh!
var heightOffset = map.TileShape == TileShape.Diamond ? map.MaximumTerrainHeight : map.MaximumTerrainHeight / 2; var heightOffset = map.TileShape == TileShape.Diamond ? map.MaximumTerrainHeight : map.MaximumTerrainHeight / 2;

View File

@@ -22,7 +22,7 @@ namespace OpenRA.Mods.Common.Effects
{ {
public class BulletInfo : IProjectileInfo 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) }; public readonly WDist[] Speed = { new WDist(17) };
[Desc("Maximum offset at the maximum range.")] [Desc("Maximum offset at the maximum range.")]
public readonly WDist Inaccuracy = WDist.Zero; public readonly WDist Inaccuracy = WDist.Zero;

View File

@@ -26,7 +26,7 @@ namespace OpenRA.Mods.Common.Effects
[SequenceReference("Image")] public readonly string Sequence = "idle"; [SequenceReference("Image")] public readonly string Sequence = "idle";
public readonly string Palette = "effect"; public readonly string Palette = "effect";
public readonly bool Shadow = false; public readonly bool Shadow = false;
[Desc("Projectile speed in WRange / tick")] [Desc("Projectile speed in WDist / tick")]
public readonly WDist Speed = new WDist(8); public readonly WDist Speed = new WDist(8);
[Desc("Maximum vertical pitch when changing altitude.")] [Desc("Maximum vertical pitch when changing altitude.")]
public readonly WAngle MaximumPitch = WAngle.FromDegrees(30); public readonly WAngle MaximumPitch = WAngle.FromDegrees(30);

View File

@@ -59,15 +59,15 @@ namespace OpenRA.Mods.Common.Scripting
public WVec Zero { get { return WVec.Zero; } } public WVec Zero { get { return WVec.Zero; } }
} }
[ScriptGlobal("WRange")] [ScriptGlobal("WDist")]
public class WRangeGlobal : ScriptGlobal public class WRangeGlobal : ScriptGlobal
{ {
public WRangeGlobal(ScriptContext context) : base(context) { } 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); } 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); } public WDist FromCells(int numCells) { return WDist.FromCells(numCells); }
} }
} }

View File

@@ -26,7 +26,7 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Travel time - split equally between ascent and descent")] [Desc("Travel time - split equally between ascent and descent")]
public readonly int FlightDelay = 400; 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); public readonly WDist FlightVelocity = new WDist(512);
[Desc("Descend immediately on the target, with half the FlightDelay")] [Desc("Descend immediately on the target, with half the FlightDelay")]