StyleCop clean OpenRA.Game
This commit is contained in:
@@ -16,7 +16,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[Desc("Disables the actor when a power outage is triggered (see `InfiltrateForPowerOutage` for more information).")]
|
||||
public class AffectedByPowerOutageInfo : ITraitInfo
|
||||
{
|
||||
public object Create(ActorInitializer init) { return new AffectedByPowerOutage(init.self); }
|
||||
public object Create(ActorInitializer init) { return new AffectedByPowerOutage(init.Self); }
|
||||
}
|
||||
|
||||
public class AffectedByPowerOutage : INotifyOwnerChanged, ISelectionBar, IPowerModifier, IDisable
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[Desc("Restore power when this trait is disabled.")]
|
||||
public readonly bool CancelWhenDisabled = false;
|
||||
|
||||
public object Create(ActorInitializer init) { return new CanPowerDown(init.self, this); }
|
||||
public object Create(ActorInitializer init) { return new CanPowerDown(init.Self, this); }
|
||||
}
|
||||
|
||||
public class CanPowerDown : UpgradableTrait<CanPowerDownInfo>, IPowerModifier, IResolveOrder, IDisable, INotifyOwnerChanged
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public readonly int AdviceInterval = 250;
|
||||
public readonly string SpeechNotification = "LowPower";
|
||||
|
||||
public object Create(ActorInitializer init) { return new PowerManager(init.self, this); }
|
||||
public object Create(ActorInitializer init) { return new PowerManager(init.Self, this); }
|
||||
}
|
||||
|
||||
public class PowerManager : ITick, ISync
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[Desc("If negative, it will drain power. If positive, it will provide power.")]
|
||||
public readonly int Amount = 0;
|
||||
|
||||
public object Create(ActorInitializer init) { return new Power(init.self, this); }
|
||||
public object Create(ActorInitializer init) { return new Power(init.Self, this); }
|
||||
}
|
||||
|
||||
public class Power : UpgradableTrait<PowerInfo>, INotifyAddedToWorld, INotifyRemovedFromWorld, INotifyOwnerChanged
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[Desc("Needs power to operate.")]
|
||||
class RequiresPowerInfo : ITraitInfo
|
||||
{
|
||||
public object Create(ActorInitializer init) { return new RequiresPower(init.self); }
|
||||
public object Create(ActorInitializer init) { return new RequiresPower(init.Self); }
|
||||
}
|
||||
|
||||
class RequiresPower : IDisable, INotifyOwnerChanged
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[Desc("Scale power amount with the current health.")]
|
||||
public class ScalePowerWithHealthInfo : ITraitInfo, Requires<PowerInfo>, Requires<HealthInfo>
|
||||
{
|
||||
public object Create(ActorInitializer init) { return new ScalePowerWithHealth(init.self); }
|
||||
public object Create(ActorInitializer init) { return new ScalePowerWithHealth(init.Self); }
|
||||
}
|
||||
|
||||
public class ScalePowerWithHealth : IPowerModifier, INotifyDamage, INotifyOwnerChanged
|
||||
|
||||
Reference in New Issue
Block a user