TS: EMP Cannon should only be able to fire via the support power. Fixes #20828

This commit is contained in:
Jakub Vesely
2023-10-18 17:44:35 +02:00
committed by Matthias Mailänder
parent 20c683fb4f
commit cd5eb89ebc
4 changed files with 44 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ namespace OpenRA.Mods.Common.Orders
IEnumerable<IRenderable> IOrderGenerator.RenderAboveShroud(WorldRenderer wr, World world) { return RenderAboveShroud(wr, world); }
IEnumerable<IRenderable> IOrderGenerator.RenderAnnotations(WorldRenderer wr, World world) { return RenderAnnotations(wr, world); }
string IOrderGenerator.GetCursor(World world, CPos cell, int2 worldPixel, MouseInput mi) { return GetCursor(world, cell, worldPixel, mi); }
void IOrderGenerator.Deactivate() { }
void IOrderGenerator.Deactivate() { Deactivate(); }
bool IOrderGenerator.HandleKeyPress(KeyInput e) { return false; }
void IOrderGenerator.SelectionChanged(World world, IEnumerable<Actor> selected) { SelectionChanged(world, selected); }
@@ -42,5 +42,6 @@ namespace OpenRA.Mods.Common.Orders
protected abstract string GetCursor(World world, CPos cell, int2 worldPixel, MouseInput mi);
protected abstract IEnumerable<Order> OrderInner(World world, CPos cell, int2 worldPixel, MouseInput mi);
protected virtual void SelectionChanged(World world, IEnumerable<Actor> selected) { }
protected virtual void Deactivate() { }
}
}