Seal/abstract/virtual everything (#6739)
This commit is contained in:
@@ -8,6 +8,7 @@ using Robust.Shared.ViewVariables;
|
||||
namespace Content.Server.Weapon.Melee.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Virtual]
|
||||
public class MeleeWeaponComponent : Component
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
|
||||
@@ -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
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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!;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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!;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user