Make some Attack* methods/classes public
Instead of protected, because some 3rd-party mods rely on these being public.
This commit is contained in:
@@ -175,7 +175,8 @@ namespace OpenRA.Mods.Common.Traits
|
||||
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();
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
return new AttackActivity(self, newTarget, allowMove, forceAttack);
|
||||
}
|
||||
|
||||
protected override void OnStopOrder(Actor self)
|
||||
public override void OnStopOrder(Actor self)
|
||||
{
|
||||
Target = Target.Invalid;
|
||||
base.OnStopOrder(self);
|
||||
|
||||
@@ -29,7 +29,8 @@ namespace OpenRA.Mods.Common.Traits
|
||||
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 AttackOmni attack;
|
||||
|
||||
Reference in New Issue
Block a user