From 39803e1d770a21a0a15e75b50a64d04446602e1d Mon Sep 17 00:00:00 2001 From: Mustafa Alperen Seki Date: Wed, 14 Aug 2024 11:52:02 +0300 Subject: [PATCH] C# code style fixes. --- OpenRA.Mods.GenSDK/Orders/GenericTargeter.cs | 4 ++-- .../Logic/Ingame/Hotkeys/CycleCollectorsHotkeyLogic.cs | 2 +- mod.config | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenRA.Mods.GenSDK/Orders/GenericTargeter.cs b/OpenRA.Mods.GenSDK/Orders/GenericTargeter.cs index c4dceaf3..a9269e8f 100644 --- a/OpenRA.Mods.GenSDK/Orders/GenericTargeter.cs +++ b/OpenRA.Mods.GenSDK/Orders/GenericTargeter.cs @@ -28,8 +28,8 @@ public GenericTargeter(string order, int priority, Func canTarget, this.useCursor = useCursor; } - public string OrderID { get; private set; } - public int OrderPriority { get; private set; } + public string OrderID { get; } + public int OrderPriority { get; } public bool CanTarget(Actor self, in Target target, ref TargetModifiers modifiers, ref string cursor) { diff --git a/OpenRA.Mods.GenSDK/Widgets/Logic/Ingame/Hotkeys/CycleCollectorsHotkeyLogic.cs b/OpenRA.Mods.GenSDK/Widgets/Logic/Ingame/Hotkeys/CycleCollectorsHotkeyLogic.cs index 0e6cb629..911fdef2 100644 --- a/OpenRA.Mods.GenSDK/Widgets/Logic/Ingame/Hotkeys/CycleCollectorsHotkeyLogic.cs +++ b/OpenRA.Mods.GenSDK/Widgets/Logic/Ingame/Hotkeys/CycleCollectorsHotkeyLogic.cs @@ -44,7 +44,7 @@ protected override bool OnHotkeyActivated(KeyInput e) .Where(a => a.IsInWorld && a.Owner == player) .ToList(); - if (!collectors.Any()) + if (collectors.Count == 0) return true; var next = collectors diff --git a/mod.config b/mod.config index fc7259b8..049cdead 100644 --- a/mod.config +++ b/mod.config @@ -9,7 +9,7 @@ MOD_ID="gen" # The OpenRA engine version to use for this project. -ENGINE_VERSION="2a853b13c65a103edccb38a3c630ccc1bd4e4a70" +ENGINE_VERSION="f076b5cfa535987489e7ab8a5cb4f4dc3067da49" ############################################################################## # Packaging