Fix CA1052
This commit is contained in:
@@ -13,7 +13,7 @@ using System.IO;
|
||||
|
||||
namespace OpenRA.Mods.Common.FileFormats
|
||||
{
|
||||
public class ImaAdpcmReader
|
||||
public static class ImaAdpcmReader
|
||||
{
|
||||
static readonly int[] IndexAdjust = { -1, -1, -1, -1, 2, 4, 6, 8 };
|
||||
static readonly int[] StepTable =
|
||||
|
||||
@@ -15,7 +15,7 @@ using System;
|
||||
|
||||
namespace OpenRA.Mods.Common.FileFormats
|
||||
{
|
||||
public class WestwoodCompressedReader
|
||||
public static class WestwoodCompressedReader
|
||||
{
|
||||
static readonly int[] AudWsStepTable2 = { -2, -1, 0, 1 };
|
||||
static readonly int[] AudWsStepTable4 = { -9, -8, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 8 };
|
||||
|
||||
@@ -16,7 +16,7 @@ using FS = OpenRA.FileSystem.FileSystem;
|
||||
|
||||
namespace OpenRA.Mods.Common.Installer
|
||||
{
|
||||
public class InstallerUtils
|
||||
public static class InstallerUtils
|
||||
{
|
||||
public static bool IsValidSourcePath(string path, ModContent.ModSource source)
|
||||
{
|
||||
|
||||
@@ -19,7 +19,7 @@ using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.Common.Lint
|
||||
{
|
||||
public class LintExts
|
||||
public static class LintExts
|
||||
{
|
||||
public static IEnumerable<string> GetFieldValues(object ruleInfo, FieldInfo fieldInfo,
|
||||
LintDictionaryReference dictionaryReference = LintDictionaryReference.None)
|
||||
|
||||
@@ -27,9 +27,8 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public override object Create(ActorInitializer init) { return Encyclopedia.Instance; }
|
||||
}
|
||||
|
||||
public class Encyclopedia
|
||||
public readonly struct Encyclopedia
|
||||
{
|
||||
public static readonly Encyclopedia Instance = new();
|
||||
Encyclopedia() { }
|
||||
public static readonly object Instance = default(Encyclopedia);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
namespace OpenRA.Mods.Common.Traits.Render
|
||||
{
|
||||
public class RenderUtils
|
||||
public static class RenderUtils
|
||||
{
|
||||
public static int ZOffsetFromCenter(Actor self, WPos pos, int offset)
|
||||
{
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
}
|
||||
}
|
||||
|
||||
public class OrderButtonsChromeUtils
|
||||
public static class OrderButtonsChromeUtils
|
||||
{
|
||||
public static void BindOrderButton<T>(World world, ButtonWidget w, string icon)
|
||||
where T : IOrderGenerator, new()
|
||||
|
||||
Reference in New Issue
Block a user