Fix CA1802

This commit is contained in:
RoosterDragon
2023-03-12 15:46:31 +00:00
committed by abcdefg30
parent 0958197df2
commit a50e72f68d
8 changed files with 17 additions and 13 deletions

View File

@@ -35,6 +35,9 @@ namespace OpenRA
public sealed class Actor : IScriptBindable, IScriptNotifyBind, ILuaTableBinding, ILuaEqualityBinding, ILuaToStringBinding, IEquatable<Actor>, IDisposable
{
/// <summary>Value used to represent an invalid token.</summary>
public const int InvalidConditionToken = -1;
internal readonly struct SyncHash
{
public readonly ISync Trait;
@@ -78,9 +81,6 @@ namespace OpenRA
public WRot Orientation => facing?.Orientation ?? WRot.None;
/// <summary>Value used to represent an invalid token.</summary>
public static readonly int InvalidConditionToken = -1;
sealed class ConditionState
{
/// <summary>Delegates that have registered to be notified when this condition changes.</summary>

View File

@@ -19,7 +19,7 @@ namespace OpenRA.FileSystem
{
public class ZipFileLoader : IPackageLoader
{
static readonly uint ZipSignature = 0x04034b50;
const uint ZipSignature = 0x04034b50;
class ReadOnlyZipFile : IReadOnlyPackage
{

View File

@@ -17,7 +17,7 @@ namespace OpenRA
{
public static class TextNotificationsManager
{
public static readonly int SystemClientId = -1;
public const int SystemClientId = -1;
static readonly string SystemMessageLabel;
public static long ChatDisabledUntil { get; internal set; }