Seal/abstract/virtual everything (#6739)
This commit is contained in:
@@ -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)]
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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; }
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user