Removed extra comp name attributes (#6449)

This commit is contained in:
wrexbe
2022-02-08 00:42:49 -08:00
committed by GitHub
parent e49d6b05ef
commit 425712adea
54 changed files with 45 additions and 65 deletions

View File

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

View File

@@ -12,7 +12,6 @@ namespace Content.Server.Weapon.Ranged.Ammunition.Components
/// Stores ammo and can quickly transfer ammo into a magazine.
/// </summary>
[RegisterComponent]
[ComponentProtoName("AmmoBox")]
[Friend(typeof(GunSystem))]
public sealed class AmmoBoxComponent : Component
{

View File

@@ -25,7 +25,6 @@ namespace Content.Server.Weapon.Ranged.Ammunition.Components
/// Generally used for bullets but can be used for other things like bananas
/// </summary>
[RegisterComponent]
[ComponentProtoName("Ammo")]
[Friend(typeof(GunSystem))]
public sealed class AmmoComponent : Component, ISerializationHooks
{

View File

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

View File

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

View File

@@ -10,7 +10,7 @@ using Robust.Shared.ViewVariables;
namespace Content.Server.Weapon.Ranged.Barrels.Components
{
[RegisterComponent, NetworkedComponent, ComponentProtoName("BatteryBarrel"), ComponentReference(typeof(ServerRangedBarrelComponent))]
[RegisterComponent, NetworkedComponent, ComponentReference(typeof(ServerRangedBarrelComponent))]
public sealed class BatteryBarrelComponent : ServerRangedBarrelComponent
{
// The minimum change we need before we can fire

View File

@@ -16,7 +16,7 @@ namespace Content.Server.Weapon.Ranged.Barrels.Components
/// <summary>
/// Shotguns mostly
/// </summary>
[RegisterComponent, NetworkedComponent, ComponentProtoName("BoltActionBarrel"), ComponentReference(typeof(ServerRangedBarrelComponent))]
[RegisterComponent, NetworkedComponent, ComponentReference(typeof(ServerRangedBarrelComponent))]
public sealed class BoltActionBarrelComponent : ServerRangedBarrelComponent
{
// Originally I had this logic shared with PumpBarrel and used a couple of variables to control things

View File

@@ -14,7 +14,7 @@ using Robust.Shared.ViewVariables;
namespace Content.Server.Weapon.Ranged.Barrels.Components
{
[RegisterComponent, NetworkedComponent, ComponentProtoName("MagazineBarrel"), ComponentReference(typeof(ServerRangedBarrelComponent))]
[RegisterComponent, NetworkedComponent, ComponentReference(typeof(ServerRangedBarrelComponent))]
public sealed class MagazineBarrelComponent : ServerRangedBarrelComponent
{
[Dependency] private readonly IEntityManager _entities = default!;

View File

@@ -15,7 +15,7 @@ namespace Content.Server.Weapon.Ranged.Barrels.Components
/// <summary>
/// Bolt-action rifles
/// </summary>
[RegisterComponent, NetworkedComponent, ComponentProtoName("PumpBarrel"), ComponentReference(typeof(ServerRangedBarrelComponent))]
[RegisterComponent, NetworkedComponent, ComponentReference(typeof(ServerRangedBarrelComponent))]
public sealed class PumpBarrelComponent : ServerRangedBarrelComponent, ISerializationHooks
{
public override int ShotsLeft

View File

@@ -15,7 +15,7 @@ using Robust.Shared.ViewVariables;
namespace Content.Server.Weapon.Ranged.Barrels.Components
{
[RegisterComponent, ComponentProtoName("RevolverBarrel"), NetworkedComponent, ComponentReference(typeof(ServerRangedBarrelComponent))]
[RegisterComponent, NetworkedComponent, ComponentReference(typeof(ServerRangedBarrelComponent))]
public sealed class RevolverBarrelComponent : ServerRangedBarrelComponent, ISerializationHooks
{
[ViewVariables]