StyleCop clean OpenRA.Game
This commit is contained in:
@@ -29,7 +29,7 @@ namespace OpenRA.Mods.RA.Traits
|
||||
[Desc("The audio notification type to play.")]
|
||||
public string Notification = "BaseAttack";
|
||||
|
||||
public object Create(ActorInitializer init) { return new BaseAttackNotifier(init.self, this); }
|
||||
public object Create(ActorInitializer init) { return new BaseAttackNotifier(init.Self, this); }
|
||||
}
|
||||
|
||||
public class BaseAttackNotifier : INotifyDamage
|
||||
|
||||
@@ -40,9 +40,9 @@ namespace OpenRA.Mods.RA
|
||||
readonly ClassicProductionQueueInfo info;
|
||||
|
||||
public ClassicProductionQueue(ActorInitializer init, ClassicProductionQueueInfo info)
|
||||
: base(init, init.self, info)
|
||||
: base(init, init.Self, info)
|
||||
{
|
||||
this.self = init.self;
|
||||
this.self = init.Self;
|
||||
this.info = info;
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace OpenRA.Mods.RA.Traits
|
||||
[Desc("The audio notification type to play.")]
|
||||
public string Notification = "HarvesterAttack";
|
||||
|
||||
public object Create(ActorInitializer init) { return new HarvesterAttackNotifier(init.self, this); }
|
||||
public object Create(ActorInitializer init) { return new HarvesterAttackNotifier(init.Self, this); }
|
||||
}
|
||||
|
||||
public class HarvesterAttackNotifier : INotifyDamage
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace OpenRA.Mods.RA
|
||||
"The filename of the audio is defined per faction in notifications.yaml.")]
|
||||
public readonly string CancelledAudio = "Cancelled";
|
||||
|
||||
public virtual object Create(ActorInitializer init) { return new ProductionQueue(init, init.self.Owner.PlayerActor, this); }
|
||||
public virtual object Create(ActorInitializer init) { return new ProductionQueue(init, init.Self.Owner.PlayerActor, this); }
|
||||
}
|
||||
|
||||
public class ProductionQueue : IResolveOrder, ITick, ITechTreeElement, INotifyOwnerChanged, INotifyKilled, INotifySold, ISync, INotifyTransform
|
||||
@@ -96,7 +96,7 @@ namespace OpenRA.Mods.RA
|
||||
|
||||
public ProductionQueue(ActorInitializer init, Actor playerActor, ProductionQueueInfo info)
|
||||
{
|
||||
self = init.self;
|
||||
self = init.Self;
|
||||
Info = info;
|
||||
playerResources = playerActor.Trait<PlayerResources>();
|
||||
playerPower = playerActor.Trait<PowerManager>();
|
||||
|
||||
Reference in New Issue
Block a user