Make ITick implementations explicit in Mods.Cnc and Mods.D2k
This commit is contained in:
committed by
Matthias Mailänder
parent
83afcc3448
commit
ec354f89cd
@@ -51,7 +51,7 @@ namespace OpenRA.Mods.Cnc.Traits
|
|||||||
charges = info.MaxCharges;
|
charges = info.MaxCharges;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Tick(Actor self)
|
void ITick.Tick(Actor self)
|
||||||
{
|
{
|
||||||
if (--timeToRecharge <= 0)
|
if (--timeToRecharge <= 0)
|
||||||
charges = info.MaxCharges;
|
charges = info.MaxCharges;
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ namespace OpenRA.Mods.Cnc.Traits
|
|||||||
chronosphere = init.Get<ChronoshiftChronosphereInit, Actor>();
|
chronosphere = init.Get<ChronoshiftChronosphereInit, Actor>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Tick(Actor self)
|
void ITick.Tick(Actor self)
|
||||||
{
|
{
|
||||||
if (!info.ReturnToOrigin || ReturnTicks <= 0)
|
if (!info.ReturnToOrigin || ReturnTicks <= 0)
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ namespace OpenRA.Mods.Cnc.Traits
|
|||||||
screenShaker = self.World.WorldActor.Trait<ScreenShaker>();
|
screenShaker = self.World.WorldActor.Trait<ScreenShaker>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Tick(Actor self)
|
void ITick.Tick(Actor self)
|
||||||
{
|
{
|
||||||
if (!deployed)
|
if (!deployed)
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ namespace OpenRA.Mods.Cnc.Traits
|
|||||||
remainingFrames = info.ChronoEffectLength;
|
remainingFrames = info.ChronoEffectLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Tick(Actor self)
|
void ITick.Tick(Actor self)
|
||||||
{
|
{
|
||||||
if (remainingFrames > 0)
|
if (remainingFrames > 0)
|
||||||
remainingFrames--;
|
remainingFrames--;
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ namespace OpenRA.Mods.Cnc.Traits
|
|||||||
Info = info;
|
Info = info;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Tick(Actor self)
|
void ITick.Tick(Actor self)
|
||||||
{
|
{
|
||||||
if (chargeTick > 0)
|
if (chargeTick > 0)
|
||||||
chargeTick--;
|
chargeTick--;
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ namespace OpenRA.Mods.Cnc.Traits.Render
|
|||||||
rs.Add(new AnimationWithOffset(wake, null, null, -87));
|
rs.Add(new AnimationWithOffset(wake, null, null, -87));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Tick(Actor self)
|
void ITick.Tick(Actor self)
|
||||||
{
|
{
|
||||||
if (facing.Facing <= 128)
|
if (facing.Facing <= 128)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ namespace OpenRA.Mods.Cnc.Traits.Render
|
|||||||
wsb.PlayCustomAnimation(self, info.CloseSequence);
|
wsb.PlayCustomAnimation(self, info.CloseSequence);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Tick(Actor self)
|
void ITick.Tick(Actor self)
|
||||||
{
|
{
|
||||||
if (ShouldBeOpen())
|
if (ShouldBeOpen())
|
||||||
Open();
|
Open();
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ namespace OpenRA.Mods.Cnc.Traits.Render
|
|||||||
|
|
||||||
public int2 SelectionSize(Actor self) { return size; }
|
public int2 SelectionSize(Actor self) { return size; }
|
||||||
|
|
||||||
public void Tick(Actor self)
|
void ITick.Tick(Actor self)
|
||||||
{
|
{
|
||||||
if (movement.IsMoving || facing.Facing != oldFacing)
|
if (movement.IsMoving || facing.Facing != oldFacing)
|
||||||
tick++;
|
tick++;
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ namespace OpenRA.Mods.D2k.Traits
|
|||||||
self.QueueActivity(mobile.MoveWithinRange(Target.FromCell(self.World, targetCell, SubCell.Any), WDist.FromCells(1)));
|
self.QueueActivity(mobile.MoveWithinRange(Target.FromCell(self.World, targetCell, SubCell.Any), WDist.FromCells(1)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Tick(Actor self)
|
void ITick.Tick(Actor self)
|
||||||
{
|
{
|
||||||
if (--targetCountdown > 0 || IsAttacking || !self.IsInWorld)
|
if (--targetCountdown > 0 || IsAttacking || !self.IsInWorld)
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ namespace OpenRA.Mods.D2k.Traits
|
|||||||
self.ChangeOwner(newOwner);
|
self.ChangeOwner(newOwner);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Tick(Actor self)
|
void ITick.Tick(Actor self)
|
||||||
{
|
{
|
||||||
if (!self.IsInWorld)
|
if (!self.IsInWorld)
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ namespace OpenRA.Mods.D2k.Traits
|
|||||||
enabled = self.Trait<MapCreeps>().Enabled;
|
enabled = self.Trait<MapCreeps>().Enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Tick(Actor self)
|
void ITick.Tick(Actor self)
|
||||||
{
|
{
|
||||||
if (!enabled)
|
if (!enabled)
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user