Removed extra comp name attributes (#6449)
This commit is contained in:
@@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables;
|
|||||||
|
|
||||||
namespace Content.Server.Atmos.Components
|
namespace Content.Server.Atmos.Components
|
||||||
{
|
{
|
||||||
[RegisterComponent, ComponentProtoName("AtmosPlaque")]
|
[RegisterComponent]
|
||||||
public sealed class AtmosPlaqueComponent : Component
|
public sealed class AtmosPlaqueComponent : Component
|
||||||
{
|
{
|
||||||
[DataField("plaqueType")] public PlaqueType Type = PlaqueType.Unset;
|
[DataField("plaqueType")] public PlaqueType Type = PlaqueType.Unset;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using Robust.Shared.ViewVariables;
|
|||||||
|
|
||||||
namespace Content.Server.Bible.Components
|
namespace Content.Server.Bible.Components
|
||||||
{
|
{
|
||||||
[RegisterComponent, ComponentProtoName("Bible")]
|
[RegisterComponent]
|
||||||
public sealed class BibleComponent : Component
|
public sealed class BibleComponent : Component
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,6 @@ using Robust.Shared.Analyzers;
|
|||||||
|
|
||||||
namespace Content.Server.Bible.Components
|
namespace Content.Server.Bible.Components
|
||||||
{
|
{
|
||||||
[RegisterComponent, ComponentProtoName("BibleUser")]
|
[RegisterComponent]
|
||||||
public sealed class BibleUserComponent : Component {}
|
public sealed class BibleUserComponent : Component {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using Content.Server.Body.Systems;
|
using Content.Server.Body.Systems;
|
||||||
using Robust.Shared.Analyzers;
|
using Robust.Shared.Analyzers;
|
||||||
using Robust.Shared.GameObjects;
|
using Robust.Shared.GameObjects;
|
||||||
using Robust.Shared.Serialization.Manager.Attributes;
|
using Robust.Shared.Serialization.Manager.Attributes;
|
||||||
@@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables;
|
|||||||
|
|
||||||
namespace Content.Server.Body.Components;
|
namespace Content.Server.Body.Components;
|
||||||
|
|
||||||
[RegisterComponent, ComponentProtoName("ThermalRegulator")]
|
[RegisterComponent]
|
||||||
[Friend(typeof(ThermalRegulatorSystem))]
|
[Friend(typeof(ThermalRegulatorSystem))]
|
||||||
public class ThermalRegulatorComponent : Component
|
public class ThermalRegulatorComponent : Component
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using Content.Shared.Damage;
|
using Content.Shared.Damage;
|
||||||
using Robust.Shared.Analyzers;
|
using Robust.Shared.Analyzers;
|
||||||
using Robust.Shared.GameObjects;
|
using Robust.Shared.GameObjects;
|
||||||
using Robust.Shared.Serialization.Manager.Attributes;
|
using Robust.Shared.Serialization.Manager.Attributes;
|
||||||
@@ -11,7 +11,6 @@ namespace Content.Server.Climbing.Components;
|
|||||||
/// not very generalized with regards to naming.
|
/// not very generalized with regards to naming.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[RegisterComponent, Friend(typeof(ClimbSystem))]
|
[RegisterComponent, Friend(typeof(ClimbSystem))]
|
||||||
[ComponentProtoName("GlassTable")]
|
|
||||||
public class GlassTableComponent : Component
|
public class GlassTableComponent : Component
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ using Robust.Shared.ViewVariables;
|
|||||||
namespace Content.Server.DeviceNetwork.Components
|
namespace Content.Server.DeviceNetwork.Components
|
||||||
{
|
{
|
||||||
[RegisterComponent]
|
[RegisterComponent]
|
||||||
[ComponentProtoName("ApcNetworkConnection")]
|
|
||||||
[Friend(typeof(ApcNetworkSystem))]
|
[Friend(typeof(ApcNetworkSystem))]
|
||||||
|
[ComponentProtoName("ApcNetworkConnection")]
|
||||||
public class ApcNetworkComponent : Component
|
public class ApcNetworkComponent : Component
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using Robust.Shared.ViewVariables;
|
|||||||
|
|
||||||
namespace Content.Server.Explosion.Components
|
namespace Content.Server.Explosion.Components
|
||||||
{
|
{
|
||||||
[RegisterComponent, ComponentProtoName("ClusterGrenade"), Friend(typeof(ClusterGrenadeSystem))]
|
[RegisterComponent, Friend(typeof(ClusterGrenadeSystem))]
|
||||||
public sealed class ClusterGrenadeComponent : Component
|
public sealed class ClusterGrenadeComponent : Component
|
||||||
{
|
{
|
||||||
public Container GrenadesContainer = default!;
|
public Container GrenadesContainer = default!;
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using Robust.Shared.GameObjects;
|
using Robust.Shared.GameObjects;
|
||||||
using Robust.Shared.Serialization.Manager.Attributes;
|
using Robust.Shared.Serialization.Manager.Attributes;
|
||||||
|
|
||||||
namespace Content.Server.Explosion.Components
|
namespace Content.Server.Explosion.Components
|
||||||
{
|
{
|
||||||
[RegisterComponent, ComponentProtoName("OnUseTimerTrigger")]
|
[RegisterComponent]
|
||||||
public class OnUseTimerTriggerComponent : Component
|
public class OnUseTimerTriggerComponent : Component
|
||||||
{
|
{
|
||||||
[DataField("delay")] public float Delay = 0f;
|
[DataField("delay")] public float Delay = 0f;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ using Robust.Shared.GameObjects;
|
|||||||
|
|
||||||
namespace Content.Server.Guardian;
|
namespace Content.Server.Guardian;
|
||||||
|
|
||||||
[RegisterComponent, ComponentProtoName("CanHostGuardian")]
|
[RegisterComponent]
|
||||||
public class CanHostGuardianComponent : Component
|
public class CanHostGuardianComponent : Component
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ namespace Content.Server.Guardian
|
|||||||
/// Given to guardians to monitor their link with the host
|
/// Given to guardians to monitor their link with the host
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[RegisterComponent]
|
[RegisterComponent]
|
||||||
[ComponentProtoName("Guardian")]
|
|
||||||
public class GuardianComponent : Component
|
public class GuardianComponent : Component
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ namespace Content.Server.Guardian
|
|||||||
/// Creates a GuardianComponent attached to the user's GuardianHost.
|
/// Creates a GuardianComponent attached to the user's GuardianHost.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[RegisterComponent]
|
[RegisterComponent]
|
||||||
[ComponentProtoName("GuardianCreator")]
|
|
||||||
public sealed class GuardianCreatorComponent : Component
|
public sealed class GuardianCreatorComponent : Component
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ namespace Content.Server.Guardian
|
|||||||
/// Given to guardian users upon establishing a guardian link with the entity
|
/// Given to guardian users upon establishing a guardian link with the entity
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[RegisterComponent]
|
[RegisterComponent]
|
||||||
[ComponentProtoName("GuardianHost")]
|
|
||||||
public sealed class GuardianHostComponent : Component
|
public sealed class GuardianHostComponent : Component
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using Content.Shared.Inventory;
|
using Content.Shared.Inventory;
|
||||||
using Content.Shared.Medical.SuitSensor;
|
using Content.Shared.Medical.SuitSensor;
|
||||||
using Robust.Shared.Analyzers;
|
using Robust.Shared.Analyzers;
|
||||||
@@ -13,7 +13,6 @@ namespace Content.Server.Medical.SuitSensors
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[RegisterComponent]
|
[RegisterComponent]
|
||||||
[Friend(typeof(SuitSensorSystem))]
|
[Friend(typeof(SuitSensorSystem))]
|
||||||
[ComponentProtoName("SuitSensor")]
|
|
||||||
public sealed class SuitSensorComponent : Component
|
public sealed class SuitSensorComponent : Component
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ namespace Content.Server.Mind.Components
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Stores a <see cref="Server.Mind.Mind"/> on a mob.
|
/// Stores a <see cref="Server.Mind.Mind"/> on a mob.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[RegisterComponent, ComponentProtoName("Mind"), Friend(typeof(MindSystem))]
|
[RegisterComponent, Friend(typeof(MindSystem))]
|
||||||
public class MindComponent : Component
|
public class MindComponent : Component
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using Robust.Shared.Analyzers;
|
using Robust.Shared.Analyzers;
|
||||||
using Robust.Shared.GameObjects;
|
using Robust.Shared.GameObjects;
|
||||||
|
|
||||||
namespace Content.Server.Mining.Components;
|
namespace Content.Server.Mining.Components;
|
||||||
|
|
||||||
[RegisterComponent, ComponentProtoName("Mineable")]
|
[RegisterComponent]
|
||||||
[Friend(typeof(MineableSystem))]
|
[Friend(typeof(MineableSystem))]
|
||||||
public class MineableComponent : Component
|
public class MineableComponent : Component
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using Robust.Shared.Serialization.Manager.Attributes;
|
|||||||
|
|
||||||
namespace Content.Server.Mining.Components
|
namespace Content.Server.Mining.Components
|
||||||
{
|
{
|
||||||
[RegisterComponent, ComponentProtoName("Pickaxe")]
|
[RegisterComponent]
|
||||||
public class PickaxeComponent : Component
|
public class PickaxeComponent : Component
|
||||||
{
|
{
|
||||||
[DataField("sound")]
|
[DataField("sound")]
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ namespace Content.Server.Plants.Components
|
|||||||
{
|
{
|
||||||
[RegisterComponent]
|
[RegisterComponent]
|
||||||
[Friend(typeof(RandomPottedPlantSystem))]
|
[Friend(typeof(RandomPottedPlantSystem))]
|
||||||
[ComponentProtoName("RandomPottedPlant")]
|
|
||||||
public class RandomPottedPlantComponent : Component
|
public class RandomPottedPlantComponent : Component
|
||||||
{
|
{
|
||||||
[ViewVariables(VVAccess.ReadOnly)]
|
[ViewVariables(VVAccess.ReadOnly)]
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ namespace Content.Server.Power.Components;
|
|||||||
|
|
||||||
[RegisterComponent]
|
[RegisterComponent]
|
||||||
[Friend(typeof(ApcSystem))]
|
[Friend(typeof(ApcSystem))]
|
||||||
[ComponentProtoName("Apc")]
|
|
||||||
public class ApcComponent : BaseApcNetComponent
|
public class ApcComponent : BaseApcNetComponent
|
||||||
{
|
{
|
||||||
[DataField("onReceiveMessageSound")]
|
[DataField("onReceiveMessageSound")]
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ namespace Content.Server.Power.Components
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[RegisterComponent]
|
[RegisterComponent]
|
||||||
[Friend(typeof(CableSystem))]
|
[Friend(typeof(CableSystem))]
|
||||||
[ComponentProtoName("Cable")]
|
|
||||||
public class CableComponent : Component
|
public class CableComponent : Component
|
||||||
{
|
{
|
||||||
[DataField("cableDroppedOnCutPrototype", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
[DataField("cableDroppedOnCutPrototype", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables;
|
|||||||
|
|
||||||
namespace Content.Server.Power.Components
|
namespace Content.Server.Power.Components
|
||||||
{
|
{
|
||||||
[RegisterComponent, ComponentProtoName("CablePlacer")]
|
[RegisterComponent]
|
||||||
public sealed class CablePlacerComponent : Component
|
public sealed class CablePlacerComponent : Component
|
||||||
{
|
{
|
||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using Robust.Shared.ViewVariables;
|
|||||||
|
|
||||||
namespace Content.Server.Radar;
|
namespace Content.Server.Radar;
|
||||||
|
|
||||||
[RegisterComponent, ComponentProtoName("RadarConsole")]
|
[RegisterComponent]
|
||||||
public class RadarConsoleComponent : Component
|
public class RadarConsoleComponent : Component
|
||||||
{
|
{
|
||||||
[ViewVariables(VVAccess.ReadWrite)]
|
[ViewVariables(VVAccess.ReadWrite)]
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using Robust.Shared.Analyzers;
|
using Robust.Shared.Analyzers;
|
||||||
using Robust.Shared.GameObjects;
|
using Robust.Shared.GameObjects;
|
||||||
using Robust.Shared.IoC;
|
using Robust.Shared.IoC;
|
||||||
using Robust.Shared.Log;
|
using Robust.Shared.Log;
|
||||||
@@ -8,7 +8,7 @@ using Robust.Shared.Serialization.Manager.Attributes;
|
|||||||
|
|
||||||
namespace Content.Server.RandomAppearance;
|
namespace Content.Server.RandomAppearance;
|
||||||
|
|
||||||
[RegisterComponent, ComponentProtoName("RandomAppearance")]
|
[RegisterComponent]
|
||||||
[Friend(typeof(RandomAppearanceSystem))]
|
[Friend(typeof(RandomAppearanceSystem))]
|
||||||
public class RandomAppearanceComponent : Component, ISerializationHooks
|
public class RandomAppearanceComponent : Component, ISerializationHooks
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ namespace Content.Server.Salvage
|
|||||||
/// A salvage magnet.
|
/// A salvage magnet.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[RegisterComponent]
|
[RegisterComponent]
|
||||||
[ComponentProtoName("SalvageMagnet")]
|
|
||||||
public class SalvageMagnetComponent : Component
|
public class SalvageMagnetComponent : Component
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables;
|
|||||||
|
|
||||||
namespace Content.Server.Spawners.Components
|
namespace Content.Server.Spawners.Components
|
||||||
{
|
{
|
||||||
[RegisterComponent, ComponentProtoName("ConditionalSpawner")]
|
[RegisterComponent]
|
||||||
public class ConditionalSpawnerComponent : Component
|
public class ConditionalSpawnerComponent : Component
|
||||||
{
|
{
|
||||||
[ViewVariables(VVAccess.ReadWrite)]
|
[ViewVariables(VVAccess.ReadWrite)]
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables;
|
|||||||
|
|
||||||
namespace Content.Server.Spawners.Components
|
namespace Content.Server.Spawners.Components
|
||||||
{
|
{
|
||||||
[RegisterComponent, ComponentProtoName("RandomSpawner")]
|
[RegisterComponent]
|
||||||
public class RandomSpawnerComponent : ConditionalSpawnerComponent
|
public class RandomSpawnerComponent : ConditionalSpawnerComponent
|
||||||
{
|
{
|
||||||
[ViewVariables(VVAccess.ReadWrite)]
|
[ViewVariables(VVAccess.ReadWrite)]
|
||||||
|
|||||||
@@ -3,5 +3,4 @@ using Robust.Shared.GameObjects;
|
|||||||
namespace Content.Server.Speech.Components;
|
namespace Content.Server.Speech.Components;
|
||||||
|
|
||||||
[RegisterComponent]
|
[RegisterComponent]
|
||||||
[ComponentProtoName("MonkeyAccent")]
|
|
||||||
public sealed class MonkeyAccentComponent : Component {}
|
public sealed class MonkeyAccentComponent : Component {}
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ namespace Content.Server.Speech.Components
|
|||||||
/// Replaces any spoken sentences with a random word.
|
/// Replaces any spoken sentences with a random word.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[RegisterComponent]
|
[RegisterComponent]
|
||||||
[ComponentProtoName("ReplacementAccent")]
|
|
||||||
public class ReplacementAccentComponent : Component
|
public class ReplacementAccentComponent : Component
|
||||||
{
|
{
|
||||||
[DataField("accent", customTypeSerializer: typeof(PrototypeIdSerializer<ReplacementAccentPrototype>), required: true)]
|
[DataField("accent", customTypeSerializer: typeof(PrototypeIdSerializer<ReplacementAccentPrototype>), required: true)]
|
||||||
|
|||||||
@@ -3,5 +3,4 @@ using Robust.Shared.GameObjects;
|
|||||||
namespace Content.Server.Speech.Components;
|
namespace Content.Server.Speech.Components;
|
||||||
|
|
||||||
[RegisterComponent]
|
[RegisterComponent]
|
||||||
[ComponentProtoName("RussianAccent")]
|
|
||||||
public sealed class RussianAccentComponent : Component {}
|
public sealed class RussianAccentComponent : Component {}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ using Robust.Shared.Serialization.Manager.Attributes;
|
|||||||
|
|
||||||
namespace Content.Server.Sprite.Components
|
namespace Content.Server.Sprite.Components
|
||||||
{
|
{
|
||||||
[RegisterComponent, ComponentProtoName("RandomSpriteColor")]
|
[RegisterComponent]
|
||||||
public class RandomSpriteColorComponent : Component
|
public class RandomSpriteColorComponent : Component
|
||||||
{
|
{
|
||||||
// This should handle random states + colors for layers.
|
// This should handle random states + colors for layers.
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using Robust.Shared.Serialization.Manager.Attributes;
|
|||||||
|
|
||||||
namespace Content.Server.Sprite.Components
|
namespace Content.Server.Sprite.Components
|
||||||
{
|
{
|
||||||
[RegisterComponent, ComponentProtoName("RandomSpriteState")]
|
[RegisterComponent]
|
||||||
public class RandomSpriteStateComponent : Component
|
public class RandomSpriteStateComponent : Component
|
||||||
{
|
{
|
||||||
[DataField("spriteStates")] public List<string>? SpriteStates;
|
[DataField("spriteStates")] public List<string>? SpriteStates;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using Content.Server.GameTicking;
|
using Content.Server.GameTicking;
|
||||||
using Robust.Shared.Analyzers;
|
using Robust.Shared.Analyzers;
|
||||||
using Robust.Shared.GameObjects;
|
using Robust.Shared.GameObjects;
|
||||||
using Robust.Shared.Serialization.Manager.Attributes;
|
using Robust.Shared.Serialization.Manager.Attributes;
|
||||||
@@ -9,7 +9,7 @@ namespace Content.Server.Station;
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Added to grids saved in maps to designate that they are the 'main station' grid.
|
/// Added to grids saved in maps to designate that they are the 'main station' grid.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[RegisterComponent, ComponentProtoName("BecomesStation")]
|
[RegisterComponent]
|
||||||
[Friend(typeof(GameTicker))]
|
[Friend(typeof(GameTicker))]
|
||||||
public class BecomesStationComponent : Component
|
public class BecomesStationComponent : Component
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using Content.Server.GameTicking;
|
using Content.Server.GameTicking;
|
||||||
using Robust.Shared.Analyzers;
|
using Robust.Shared.Analyzers;
|
||||||
using Robust.Shared.GameObjects;
|
using Robust.Shared.GameObjects;
|
||||||
using Robust.Shared.Serialization.Manager.Attributes;
|
using Robust.Shared.Serialization.Manager.Attributes;
|
||||||
@@ -10,7 +10,7 @@ namespace Content.Server.Station;
|
|||||||
/// Added to grids saved in maps to designate them as 'part of a station' and not main grids. I.e. ancillary
|
/// Added to grids saved in maps to designate them as 'part of a station' and not main grids. I.e. ancillary
|
||||||
/// shuttles for multi-grid stations.
|
/// shuttles for multi-grid stations.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[RegisterComponent, ComponentProtoName("PartOfStation")]
|
[RegisterComponent]
|
||||||
[Friend(typeof(GameTicker))]
|
[Friend(typeof(GameTicker))]
|
||||||
public class PartOfStationComponent : Component
|
public class PartOfStationComponent : Component
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using Robust.Shared.Serialization.Manager.Attributes;
|
|||||||
|
|
||||||
namespace Content.Server.Storage.Components
|
namespace Content.Server.Storage.Components
|
||||||
{
|
{
|
||||||
[RegisterComponent, ComponentProtoName("StorageFill"), Friend(typeof(StorageSystem))]
|
[RegisterComponent, Friend(typeof(StorageSystem))]
|
||||||
public sealed class StorageFillComponent : Component
|
public sealed class StorageFillComponent : Component
|
||||||
{
|
{
|
||||||
[DataField("contents")] public List<EntitySpawnEntry> Contents = new();
|
[DataField("contents")] public List<EntitySpawnEntry> Contents = new();
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
|
|||||||
namespace Content.Server.Toilet
|
namespace Content.Server.Toilet
|
||||||
{
|
{
|
||||||
[RegisterComponent]
|
[RegisterComponent]
|
||||||
[ComponentProtoName("Toilet")]
|
|
||||||
public sealed class ToiletComponent : Component, ISuicideAct
|
public sealed class ToiletComponent : Component, ISuicideAct
|
||||||
{
|
{
|
||||||
[DataField("pryLidTime")]
|
[DataField("pryLidTime")]
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System.Threading;
|
using System.Threading;
|
||||||
using Content.Shared.Tools;
|
using Content.Shared.Tools;
|
||||||
using Robust.Shared.GameObjects;
|
using Robust.Shared.GameObjects;
|
||||||
using Robust.Shared.Serialization.Manager.Attributes;
|
using Robust.Shared.Serialization.Manager.Attributes;
|
||||||
@@ -7,7 +7,7 @@ using Robust.Shared.ViewVariables;
|
|||||||
|
|
||||||
namespace Content.Server.Tools.Components
|
namespace Content.Server.Tools.Components
|
||||||
{
|
{
|
||||||
[RegisterComponent, ComponentProtoName("TilePrying")]
|
[RegisterComponent]
|
||||||
public sealed class TilePryingComponent : Component
|
public sealed class TilePryingComponent : Component
|
||||||
{
|
{
|
||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ namespace Content.Server.Warps
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Allows ghosts etc to warp to this entity by name.
|
/// Allows ghosts etc to warp to this entity by name.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[RegisterComponent, ComponentProtoName("WarpPoint")]
|
[RegisterComponent]
|
||||||
public sealed class WarpPointComponent : Component
|
public sealed class WarpPointComponent : Component
|
||||||
{
|
{
|
||||||
[ViewVariables(VVAccess.ReadWrite)] [DataField("location")] public string? Location { get; set; }
|
[ViewVariables(VVAccess.ReadWrite)] [DataField("location")] public string? Location { get; set; }
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ using Robust.Shared.Serialization.Manager.Attributes;
|
|||||||
|
|
||||||
namespace Content.Server.Weapon.Melee.EnergySword
|
namespace Content.Server.Weapon.Melee.EnergySword
|
||||||
{
|
{
|
||||||
[RegisterComponent, ComponentProtoName("EnergySword")]
|
[RegisterComponent]
|
||||||
internal class EnergySwordComponent : Component
|
internal class EnergySwordComponent : Component
|
||||||
{
|
{
|
||||||
public Color BladeColor = Color.DodgerBlue;
|
public Color BladeColor = Color.DodgerBlue;
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ namespace Content.Server.Weapon.Ranged.Ammunition.Components
|
|||||||
/// Stores ammo and can quickly transfer ammo into a magazine.
|
/// Stores ammo and can quickly transfer ammo into a magazine.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[RegisterComponent]
|
[RegisterComponent]
|
||||||
[ComponentProtoName("AmmoBox")]
|
|
||||||
[Friend(typeof(GunSystem))]
|
[Friend(typeof(GunSystem))]
|
||||||
public sealed class AmmoBoxComponent : Component
|
public sealed class AmmoBoxComponent : Component
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ namespace Content.Server.Weapon.Ranged.Ammunition.Components
|
|||||||
/// Generally used for bullets but can be used for other things like bananas
|
/// Generally used for bullets but can be used for other things like bananas
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[RegisterComponent]
|
[RegisterComponent]
|
||||||
[ComponentProtoName("Ammo")]
|
|
||||||
[Friend(typeof(GunSystem))]
|
[Friend(typeof(GunSystem))]
|
||||||
public sealed class AmmoComponent : Component, ISerializationHooks
|
public sealed class AmmoComponent : Component, ISerializationHooks
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy
|
|||||||
|
|
||||||
namespace Content.Server.Weapon.Ranged.Ammunition.Components
|
namespace Content.Server.Weapon.Ranged.Ammunition.Components
|
||||||
{
|
{
|
||||||
[RegisterComponent, ComponentProtoName("RangedMagazine")]
|
[RegisterComponent]
|
||||||
public class RangedMagazineComponent : Component
|
public class RangedMagazineComponent : Component
|
||||||
{
|
{
|
||||||
public readonly Stack<EntityUid> SpawnedAmmo = new();
|
public readonly Stack<EntityUid> SpawnedAmmo = new();
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ namespace Content.Server.Weapon.Ranged.Ammunition.Components
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to load certain ranged weapons quickly
|
/// Used to load certain ranged weapons quickly
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[RegisterComponent, ComponentProtoName("SpeedLoader")]
|
[RegisterComponent]
|
||||||
public class SpeedLoaderComponent : Component
|
public class SpeedLoaderComponent : Component
|
||||||
{
|
{
|
||||||
[DataField("caliber")] public BallisticCaliber Caliber = BallisticCaliber.Unspecified;
|
[DataField("caliber")] public BallisticCaliber Caliber = BallisticCaliber.Unspecified;
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ using Robust.Shared.ViewVariables;
|
|||||||
|
|
||||||
namespace Content.Server.Weapon.Ranged.Barrels.Components
|
namespace Content.Server.Weapon.Ranged.Barrels.Components
|
||||||
{
|
{
|
||||||
[RegisterComponent, NetworkedComponent, ComponentProtoName("BatteryBarrel"), ComponentReference(typeof(ServerRangedBarrelComponent))]
|
[RegisterComponent, NetworkedComponent, ComponentReference(typeof(ServerRangedBarrelComponent))]
|
||||||
public sealed class BatteryBarrelComponent : ServerRangedBarrelComponent
|
public sealed class BatteryBarrelComponent : ServerRangedBarrelComponent
|
||||||
{
|
{
|
||||||
// The minimum change we need before we can fire
|
// The minimum change we need before we can fire
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace Content.Server.Weapon.Ranged.Barrels.Components
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Shotguns mostly
|
/// Shotguns mostly
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[RegisterComponent, NetworkedComponent, ComponentProtoName("BoltActionBarrel"), ComponentReference(typeof(ServerRangedBarrelComponent))]
|
[RegisterComponent, NetworkedComponent, ComponentReference(typeof(ServerRangedBarrelComponent))]
|
||||||
public sealed class BoltActionBarrelComponent : ServerRangedBarrelComponent
|
public sealed class BoltActionBarrelComponent : ServerRangedBarrelComponent
|
||||||
{
|
{
|
||||||
// Originally I had this logic shared with PumpBarrel and used a couple of variables to control things
|
// Originally I had this logic shared with PumpBarrel and used a couple of variables to control things
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ using Robust.Shared.ViewVariables;
|
|||||||
|
|
||||||
namespace Content.Server.Weapon.Ranged.Barrels.Components
|
namespace Content.Server.Weapon.Ranged.Barrels.Components
|
||||||
{
|
{
|
||||||
[RegisterComponent, NetworkedComponent, ComponentProtoName("MagazineBarrel"), ComponentReference(typeof(ServerRangedBarrelComponent))]
|
[RegisterComponent, NetworkedComponent, ComponentReference(typeof(ServerRangedBarrelComponent))]
|
||||||
public sealed class MagazineBarrelComponent : ServerRangedBarrelComponent
|
public sealed class MagazineBarrelComponent : ServerRangedBarrelComponent
|
||||||
{
|
{
|
||||||
[Dependency] private readonly IEntityManager _entities = default!;
|
[Dependency] private readonly IEntityManager _entities = default!;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ namespace Content.Server.Weapon.Ranged.Barrels.Components
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Bolt-action rifles
|
/// Bolt-action rifles
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[RegisterComponent, NetworkedComponent, ComponentProtoName("PumpBarrel"), ComponentReference(typeof(ServerRangedBarrelComponent))]
|
[RegisterComponent, NetworkedComponent, ComponentReference(typeof(ServerRangedBarrelComponent))]
|
||||||
public sealed class PumpBarrelComponent : ServerRangedBarrelComponent, ISerializationHooks
|
public sealed class PumpBarrelComponent : ServerRangedBarrelComponent, ISerializationHooks
|
||||||
{
|
{
|
||||||
public override int ShotsLeft
|
public override int ShotsLeft
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ using Robust.Shared.ViewVariables;
|
|||||||
|
|
||||||
namespace Content.Server.Weapon.Ranged.Barrels.Components
|
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
|
public sealed class RevolverBarrelComponent : ServerRangedBarrelComponent, ISerializationHooks
|
||||||
{
|
{
|
||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ namespace Content.Shared.Alert;
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[RegisterComponent]
|
[RegisterComponent]
|
||||||
[NetworkedComponent]
|
[NetworkedComponent]
|
||||||
[ComponentProtoName("Alerts")]
|
|
||||||
public class AlertsComponent : Component
|
public class AlertsComponent : Component
|
||||||
{
|
{
|
||||||
[ViewVariables] public Dictionary<AlertKey, AlertState> Alerts = new();
|
[ViewVariables] public Dictionary<AlertKey, AlertState> Alerts = new();
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ namespace Content.Shared.Camera;
|
|||||||
|
|
||||||
[RegisterComponent]
|
[RegisterComponent]
|
||||||
[NetworkedComponent]
|
[NetworkedComponent]
|
||||||
[ComponentProtoName("CameraRecoil")]
|
|
||||||
public class CameraRecoilComponent : Component
|
public class CameraRecoilComponent : Component
|
||||||
{
|
{
|
||||||
public Vector2 CurrentKick { get; set; }
|
public Vector2 CurrentKick { get; set; }
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Robust.Shared.Analyzers;
|
using Robust.Shared.Analyzers;
|
||||||
using Robust.Shared.GameObjects;
|
using Robust.Shared.GameObjects;
|
||||||
|
|
||||||
@@ -7,7 +7,7 @@ namespace Content.Shared.Follower.Components;
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Attached to entities that are currently being followed by a ghost.
|
/// Attached to entities that are currently being followed by a ghost.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[RegisterComponent, ComponentProtoName("Followed"), Friend(typeof(FollowerSystem))]
|
[RegisterComponent, Friend(typeof(FollowerSystem))]
|
||||||
public class FollowedComponent : Component
|
public class FollowedComponent : Component
|
||||||
{
|
{
|
||||||
public HashSet<EntityUid> Following = new();
|
public HashSet<EntityUid> Following = new();
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using Robust.Shared.Analyzers;
|
using Robust.Shared.Analyzers;
|
||||||
using Robust.Shared.GameObjects;
|
using Robust.Shared.GameObjects;
|
||||||
|
|
||||||
namespace Content.Shared.Follower.Components;
|
namespace Content.Shared.Follower.Components;
|
||||||
|
|
||||||
[RegisterComponent, ComponentProtoName("Follower")]
|
[RegisterComponent]
|
||||||
[Friend(typeof(FollowerSystem))]
|
[Friend(typeof(FollowerSystem))]
|
||||||
public class FollowerComponent : Component
|
public class FollowerComponent : Component
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ namespace Content.Shared.Light.Component;
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[NetworkedComponent]
|
[NetworkedComponent]
|
||||||
[RegisterComponent]
|
[RegisterComponent]
|
||||||
[ComponentProtoName("RgbLightController")]
|
|
||||||
[Friend(typeof(SharedRgbLightControllerSystem))]
|
[Friend(typeof(SharedRgbLightControllerSystem))]
|
||||||
public sealed class RgbLightControllerComponent : Robust.Shared.GameObjects.Component
|
public sealed class RgbLightControllerComponent : Robust.Shared.GameObjects.Component
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ using Robust.Shared.Serialization;
|
|||||||
namespace Content.Shared.Light.Component
|
namespace Content.Shared.Light.Component
|
||||||
{
|
{
|
||||||
[NetworkedComponent]
|
[NetworkedComponent]
|
||||||
[ComponentProtoName("HandheldLight")]
|
|
||||||
public abstract class SharedHandheldLightComponent : Robust.Shared.GameObjects.Component
|
public abstract class SharedHandheldLightComponent : Robust.Shared.GameObjects.Component
|
||||||
{
|
{
|
||||||
public const int StatusLevels = 6;
|
public const int StatusLevels = 6;
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ namespace Content.Shared.PowerCell;
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[NetworkedComponent]
|
[NetworkedComponent]
|
||||||
[RegisterComponent]
|
[RegisterComponent]
|
||||||
[ComponentProtoName("PowerCell")]
|
|
||||||
public sealed class PowerCellComponent : Component
|
public sealed class PowerCellComponent : Component
|
||||||
{
|
{
|
||||||
public const string SolutionName = "powerCell";
|
public const string SolutionName = "powerCell";
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ namespace Content.Shared.Timing
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Timer that creates a cooldown each time an object is activated/used
|
/// Timer that creates a cooldown each time an object is activated/used
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[RegisterComponent, ComponentProtoName("UseDelay")]
|
[RegisterComponent]
|
||||||
public sealed class UseDelayComponent : Component
|
public sealed class UseDelayComponent : Component
|
||||||
{
|
{
|
||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
|
|||||||
Reference in New Issue
Block a user