Make ITick require explicit implementation

This commit is contained in:
reaperrr
2017-09-07 19:27:53 +02:00
committed by Matthias Mailänder
parent 85e60ef77f
commit 28e1f391e0
44 changed files with 69 additions and 43 deletions

View File

@@ -29,7 +29,12 @@ namespace OpenRA.Mods.Common.Traits
public AttackFollow(Actor self, AttackFollowInfo info)
: base(self, info) { }
public virtual void Tick(Actor self)
void ITick.Tick(Actor self)
{
Tick(self);
}
protected virtual void Tick(Actor self)
{
if (IsTraitDisabled)
{