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

@@ -209,7 +209,7 @@ public enum DoorVisuals
}
[Serializable, NetSerializable]
public class DoorComponentState : ComponentState
public sealed class DoorComponentState : ComponentState
{
public readonly DoorState DoorState;
public readonly List<EntityUid> CurrentlyCrushing;

View File

@@ -13,14 +13,14 @@ public abstract class SharedAirlockComponent : Component
[ViewVariables(VVAccess.ReadWrite)]
[DataField("safety")]
public bool Safety = true;
[ViewVariables(VVAccess.ReadWrite)]
[DataField("emergencyAccess")]
public bool EmergencyAccess = false;
}
[Serializable, NetSerializable]
public class AirlockComponentState : ComponentState
public sealed class AirlockComponentState : ComponentState
{
public readonly bool Safety;

View File

@@ -6,7 +6,7 @@ namespace Content.Shared.Doors
/// <summary>
/// Raised when the door's State variable is changed to a new variable that it was not equal to before.
/// </summary>
public class DoorStateChangedEvent : EntityEventArgs
public sealed class DoorStateChangedEvent : EntityEventArgs
{
public readonly DoorState State;
@@ -20,7 +20,7 @@ namespace Content.Shared.Doors
/// Raised when the door is determining whether it is able to open.
/// Cancel to stop the door from being opened.
/// </summary>
public class BeforeDoorOpenedEvent : CancellableEntityEventArgs
public sealed class BeforeDoorOpenedEvent : CancellableEntityEventArgs
{
}
@@ -33,7 +33,7 @@ namespace Content.Shared.Doors
/// closed (opaque & collidable). If canceled while partially closing, it will start opening again. Useful for
/// things like airlock anti-crush safety features.
/// </remarks>
public class BeforeDoorClosedEvent : CancellableEntityEventArgs
public sealed class BeforeDoorClosedEvent : CancellableEntityEventArgs
{
}
@@ -41,7 +41,7 @@ namespace Content.Shared.Doors
/// Called when the door is determining whether it is able to deny.
/// Cancel to stop the door from being able to deny.
/// </summary>
public class BeforeDoorDeniedEvent : CancellableEntityEventArgs
public sealed class BeforeDoorDeniedEvent : CancellableEntityEventArgs
{
}
@@ -52,7 +52,7 @@ namespace Content.Shared.Doors
/// <remarks>
/// This is called when a door decides whether it SHOULD auto close, not when it actually closes.
/// </remarks>
public class BeforeDoorAutoCloseEvent : CancellableEntityEventArgs
public sealed class BeforeDoorAutoCloseEvent : CancellableEntityEventArgs
{
}
@@ -60,7 +60,7 @@ namespace Content.Shared.Doors
/// Raised to determine how long the door's pry time should be modified by.
/// Multiply PryTimeModifier by the desired amount.
/// </summary>
public class DoorGetPryTimeModifierEvent : EntityEventArgs
public sealed class DoorGetPryTimeModifierEvent : EntityEventArgs
{
public float PryTimeModifier = 1.0f;
}
@@ -69,7 +69,7 @@ namespace Content.Shared.Doors
/// Raised when an attempt to pry open the door is made.
/// Cancel to stop the door from being pried open.
/// </summary>
public class BeforeDoorPryEvent : CancellableEntityEventArgs
public sealed class BeforeDoorPryEvent : CancellableEntityEventArgs
{
public readonly EntityUid User;