Fix sealed warnings

This commit is contained in:
js6pak committed 2023-01-15 19:21:14 +01:00
1 parent 375a4170e7
commit 30027d89ea
5 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ namespace Reactor.Benchmarks;
[StopOnFirstError, Config(typeof(Config))] [StopOnFirstError, Config(typeof(Config))]
public class AssetBundleBenchmarks public class AssetBundleBenchmarks
{ {
private class Config : ManualConfig private sealed class Config : ManualConfig
{ {
public Config() public Config()
{ {
@@ -4,7 +4,7 @@ using InnerNet;
namespace Reactor.Networking.Patches; namespace Reactor.Networking.Patches;
internal class ReactorClientData internal sealed class ReactorClientData
{ {
public ClientData ClientData { get; } public ClientData ClientData { get; }
+1 -1
View File
@@ -93,7 +93,7 @@ public partial class ReactorPlugin : BasePlugin
} }
[RegisterInIl2Cpp] [RegisterInIl2Cpp]
private class ReactorComponent : MonoBehaviour private sealed class ReactorComponent : MonoBehaviour
{ {
[HideFromIl2Cpp] [HideFromIl2Cpp]
public ReactorPlugin? Plugin { get; internal set; } public ReactorPlugin? Plugin { get; internal set; }
+1 -1
View File
@@ -14,7 +14,7 @@ namespace Reactor.Utilities;
public static class Coroutines public static class Coroutines
{ {
[RegisterInIl2Cpp] [RegisterInIl2Cpp]
internal class Component : MonoBehaviour internal sealed class Component : MonoBehaviour
{ {
internal static Component? Instance { get; set; } internal static Component? Instance { get; set; }
+1 -1
View File
@@ -7,7 +7,7 @@ using Object = UnityEngine.Object;
namespace Reactor.Utilities; namespace Reactor.Utilities;
internal class RegionInfoWatcher : IDisposable internal sealed class RegionInfoWatcher : IDisposable
{ {
private FileSystemWatcher Watcher { get; } private FileSystemWatcher Watcher { get; }