Update OrderEffects.cs
Pass order name to OrderEffects
This commit is contained in:
@@ -65,7 +65,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
this.info = info;
|
this.info = info;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool INotifyOrderIssued.OrderIssued(World world, Target target)
|
bool INotifyOrderIssued.OrderIssued(World world, string orderString, Target target)
|
||||||
{
|
{
|
||||||
switch (target.Type)
|
switch (target.Type)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
[RequireExplicitImplementation]
|
[RequireExplicitImplementation]
|
||||||
public interface INotifyOrderIssued
|
public interface INotifyOrderIssued
|
||||||
{
|
{
|
||||||
bool OrderIssued(World world, Target target);
|
bool OrderIssued(World world, string orderString, Target target);
|
||||||
}
|
}
|
||||||
|
|
||||||
[RequireExplicitImplementation]
|
[RequireExplicitImplementation]
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ namespace OpenRA.Mods.Common.Widgets
|
|||||||
var visualTarget = o.VisualFeedbackTarget.Type != TargetType.Invalid ? o.VisualFeedbackTarget : o.Target;
|
var visualTarget = o.VisualFeedbackTarget.Type != TargetType.Invalid ? o.VisualFeedbackTarget : o.Target;
|
||||||
|
|
||||||
foreach (var notifyOrderIssued in world.WorldActor.TraitsImplementing<INotifyOrderIssued>())
|
foreach (var notifyOrderIssued in world.WorldActor.TraitsImplementing<INotifyOrderIssued>())
|
||||||
flashed = notifyOrderIssued.OrderIssued(world, visualTarget);
|
flashed = notifyOrderIssued.OrderIssued(world, o.OrderString, visualTarget);
|
||||||
}
|
}
|
||||||
|
|
||||||
world.IssueOrder(o);
|
world.IssueOrder(o);
|
||||||
|
|||||||
Reference in New Issue
Block a user