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

@@ -8,7 +8,7 @@ using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Shared.Body.Components
{
[RegisterComponent]
public class MechanismComponent : Component, ISerializationHooks
public sealed class MechanismComponent : Component, ISerializationHooks
{
[Dependency] private readonly IEntityManager _entMan = default!;
private SharedBodyPartComponent? _part;

View File

@@ -407,7 +407,7 @@ namespace Content.Shared.Body.Components
}
[Serializable, NetSerializable]
public class BodyComponentState : ComponentState
public sealed class BodyComponentState : ComponentState
{
private Dictionary<string, SharedBodyPartComponent>? _parts;

View File

@@ -303,7 +303,7 @@ namespace Content.Shared.Body.Components
}
[Serializable, NetSerializable]
public class BodyPartComponentState : ComponentState
public sealed class BodyPartComponentState : ComponentState
{
[NonSerialized] private List<MechanismComponent>? _mechanisms;

View File

@@ -15,7 +15,7 @@ namespace Content.Shared.Body.Components
}
[Serializable, NetSerializable]
public class BodyScannerUIState : BoundUserInterfaceState
public sealed class BodyScannerUIState : BoundUserInterfaceState
{
public readonly EntityUid Uid;

View File

@@ -9,7 +9,7 @@ namespace Content.Shared.Body.Events
/// <summary>
/// Raised on a mechanism when it is added to a body.
/// </summary>
public class AddedToBodyEvent : EntityEventArgs
public sealed class AddedToBodyEvent : EntityEventArgs
{
public SharedBodyComponent Body;
@@ -22,7 +22,7 @@ namespace Content.Shared.Body.Events
/// <summary>
/// Raised on a mechanism when it is added to a body part.
/// </summary>
public class AddedToPartEvent : EntityEventArgs
public sealed class AddedToPartEvent : EntityEventArgs
{
public SharedBodyPartComponent Part;
@@ -35,7 +35,7 @@ namespace Content.Shared.Body.Events
/// <summary>
/// Raised on a mechanism when it is added to a body part within a body.
/// </summary>
public class AddedToPartInBodyEvent : EntityEventArgs
public sealed class AddedToPartInBodyEvent : EntityEventArgs
{
public SharedBodyComponent Body;
public SharedBodyPartComponent Part;
@@ -50,7 +50,7 @@ namespace Content.Shared.Body.Events
/// <summary>
/// Raised on a mechanism when it is removed from a body.
/// </summary>
public class RemovedFromBodyEvent : EntityEventArgs
public sealed class RemovedFromBodyEvent : EntityEventArgs
{
public SharedBodyComponent Old;
@@ -63,7 +63,7 @@ namespace Content.Shared.Body.Events
/// <summary>
/// Raised on a mechanism when it is removed from a body part.
/// </summary>
public class RemovedFromPartEvent : EntityEventArgs
public sealed class RemovedFromPartEvent : EntityEventArgs
{
public SharedBodyPartComponent Old;
@@ -76,7 +76,7 @@ namespace Content.Shared.Body.Events
/// <summary>
/// Raised on a mechanism when it is removed from a body part within a body.
/// </summary>
public class RemovedFromPartInBodyEvent : EntityEventArgs
public sealed class RemovedFromPartInBodyEvent : EntityEventArgs
{
public SharedBodyComponent OldBody;
public SharedBodyPartComponent OldPart;

View File

@@ -2,7 +2,7 @@
namespace Content.Shared.Body.Events
{
public class ShiverAttemptEvent : CancellableEntityEventArgs
public sealed class ShiverAttemptEvent : CancellableEntityEventArgs
{
public ShiverAttemptEvent(EntityUid uid)
{

View File

@@ -2,7 +2,7 @@
namespace Content.Shared.Body.Events
{
public class SweatAttemptEvent : CancellableEntityEventArgs
public sealed class SweatAttemptEvent : CancellableEntityEventArgs
{
public SweatAttemptEvent(EntityUid uid)
{

View File

@@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables;
namespace Content.Shared.Body.Part
{
public class BodyPartSlot
public sealed class BodyPartSlot
{
public BodyPartSlot(string id, BodyPartType partType, IEnumerable<BodyPartSlot> connections)
{

View File

@@ -21,7 +21,7 @@ namespace Content.Shared.Body.Part
[Serializable, NetSerializable]
public class BodyPartAddedEventArgs : EventArgs
public sealed class BodyPartAddedEventArgs : EventArgs
{
public BodyPartAddedEventArgs(string slot, SharedBodyPartComponent part)
{

View File

@@ -19,7 +19,7 @@ namespace Content.Shared.Body.Part
}
[Serializable, NetSerializable]
public class BodyPartRemovedEventArgs : EventArgs
public sealed class BodyPartRemovedEventArgs : EventArgs
{
public BodyPartRemovedEventArgs(string slot, SharedBodyPartComponent part)
{

View File

@@ -12,7 +12,7 @@ namespace Content.Shared.Body.Prototypes
/// </summary>
[Prototype("bodyPreset")]
[Serializable, NetSerializable]
public class BodyPresetPrototype : IPrototype
public sealed class BodyPresetPrototype : IPrototype
{
[ViewVariables]
[DataField("id", required: true)]

View File

@@ -13,7 +13,7 @@ namespace Content.Shared.Body.Prototypes
/// </summary>
[Prototype("bodyTemplate")]
[Serializable, NetSerializable]
public class BodyTemplatePrototype : IPrototype, ISerializationHooks
public sealed class BodyTemplatePrototype : IPrototype, ISerializationHooks
{
[DataField("slots")]
private Dictionary<string, BodyPartType> _slots = new();

View File

@@ -4,7 +4,7 @@ using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Shared.Body.Prototypes
{
[Prototype("metabolismGroup")]
public class MetabolismGroupPrototype : IPrototype
public sealed class MetabolismGroupPrototype : IPrototype
{
[DataField("id", required: true)]
public string ID { get; } = default!;

View File

@@ -4,7 +4,7 @@ using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Shared.Body.Prototypes
{
[Prototype("metabolizerType")]
public class MetabolizerTypePrototype : IPrototype
public sealed class MetabolizerTypePrototype : IPrototype
{
[DataField("id", required: true)]
public string ID { get; } = default!;