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.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) { }
}