Skip to content

Commit

Permalink
Update OrderEffects.cs
Browse files Browse the repository at this point in the history
Pass order name to OrderEffects
  • Loading branch information
MHecker-code authored and pchote committed Oct 5, 2024
1 parent 00f504f commit 6794b2d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion OpenRA.Mods.Common/Traits/World/OrderEffects.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public OrderEffects(OrderEffectsInfo info)
this.info = info;
}

bool INotifyOrderIssued.OrderIssued(World world, Target target)
bool INotifyOrderIssued.OrderIssued(World world, string orderString, Target target)
{
switch (target.Type)
{
Expand Down
2 changes: 1 addition & 1 deletion OpenRA.Mods.Common/TraitsInterfaces.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public interface IBlocksProjectilesInfo : ITraitInfoInterface { }
[RequireExplicitImplementation]
public interface INotifyOrderIssued
{
bool OrderIssued(World world, Target target);
bool OrderIssued(World world, string orderString, Target target);
}

[RequireExplicitImplementation]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ void ApplyOrders(World world, MouseInput mi)
var visualTarget = o.VisualFeedbackTarget.Type != TargetType.Invalid ? o.VisualFeedbackTarget : o.Target;

foreach (var notifyOrderIssued in world.WorldActor.TraitsImplementing<INotifyOrderIssued>())
flashed = notifyOrderIssued.OrderIssued(world, visualTarget);
flashed = notifyOrderIssued.OrderIssued(world, o.OrderString, visualTarget);
}

world.IssueOrder(o);
Expand Down

0 comments on commit 6794b2d

Please sign in to comment.