Remove unnecessary this. references.

This commit is contained in:
Paul Chote
2019-06-07 21:07:16 +01:00
committed by abcdefg30
parent ebe37a44ad
commit dabc7ec8dd
15 changed files with 24 additions and 23 deletions

View File

@@ -30,7 +30,7 @@ namespace OpenRA.Mods.Common.Traits
public AttackFrontal(Actor self, AttackFrontalInfo info)
: base(self, info)
{
this.Info = info;
Info = info;
}
protected override bool CanAttack(Actor self, Target target)

View File

@@ -39,7 +39,7 @@ namespace OpenRA.Mods.Common.Traits
public GrantExternalConditionToCrusher(Actor self, GrantExternalConditionToCrusherInfo info)
{
this.Info = info;
Info = info;
}
void INotifyCrushed.OnCrush(Actor self, Actor crusher, BitSet<CrushClass> crushClasses)

View File

@@ -57,7 +57,7 @@ namespace OpenRA.Mods.Common.Traits
public ModularBot(ModularBotInfo info, ActorInitializer init)
{
this.info = info;
this.world = init.World;
world = init.World;
}
// Called by the host's player creation code

View File

@@ -50,8 +50,8 @@ namespace OpenRA.Mods.Common.Traits.Render
centerPosition,
range.Value,
0,
this.Color,
this.BorderColor);
Color,
BorderColor);
var otherRanges = w.ActorsWithTrait<RenderRangeCircle>()
.Where(a => a.Trait.Info.RangeCircleType == RangeCircleType)

View File

@@ -34,7 +34,7 @@ namespace OpenRA.Mods.Common.Traits
void INotifyCreated.Created(Actor self)
{
this.worldNotifySelection = self.TraitsImplementing<INotifySelection>().ToArray();
worldNotifySelection = self.TraitsImplementing<INotifySelection>().ToArray();
}
void UpdateHash()