Seal/abstract/virtual everything (#6739)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace Content.Shared.Body.Components
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public class BodyScannerUIState : BoundUserInterfaceState
|
||||
public sealed class BodyScannerUIState : BoundUserInterfaceState
|
||||
{
|
||||
public readonly EntityUid Uid;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Content.Shared.Body.Events
|
||||
{
|
||||
public class ShiverAttemptEvent : CancellableEntityEventArgs
|
||||
public sealed class ShiverAttemptEvent : CancellableEntityEventArgs
|
||||
{
|
||||
public ShiverAttemptEvent(EntityUid uid)
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Content.Shared.Body.Events
|
||||
{
|
||||
public class SweatAttemptEvent : CancellableEntityEventArgs
|
||||
public sealed class SweatAttemptEvent : CancellableEntityEventArgs
|
||||
{
|
||||
public SweatAttemptEvent(EntityUid uid)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)]
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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!;
|
||||
|
||||
@@ -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!;
|
||||
|
||||
Reference in New Issue
Block a user