Seal/abstract/virtual everything (#6739)
This commit is contained in:
@@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables;
|
||||
namespace Content.Server.Construction.Components
|
||||
{
|
||||
[RegisterComponent, Friend(typeof(AnchorableSystem))]
|
||||
public class AnchorableComponent : Component
|
||||
public sealed class AnchorableComponent : Component
|
||||
{
|
||||
[DataField("tool", customTypeSerializer:typeof(PrototypeIdSerializer<ToolQualityPrototype>))]
|
||||
public string Tool { get; private set; } = "Anchoring";
|
||||
@@ -44,12 +44,12 @@ namespace Content.Server.Construction.Components
|
||||
}
|
||||
}
|
||||
|
||||
public class AnchorAttemptEvent : BaseAnchoredAttemptEvent
|
||||
public sealed class AnchorAttemptEvent : BaseAnchoredAttemptEvent
|
||||
{
|
||||
public AnchorAttemptEvent(EntityUid user, EntityUid tool) : base(user, tool) { }
|
||||
}
|
||||
|
||||
public class UnanchorAttemptEvent : BaseAnchoredAttemptEvent
|
||||
public sealed class UnanchorAttemptEvent : BaseAnchoredAttemptEvent
|
||||
{
|
||||
public UnanchorAttemptEvent(EntityUid user, EntityUid tool) : base(user, tool) { }
|
||||
}
|
||||
@@ -69,7 +69,7 @@ namespace Content.Server.Construction.Components
|
||||
/// <summary>
|
||||
/// Raised just before the entity's body type is changed.
|
||||
/// </summary>
|
||||
public class BeforeAnchoredEvent : BaseAnchoredEvent
|
||||
public sealed class BeforeAnchoredEvent : BaseAnchoredEvent
|
||||
{
|
||||
public BeforeAnchoredEvent(EntityUid user, EntityUid tool) : base(user, tool) { }
|
||||
}
|
||||
@@ -79,7 +79,7 @@ namespace Content.Server.Construction.Components
|
||||
/// general <see cref="AnchorStateChangedEvent"/>. This event has the benefit of having user & tool information,
|
||||
/// as a result of interactions mediated by the <see cref="AnchorableSystem"/>.
|
||||
/// </summary>
|
||||
public class UserAnchoredEvent : BaseAnchoredEvent
|
||||
public sealed class UserAnchoredEvent : BaseAnchoredEvent
|
||||
{
|
||||
public UserAnchoredEvent(EntityUid user, EntityUid tool) : base(user, tool) { }
|
||||
}
|
||||
@@ -87,7 +87,7 @@ namespace Content.Server.Construction.Components
|
||||
/// <summary>
|
||||
/// Raised just before the entity's body type is changed.
|
||||
/// </summary>
|
||||
public class BeforeUnanchoredEvent : BaseAnchoredEvent
|
||||
public sealed class BeforeUnanchoredEvent : BaseAnchoredEvent
|
||||
{
|
||||
public BeforeUnanchoredEvent(EntityUid user, EntityUid tool) : base(user, tool) { }
|
||||
}
|
||||
@@ -98,7 +98,7 @@ namespace Content.Server.Construction.Components
|
||||
/// event has the benefit of having user & tool information, whereas the more general event may be due to
|
||||
/// explosions or grid-destruction or other interactions not mediated by the <see cref="AnchorableSystem"/>.
|
||||
/// </summary>
|
||||
public class UserUnanchoredEvent : BaseAnchoredEvent
|
||||
public sealed class UserUnanchoredEvent : BaseAnchoredEvent
|
||||
{
|
||||
public UserUnanchoredEvent(EntityUid user, EntityUid tool) : base(user, tool) { }
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables;
|
||||
namespace Content.Server.Construction.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
public class ComputerBoardComponent : Component
|
||||
public sealed class ComputerBoardComponent : Component
|
||||
{
|
||||
[ViewVariables]
|
||||
[DataField("prototype")]
|
||||
|
||||
@@ -9,7 +9,7 @@ using Robust.Shared.ViewVariables;
|
||||
namespace Content.Server.Construction.Components
|
||||
{
|
||||
[RegisterComponent, Friend(typeof(ConstructionSystem))]
|
||||
public class ConstructionComponent : Component
|
||||
public sealed class ConstructionComponent : Component
|
||||
{
|
||||
[DataField("graph", required:true, customTypeSerializer:typeof(PrototypeIdSerializer<ConstructionGraphPrototype>))]
|
||||
public string Graph { get; set; } = string.Empty;
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Content.Server.Construction.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
#pragma warning disable 618
|
||||
public class MachineBoardComponent : Component, IExamine
|
||||
public sealed class MachineBoardComponent : Component, IExamine
|
||||
#pragma warning restore 618
|
||||
{
|
||||
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
||||
|
||||
@@ -8,7 +8,7 @@ using Robust.Shared.Containers;
|
||||
namespace Content.Server.Construction.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
public class MachineFrameComponent : Component, IInteractUsing
|
||||
public sealed class MachineFrameComponent : Component, IInteractUsing
|
||||
{
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
[Dependency] private readonly IComponentFactory _componentFactory = default!;
|
||||
@@ -357,7 +357,7 @@ namespace Content.Server.Construction.Components
|
||||
}
|
||||
|
||||
[DataDefinition]
|
||||
public class MachineDeconstructedEvent : EntityEventArgs
|
||||
public sealed class MachineDeconstructedEvent : EntityEventArgs
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Content.Server.Construction.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
#pragma warning disable 618
|
||||
public class MachinePartComponent : Component, IExamine
|
||||
public sealed class MachinePartComponent : Component, IExamine
|
||||
#pragma warning restore 618
|
||||
{
|
||||
// I'm so sorry for hard-coding this. But trust me, it should make things less painful.
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace Content.Server.Construction.Components
|
||||
/// For example, glass shard can be refined to glass sheet.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public class WelderRefinableComponent : Component, IInteractUsing
|
||||
public sealed class WelderRefinableComponent : Component, IInteractUsing
|
||||
{
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user