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,6 +8,7 @@ using Robust.Shared.ViewVariables;
namespace Content.Server.Weapon.Melee.Components
{
[RegisterComponent]
[Virtual]
public class MeleeWeaponComponent : Component
{
[ViewVariables(VVAccess.ReadWrite)]

View File

@@ -5,7 +5,7 @@ namespace Content.Server.Weapon.Melee.Components
// TODO: Remove this, just use MeleeWeapon...
[RegisterComponent]
[ComponentReference(typeof(MeleeWeaponComponent))]
public class UnarmedCombatComponent : MeleeWeaponComponent
public sealed class UnarmedCombatComponent : MeleeWeaponComponent
{
}
}

View File

@@ -8,7 +8,7 @@ using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Server.Weapon.Melee.EnergySword
{
[RegisterComponent]
internal class EnergySwordComponent : Component
internal sealed class EnergySwordComponent : Component
{
public Color BladeColor = Color.DodgerBlue;

View File

@@ -11,7 +11,7 @@ using Robust.Shared.Random;
namespace Content.Server.Weapon.Melee.EnergySword
{
internal class EnergySwordSystem : EntitySystem
internal sealed class EnergySwordSystem : EntitySystem
{
[Dependency] private readonly ActionBlockerSystem _blockerSystem = default!;
[Dependency] private readonly IRobustRandom _random = default!;

View File

@@ -315,7 +315,7 @@ namespace Content.Server.Weapon.Melee
/// Raised directed on the melee weapon entity used to attack something in combat mode,
/// whether through a click attack or wide attack.
/// </summary>
public class MeleeHitEvent : HandledEntityEventArgs
public sealed class MeleeHitEvent : HandledEntityEventArgs
{
/// <summary>
/// Modifier sets to apply to the hit event when it's all said and done.
@@ -358,7 +358,7 @@ namespace Content.Server.Weapon.Melee
/// Raised directed on the melee weapon entity used to attack something in combat mode,
/// whether through a click attack or wide attack.
/// </summary>
public class MeleeInteractEvent : EntityEventArgs
public sealed class MeleeInteractEvent : EntityEventArgs
{
/// <summary>
/// The entity interacted with.

View File

@@ -2,7 +2,7 @@ using Robust.Shared.Serialization;
namespace Content.Server.Weapon.Ranged.Ammunition.Components
{
public partial class AmmoComponentData : ISerializationHooks
public sealed partial class AmmoComponentData : ISerializationHooks
{
}
}

View File

@@ -11,7 +11,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
namespace Content.Server.Weapon.Ranged.Ammunition.Components
{
[RegisterComponent]
public class RangedMagazineComponent : Component
public sealed class RangedMagazineComponent : Component
{
public readonly Stack<EntityUid> SpawnedAmmo = new();
public Container AmmoContainer = default!;

View File

@@ -11,7 +11,7 @@ namespace Content.Server.Weapon.Ranged.Ammunition.Components
/// Used to load certain ranged weapons quickly
/// </summary>
[RegisterComponent]
public class SpeedLoaderComponent : Component
public sealed class SpeedLoaderComponent : Component
{
[DataField("caliber")] public BallisticCaliber Caliber = BallisticCaliber.Unspecified;
public int Capacity => _capacity;