Move Selection into a Trait
This commit is contained in:
@@ -23,7 +23,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic.Ingame
|
||||
public class CycleBasesHotkeyLogic : SingleHotkeyBaseLogic
|
||||
{
|
||||
readonly Viewport viewport;
|
||||
readonly Selection selection;
|
||||
readonly ISelection selection;
|
||||
readonly World world;
|
||||
|
||||
[ObjectCreator.UseCtor]
|
||||
|
||||
@@ -14,6 +14,7 @@ using System.Linq;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Mods.Common.Lint;
|
||||
using OpenRA.Mods.Common.Traits;
|
||||
using OpenRA.Traits;
|
||||
using OpenRA.Widgets;
|
||||
|
||||
namespace OpenRA.Mods.Common.Widgets.Logic.Ingame
|
||||
@@ -22,7 +23,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic.Ingame
|
||||
public class CycleProductionActorsHotkeyLogic : SingleHotkeyBaseLogic
|
||||
{
|
||||
readonly Viewport viewport;
|
||||
readonly Selection selection;
|
||||
readonly ISelection selection;
|
||||
readonly World world;
|
||||
|
||||
readonly string clickSound = ChromeMetrics.Get<string>("ClickSound");
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
using System.Collections.Generic;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Mods.Common.Lint;
|
||||
using OpenRA.Traits;
|
||||
using OpenRA.Widgets;
|
||||
|
||||
namespace OpenRA.Mods.Common.Widgets.Logic.Ingame
|
||||
@@ -20,7 +21,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic.Ingame
|
||||
public class JumpToSelectedActorsHotkeyLogic : SingleHotkeyBaseLogic
|
||||
{
|
||||
readonly Viewport viewport;
|
||||
readonly Selection selection;
|
||||
readonly ISelection selection;
|
||||
|
||||
[ObjectCreator.UseCtor]
|
||||
public JumpToSelectedActorsHotkeyLogic(Widget widget, ModData modData, WorldRenderer worldRenderer, World world, Dictionary<string, MiniYaml> logicArgs)
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using OpenRA.Mods.Common.Lint;
|
||||
using OpenRA.Traits;
|
||||
using OpenRA.Widgets;
|
||||
|
||||
namespace OpenRA.Mods.Common.Widgets.Logic.Ingame
|
||||
@@ -19,7 +20,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic.Ingame
|
||||
[ChromeLogicArgsHotkeys("RemoveFromControlGroupKey")]
|
||||
public class RemoveFromControlGroupHotkeyLogic : SingleHotkeyBaseLogic
|
||||
{
|
||||
readonly Selection selection;
|
||||
readonly ISelection selection;
|
||||
readonly World world;
|
||||
|
||||
[ObjectCreator.UseCtor]
|
||||
|
||||
Reference in New Issue
Block a user