AttackBomber style fixes
This commit is contained in:
@@ -30,7 +30,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
public class AttackBomber : AttackBase, ITick, ISync, INotifyRemovedFromWorld
|
public class AttackBomber : AttackBase, ITick, ISync, INotifyRemovedFromWorld
|
||||||
{
|
{
|
||||||
AttackBomberInfo info;
|
readonly AttackBomberInfo info;
|
||||||
[Sync] Target target;
|
[Sync] Target target;
|
||||||
[Sync] bool inAttackRange;
|
[Sync] bool inAttackRange;
|
||||||
[Sync] bool facingTarget = true;
|
[Sync] bool facingTarget = true;
|
||||||
@@ -45,7 +45,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
this.info = info;
|
this.info = info;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Tick(Actor self)
|
void ITick.Tick(Actor self)
|
||||||
{
|
{
|
||||||
var bombHeight = self.World.Map.DistanceAboveTerrain(self.CenterPosition);
|
var bombHeight = self.World.Map.DistanceAboveTerrain(self.CenterPosition);
|
||||||
var bombTarget = Target.FromPos(self.CenterPosition - new WVec(WDist.Zero, WDist.Zero, bombHeight));
|
var bombTarget = Target.FromPos(self.CenterPosition - new WVec(WDist.Zero, WDist.Zero, bombHeight));
|
||||||
@@ -98,7 +98,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
public void SetTarget(World w, WPos pos) { target = Target.FromPos(pos); }
|
public void SetTarget(World w, WPos pos) { target = Target.FromPos(pos); }
|
||||||
|
|
||||||
public void RemovedFromWorld(Actor self)
|
void INotifyRemovedFromWorld.RemovedFromWorld(Actor self)
|
||||||
{
|
{
|
||||||
OnRemovedFromWorld(self);
|
OnRemovedFromWorld(self);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user