Merge pull request #7634 from Phrohdoh/sw-docs
Add some documentation to support powers.
This commit is contained in:
@@ -14,6 +14,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
public abstract class SupportPowerInfo : ITraitInfo
|
||||
{
|
||||
[Desc("Measured in seconds.")]
|
||||
public readonly int ChargeTime = 0;
|
||||
public readonly string Icon = null;
|
||||
public readonly string Description = "";
|
||||
@@ -42,6 +43,8 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public readonly string BeaconPosterPalette = "chrome";
|
||||
|
||||
public readonly bool DisplayRadarPing = false;
|
||||
|
||||
[Desc("Measured in ticks.")]
|
||||
public readonly int RadarPingDuration = 5 * 25;
|
||||
|
||||
public readonly string OrderName;
|
||||
|
||||
@@ -19,10 +19,12 @@ namespace OpenRA.Mods.RA.Traits
|
||||
{
|
||||
class ChronoshiftPowerInfo : SupportPowerInfo
|
||||
{
|
||||
[Desc("Cells")]
|
||||
[Desc("Target actor selection radius in cells.")]
|
||||
public readonly int Range = 1;
|
||||
[Desc("Seconds")]
|
||||
|
||||
[Desc("Seconds until returning after teleportation.")]
|
||||
public readonly int Duration = 30;
|
||||
|
||||
public readonly bool KillCargo = true;
|
||||
|
||||
public override object Create(ActorInitializer init) { return new ChronoshiftPower(init.Self, this); }
|
||||
|
||||
Reference in New Issue
Block a user