StyleCop clean OpenRA.Game
This commit is contained in:
@@ -37,7 +37,7 @@ namespace OpenRA.Mods.RA.Traits
|
||||
public RenderBuildingSilo(ActorInitializer init, RenderBuildingSiloInfo info)
|
||||
: base(init, info)
|
||||
{
|
||||
playerResources = init.self.Owner.PlayerActor.Trait<PlayerResources>();
|
||||
playerResources = init.Self.Owner.PlayerActor.Trait<PlayerResources>();
|
||||
}
|
||||
|
||||
public override void BuildingComplete(Actor self)
|
||||
|
||||
6
OpenRA.Mods.RA/Render/RenderBuildingWarFactory.cs
Executable file → Normal file
6
OpenRA.Mods.RA/Render/RenderBuildingWarFactory.cs
Executable file → Normal file
@@ -46,11 +46,11 @@ namespace OpenRA.Mods.RA.Traits
|
||||
public RenderBuildingWarFactory(ActorInitializer init, RenderBuildingInfo info)
|
||||
: base(init, info)
|
||||
{
|
||||
roof = new Animation(init.world, GetImage(init.self));
|
||||
var bi = init.self.Info.Traits.Get<BuildingInfo>();
|
||||
roof = new Animation(init.World, GetImage(init.Self));
|
||||
var bi = init.Self.Info.Traits.Get<BuildingInfo>();
|
||||
|
||||
// Additional 512 units move from center -> top of cell
|
||||
var offset = FootprintUtils.CenterOffset(init.world, bi).Y + 512;
|
||||
var offset = FootprintUtils.CenterOffset(init.World, bi).Y + 512;
|
||||
Add("roof", new AnimationWithOffset(roof, null,
|
||||
() => !buildComplete, offset));
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace OpenRA.Mods.RA.Traits
|
||||
{
|
||||
class RenderDisguiseInfo : RenderInfantryInfo, Requires<DisguiseInfo>
|
||||
{
|
||||
public override object Create(ActorInitializer init) { return new RenderDisguise(init.self, this); }
|
||||
public override object Create(ActorInitializer init) { return new RenderDisguise(init.Self, this); }
|
||||
}
|
||||
|
||||
class RenderDisguise : RenderInfantry
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace OpenRA.Mods.RA.Traits
|
||||
class RenderHarvesterInfo : RenderUnitInfo, Requires<HarvesterInfo>
|
||||
{
|
||||
public readonly string[] ImagesByFullness = { "harv" };
|
||||
public override object Create(ActorInitializer init) { return new RenderHarvester(init.self, this); }
|
||||
public override object Create(ActorInitializer init) { return new RenderHarvester(init.Self, this); }
|
||||
}
|
||||
|
||||
class RenderHarvester : RenderUnit, INotifyHarvesterAction
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace OpenRA.Mods.RA.Traits
|
||||
public readonly string[] IdleAnimations = { };
|
||||
public readonly string[] StandAnimations = { "stand" };
|
||||
|
||||
public override object Create(ActorInitializer init) { return new RenderInfantry(init.self, this); }
|
||||
public override object Create(ActorInitializer init) { return new RenderInfantry(init.Self, this); }
|
||||
|
||||
public override IEnumerable<IActorPreview> RenderPreviewSprites(ActorPreviewInitializer init, RenderSpritesInfo rs, string image, int facings, PaletteReference p)
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace OpenRA.Mods.RA.Traits
|
||||
public readonly string OpenAnim = "open";
|
||||
public readonly string UnloadAnim = "unload";
|
||||
|
||||
public override object Create(ActorInitializer init) { return new RenderLandingCraft(init.self, this); }
|
||||
public override object Create(ActorInitializer init) { return new RenderLandingCraft(init.Self, this); }
|
||||
}
|
||||
|
||||
public class RenderLandingCraft : RenderUnit
|
||||
|
||||
2
OpenRA.Mods.RA/Render/RenderUnitReload.cs
Executable file → Normal file
2
OpenRA.Mods.RA/Render/RenderUnitReload.cs
Executable file → Normal file
@@ -19,7 +19,7 @@ namespace OpenRA.Mods.RA.Traits
|
||||
[Desc("Armament name")]
|
||||
public readonly string Armament = "primary";
|
||||
|
||||
public override object Create(ActorInitializer init) { return new RenderUnitReload(init.self, this); }
|
||||
public override object Create(ActorInitializer init) { return new RenderUnitReload(init.Self, this); }
|
||||
}
|
||||
|
||||
class RenderUnitReload : RenderUnit
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace OpenRA.Mods.RA.Traits
|
||||
|
||||
public readonly bool PauseOnLowPower = false;
|
||||
|
||||
public object Create(ActorInitializer init) { return new WithActiveAnimation(init.self, this); }
|
||||
public object Create(ActorInitializer init) { return new WithActiveAnimation(init.Self, this); }
|
||||
}
|
||||
|
||||
public class WithActiveAnimation : ITick, INotifyBuildComplete, INotifySold
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace OpenRA.Mods.RA.Traits
|
||||
|
||||
public readonly bool PauseOnLowPower = false;
|
||||
|
||||
public object Create(ActorInitializer init) { return new WithIdleOverlay(init.self, this); }
|
||||
public object Create(ActorInitializer init) { return new WithIdleOverlay(init.Self, this); }
|
||||
|
||||
public IEnumerable<IActorPreview> RenderPreviewSprites(ActorPreviewInitializer init, RenderSpritesInfo rs, string image, int facings, PaletteReference p)
|
||||
{
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace OpenRA.Mods.RA.Traits
|
||||
|
||||
public readonly bool PauseOnLowPower = false;
|
||||
|
||||
public object Create(ActorInitializer init) { return new WithRepairAnimation(init.self, this); }
|
||||
public object Create(ActorInitializer init) { return new WithRepairAnimation(init.Self, this); }
|
||||
}
|
||||
|
||||
public class WithRepairAnimation : INotifyRepair
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace OpenRA.Mods.RA.Traits
|
||||
|
||||
public readonly bool PauseOnLowPower = false;
|
||||
|
||||
public object Create(ActorInitializer init) { return new WithRepairOverlay(init.self, this); }
|
||||
public object Create(ActorInitializer init) { return new WithRepairOverlay(init.Self, this); }
|
||||
}
|
||||
|
||||
public class WithRepairOverlay : INotifyDamageStateChanged, INotifyBuildComplete, INotifySold, INotifyRepair
|
||||
|
||||
Reference in New Issue
Block a user