Skip to content
This repository was archived by the owner on Jun 27, 2024. It is now read-only.

Commit 18c7288

Browse files
committed
C# changes
1 parent 215397f commit 18c7288

5 files changed

Lines changed: 13 additions & 11 deletions

File tree

src/Commands/CommandOpenMod.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ namespace OpenMod.Installer.RocketMod.Commands
1111
{
1212
public class CommandOpenMod : IRocketCommand
1313
{
14-
private static readonly List<IJob> s_Jobs = new List<IJob>();
15-
private static readonly List<CommandWindowInputted> s_RocketModComandWindowsDelegates = new List<CommandWindowInputted>();
14+
private static readonly List<IJob> s_Jobs = new();
15+
private static readonly List<CommandWindowInputted> s_RocketModComandWindowsDelegates = new();
1616
private static CommandStep s_CurrentStep;
1717
private static string[] s_Args;
1818
public void Execute(IRocketPlayer caller, string[] command)
@@ -65,9 +65,10 @@ private void UnbindCommandInput()
6565
RestoreRocketModConsoleInput();
6666
}
6767

68-
private void OnCommandWindowInputted(string text, ref bool shouldexecutecommand)
68+
// ReSharper disable once RedundantAssignment
69+
private void OnCommandWindowInputted(string text, ref bool shouldExecuteCommand)
6970
{
70-
shouldexecutecommand = false;
71+
shouldExecuteCommand = false;
7172
text = text.Trim();
7273

7374
if (text.Equals("cancel", StringComparison.OrdinalIgnoreCase))

src/Commands/OpenModEconomyStep.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ public OpenModEconomyStep(List<IJob> jobs) : base(jobs)
1111

1212
public override string Text { get; } = "Which economy system do you want to use?";
1313

14-
public override List<CommandStepChoice> Choices { get; } = new List<CommandStepChoice>
14+
public override List<CommandStepChoice> Choices { get; } = new()
1515
{
16-
new CommandStepChoice
16+
new()
1717
{
1818
Name = "RocketMod (recommended)",
1919
Description = "OpenMod will use RocketMod Uconomy for economy."
2020
},
21-
new CommandStepChoice
21+
new()
2222
{
2323
Name = "OpenMod",
2424
Description = "RocketMod will use OpenMod's economy system. Works with plugins that use Uconomy. Will import existing data from Uconomy."

src/Commands/OpenModPermissionsStep.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ public OpenModPermissionsStep(List<IJob> jobs) : base(jobs)
1111

1212
public override string Text { get; } = "Which permissions system do you want to use?";
1313

14-
public override List<CommandStepChoice> Choices { get; } = new List<CommandStepChoice>
14+
public override List<CommandStepChoice> Choices { get; } = new()
1515
{
16-
new CommandStepChoice
16+
new()
1717
{
1818
Name = "RocketMod (recommended)",
1919
Description = "OpenMod will use RocketMod's Permissions.config.xml for permissions."
2020
},
21-
new CommandStepChoice
21+
new()
2222
{
2323
Name = "OpenMod",
2424
Description = "RocketMod will use OpenMod's permission system. Will import existing permissions from RocketMod's Permissions.config.xml."

src/Helpers/AssemblyHelper.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Linq;
32
using System.Reflection;
43

54
namespace OpenMod.Installer.RocketMod.Helpers
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
2+
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=StringLiteralTypo/@EntryIndexedValue">DO_NOT_SHOW</s:String></wpf:ResourceDictionary>

0 commit comments

Comments
 (0)