Make some Attack* methods/classes public

Instead of protected, because some 3rd-party mods rely on these being
public.
This commit is contained in:
reaperrr
2018-06-07 23:05:00 +02:00
committed by abcdefg30
parent b2a069f8ab
commit 0bff9e9119
3 changed files with 5 additions and 3 deletions

View File

@@ -175,7 +175,8 @@ namespace OpenRA.Mods.Common.Traits
OnStopOrder(self); OnStopOrder(self);
} }
protected virtual void OnStopOrder(Actor self) // Some 3rd-party mods rely on this being public
public virtual void OnStopOrder(Actor self)
{ {
self.CancelActivity(); self.CancelActivity();
} }

View File

@@ -48,7 +48,7 @@ namespace OpenRA.Mods.Common.Traits
return new AttackActivity(self, newTarget, allowMove, forceAttack); return new AttackActivity(self, newTarget, allowMove, forceAttack);
} }
protected override void OnStopOrder(Actor self) public override void OnStopOrder(Actor self)
{ {
Target = Target.Invalid; Target = Target.Invalid;
base.OnStopOrder(self); base.OnStopOrder(self);

View File

@@ -29,7 +29,8 @@ namespace OpenRA.Mods.Common.Traits
return new SetTarget(this, newTarget, allowMove); return new SetTarget(this, newTarget, allowMove);
} }
protected class SetTarget : Activity // Some 3rd-party mods rely on this being public
public class SetTarget : Activity
{ {
readonly Target target; readonly Target target;
readonly AttackOmni attack; readonly AttackOmni attack;