Seal/abstract/virtual everything (#6739)

This commit is contained in:
mirrorcult
2022-02-16 00:23:23 -07:00
committed by GitHub
parent 4dfcacb86a
commit ec4d4688c7
1771 changed files with 2216 additions and 2164 deletions

View File

@@ -12,7 +12,7 @@ namespace Content.Shared.Alert
/// </summary>
[Prototype("alertOrder")]
[DataDefinition]
public class AlertOrderPrototype : IPrototype, IComparer<AlertPrototype>, ISerializationHooks
public sealed class AlertOrderPrototype : IPrototype, IComparer<AlertPrototype>, ISerializationHooks
{
[ViewVariables]
[DataField("id", required: true)]

View File

@@ -13,7 +13,7 @@ namespace Content.Shared.Alert
/// An alert popup with associated icon, tooltip, and other data.
/// </summary>
[Prototype("alert")]
public class AlertPrototype : IPrototype, ISerializationHooks
public sealed class AlertPrototype : IPrototype, ISerializationHooks
{
[ViewVariables]
string IPrototype.ID => AlertType.ToString();

View File

@@ -5,7 +5,7 @@ namespace Content.Shared.Alert;
/// <summary>
/// Raised when the AlertSystem needs alert sources to recalculate their alert states and set them.
/// </summary>
public class AlertSyncEvent : EntityEventArgs
public sealed class AlertSyncEvent : EntityEventArgs
{
public EntityUid Euid { get; }

View File

@@ -11,7 +11,7 @@ namespace Content.Shared.Alert;
/// </summary>
[RegisterComponent]
[NetworkedComponent]
public class AlertsComponent : Component
public sealed class AlertsComponent : Component
{
[ViewVariables] public Dictionary<AlertKey, AlertState> Alerts = new();
}

View File

@@ -6,7 +6,7 @@ using Robust.Shared.Serialization;
namespace Content.Shared.Alert;
[Serializable, NetSerializable]
public class AlertsComponentState : ComponentState
public sealed class AlertsComponentState : ComponentState
{
public Dictionary<AlertKey, AlertState> Alerts;
@@ -14,4 +14,4 @@ public class AlertsComponentState : ComponentState
{
Alerts = alerts;
}
}
}

View File

@@ -8,7 +8,7 @@ namespace Content.Shared.Alert;
/// A message that calls the click interaction on a alert
/// </summary>
[Serializable, NetSerializable]
public class ClickAlertEvent : EntityEventArgs
public sealed class ClickAlertEvent : EntityEventArgs
{
public readonly AlertType Type;
@@ -16,4 +16,4 @@ public class ClickAlertEvent : EntityEventArgs
{
Type = alertType;
}
}
}