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

@@ -7,7 +7,7 @@ using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Server.Wieldable.Components
{
[RegisterComponent, Friend(typeof(WieldableSystem))]
public class IncreaseDamageOnWieldComponent : Component
public sealed class IncreaseDamageOnWieldComponent : Component
{
[DataField("modifiers", required: true)]
public DamageModifierSet Modifiers = default!;

View File

@@ -9,7 +9,7 @@ namespace Content.Server.Wieldable.Components
/// Used for objects that can be wielded in two or more hands,
/// </summary>
[RegisterComponent, Friend(typeof(WieldableSystem))]
public class WieldableComponent : Component
public sealed class WieldableComponent : Component
{
[DataField("wieldSound")]
public SoundSpecifier? WieldSound = new SoundPathSpecifier("/Audio/Effects/thudswoosh.ogg");

View File

@@ -16,7 +16,7 @@ using Robust.Shared.Player;
namespace Content.Server.Wieldable
{
public class WieldableSystem : EntitySystem
public sealed class WieldableSystem : EntitySystem
{
[Dependency] private readonly DoAfterSystem _doAfter = default!;
[Dependency] private readonly HandVirtualItemSystem _virtualItemSystem = default!;
@@ -237,14 +237,14 @@ namespace Content.Server.Wieldable
#region Events
public class BeforeWieldEvent : CancellableEntityEventArgs
public sealed class BeforeWieldEvent : CancellableEntityEventArgs
{
}
/// <summary>
/// Raised on the item that has been wielded.
/// </summary>
public class ItemWieldedEvent : EntityEventArgs
public sealed class ItemWieldedEvent : EntityEventArgs
{
public EntityUid? User;
@@ -257,7 +257,7 @@ namespace Content.Server.Wieldable
/// <summary>
/// Raised on the user who wielded the item.
/// </summary>
public class WieldedItemEvent : EntityEventArgs
public sealed class WieldedItemEvent : EntityEventArgs
{
public EntityUid Item;
@@ -267,14 +267,14 @@ namespace Content.Server.Wieldable
}
}
public class BeforeUnwieldEvent : CancellableEntityEventArgs
public sealed class BeforeUnwieldEvent : CancellableEntityEventArgs
{
}
/// <summary>
/// Raised on the item that has been unwielded.
/// </summary>
public class ItemUnwieldedEvent : EntityEventArgs
public sealed class ItemUnwieldedEvent : EntityEventArgs
{
public EntityUid? User;
/// <summary>
@@ -292,7 +292,7 @@ namespace Content.Server.Wieldable
/// <summary>
/// Raised on the user who unwielded the item.
/// </summary>
public class UnwieldedItemEvent : EntityEventArgs
public sealed class UnwieldedItemEvent : EntityEventArgs
{
public EntityUid Item;