Make ITick implementations explicit in Mods.Cnc and Mods.D2k
This commit is contained in:
committed by
Matthias Mailänder
parent
83afcc3448
commit
ec354f89cd
@@ -68,7 +68,7 @@ namespace OpenRA.Mods.D2k.Traits
|
||||
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)
|
||||
return;
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace OpenRA.Mods.D2k.Traits
|
||||
self.ChangeOwner(newOwner);
|
||||
}
|
||||
|
||||
public void Tick(Actor self)
|
||||
void ITick.Tick(Actor self)
|
||||
{
|
||||
if (!self.IsInWorld)
|
||||
return;
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace OpenRA.Mods.D2k.Traits
|
||||
enabled = self.Trait<MapCreeps>().Enabled;
|
||||
}
|
||||
|
||||
public void Tick(Actor self)
|
||||
void ITick.Tick(Actor self)
|
||||
{
|
||||
if (!enabled)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user