Update OrderEffects.cs

Pass order name to OrderEffects
This commit is contained in:
MHecker-code
2024-08-01 15:57:44 +02:00
committed by Paul Chote
parent 00f504f6aa
commit 6794b2dc40
3 changed files with 3 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ namespace OpenRA.Mods.Common.Traits
this.info = info;
}
bool INotifyOrderIssued.OrderIssued(World world, Target target)
bool INotifyOrderIssued.OrderIssued(World world, string orderString, Target target)
{
switch (target.Type)
{

View File

@@ -59,7 +59,7 @@ namespace OpenRA.Mods.Common.Traits
[RequireExplicitImplementation]
public interface INotifyOrderIssued
{
bool OrderIssued(World world, Target target);
bool OrderIssued(World world, string orderString, Target target);
}
[RequireExplicitImplementation]

View File

@@ -197,7 +197,7 @@ namespace OpenRA.Mods.Common.Widgets
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);