Auto comp (#6416)
This commit is contained in:
@@ -89,7 +89,6 @@ namespace Content.Benchmarks
|
||||
|
||||
private class DummyComponent : Component
|
||||
{
|
||||
public override string Name => "Dummy";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,8 +11,6 @@ namespace Content.Client.Animations
|
||||
[RegisterComponent]
|
||||
public sealed class AnimationsTestComponent : Component
|
||||
{
|
||||
public override string Name => "AnimationsTest";
|
||||
|
||||
protected override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
|
||||
@@ -13,8 +13,6 @@ namespace Content.Client.CharacterInfo.Components
|
||||
[RegisterComponent]
|
||||
public sealed class CharacterInfoComponent : Component, ICharacterUI
|
||||
{
|
||||
public override string Name => "CharacterInfo";
|
||||
|
||||
public CharacterInfoControl Control = default!;
|
||||
|
||||
public Control Scene { get; set; } = default!;
|
||||
|
||||
@@ -14,8 +14,6 @@ namespace Content.Client.CharacterInterface
|
||||
[RegisterComponent]
|
||||
public class CharacterInterfaceComponent : Component
|
||||
{
|
||||
public override string Name => "Character Interface Component";
|
||||
|
||||
/// <summary>
|
||||
/// Window to hold each of the character interfaces
|
||||
/// </summary>
|
||||
|
||||
@@ -14,8 +14,6 @@ namespace Content.Client.Clickable
|
||||
[RegisterComponent]
|
||||
public sealed class ClickableComponent : Component
|
||||
{
|
||||
public override string Name => "Clickable";
|
||||
|
||||
[Dependency] private readonly IClickMapManager _clickMapManager = default!;
|
||||
|
||||
[ViewVariables] [DataField("bounds")] private DirBoundData? _data;
|
||||
|
||||
@@ -13,8 +13,6 @@ namespace Content.Client.Clothing
|
||||
[NetworkedComponent()]
|
||||
public class ClothingComponent : ItemComponent
|
||||
{
|
||||
public override string Name => "Clothing";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("femaleMask")]
|
||||
public FemaleClothingMask FemaleMask { get; } = FemaleClothingMask.UniformFull;
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace Content.Client.Construction
|
||||
[RegisterComponent]
|
||||
public class ConstructionGhostComponent : Component
|
||||
{
|
||||
public override string Name => "ConstructionGhost";
|
||||
|
||||
[ViewVariables] public ConstructionPrototype? Prototype { get; set; }
|
||||
[ViewVariables] public int GhostId { get; set; }
|
||||
}
|
||||
|
||||
@@ -13,8 +13,6 @@ namespace Content.Client.Damage
|
||||
[RegisterComponent]
|
||||
public class DamageVisualizerDataComponent : Component
|
||||
{
|
||||
public override string Name => "DamageVisualizerData";
|
||||
|
||||
public List<object> TargetLayerMapKeys = new();
|
||||
public bool Disabled = false;
|
||||
public bool Valid = true;
|
||||
|
||||
@@ -13,8 +13,6 @@ namespace Content.Client.DoAfter
|
||||
[RegisterComponent]
|
||||
public sealed class DoAfterComponent : SharedDoAfterComponent
|
||||
{
|
||||
public override string Name => "DoAfter";
|
||||
|
||||
public IReadOnlyDictionary<byte, ClientDoAfter> DoAfters => _doAfters;
|
||||
private readonly Dictionary<byte, ClientDoAfter> _doAfters = new();
|
||||
|
||||
|
||||
@@ -32,8 +32,6 @@ namespace Content.Client.IconSmoothing
|
||||
[DataField("mode")]
|
||||
private IconSmoothingMode _mode = IconSmoothingMode.Corners;
|
||||
|
||||
public override string Name => "IconSmooth";
|
||||
|
||||
internal ISpriteComponent? Sprite { get; private set; }
|
||||
|
||||
public (GridId, Vector2i)? LastPosition;
|
||||
|
||||
@@ -15,9 +15,6 @@ namespace Content.Client.Interactable.Components
|
||||
private const float DefaultWidth = 1;
|
||||
private const string ShaderInRange = "SelectionOutlineInrange";
|
||||
private const string ShaderOutOfRange = "SelectionOutline";
|
||||
|
||||
public override string Name => "InteractionOutline";
|
||||
|
||||
private bool _inRange;
|
||||
private ShaderInstance? _shader;
|
||||
private int _lastRenderScale;
|
||||
|
||||
@@ -5,8 +5,5 @@ namespace Content.Client.Items.Components
|
||||
[RegisterComponent]
|
||||
public class ItemStatusComponent : Component
|
||||
{
|
||||
public override string Name => "ItemStatus";
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace Content.Client.Markers
|
||||
[RegisterComponent]
|
||||
public sealed class MarkerComponent : Component
|
||||
{
|
||||
public override string Name => "Marker";
|
||||
|
||||
protected override void Startup()
|
||||
{
|
||||
base.Startup();
|
||||
|
||||
@@ -9,12 +9,11 @@ namespace Content.Client.Spawners
|
||||
/// Spawns a set of entities on the client only, and removes them when this component is removed.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[ComponentProtoName("ClientEntitySpawner")]
|
||||
public class ClientEntitySpawnerComponent : Component
|
||||
{
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
|
||||
public override string Name => "ClientEntitySpawner";
|
||||
|
||||
[DataField("prototypes")] private List<string> _prototypes = new() { "HVDummyWire" };
|
||||
|
||||
private readonly List<EntityUid> _entity = new();
|
||||
|
||||
@@ -16,8 +16,6 @@ namespace Content.Client.Tools.Components
|
||||
[RegisterComponent, Friend(typeof(ToolSystem), typeof(StatusControl))]
|
||||
public class WelderComponent : SharedWelderComponent, IItemStatus
|
||||
{
|
||||
public override string Name => "Welder";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public bool UiUpdateNeeded { get; set; }
|
||||
|
||||
|
||||
@@ -11,8 +11,6 @@ namespace Content.Client.Wall.Components
|
||||
[ComponentReference(typeof(IconSmoothComponent))]
|
||||
public class ReinforcedWallComponent : IconSmoothComponent // whyyyyyyyyy
|
||||
{
|
||||
public override string Name => "ReinforcedWall";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("reinforcedBase")]
|
||||
private string? _reinforcedStateBase = default;
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace Content.Client.Weapons.Melee.Components
|
||||
[RegisterComponent]
|
||||
public sealed class MeleeLungeComponent : Component
|
||||
{
|
||||
public override string Name => "MeleeLunge";
|
||||
|
||||
private const float ResetTime = 0.3f;
|
||||
private const float BaseOffset = 0.25f;
|
||||
|
||||
|
||||
@@ -11,9 +11,6 @@ namespace Content.Client.Weapons.Melee.Components
|
||||
public sealed class MeleeWeaponArcAnimationComponent : Component
|
||||
{
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
|
||||
public override string Name => "MeleeWeaponArcAnimation";
|
||||
|
||||
private MeleeWeaponAnimationPrototype? _meleeWeaponAnimation;
|
||||
|
||||
private float _timer;
|
||||
|
||||
@@ -19,8 +19,6 @@ namespace Content.Client.Weapons.Ranged.Barrels.Components
|
||||
[NetworkedComponent()]
|
||||
public class ClientBatteryBarrelComponent : Component, IItemStatus
|
||||
{
|
||||
public override string Name => "BatteryBarrel";
|
||||
|
||||
private StatusControl? _statusControl;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -19,8 +19,6 @@ namespace Content.Client.Weapons.Ranged.Barrels.Components
|
||||
[NetworkedComponent()]
|
||||
public class ClientBoltActionBarrelComponent : Component, IItemStatus
|
||||
{
|
||||
public override string Name => "BoltActionBarrel";
|
||||
|
||||
private StatusControl? _statusControl;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -67,9 +67,6 @@ namespace Content.Client.Weapons.Ranged.Barrels.Components
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
public override string Name => "MagazineBarrel";
|
||||
|
||||
private StatusControl? _statusControl;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -19,8 +19,6 @@ namespace Content.Client.Weapons.Ranged.Barrels.Components
|
||||
[NetworkedComponent()]
|
||||
public class ClientPumpBarrelComponent : Component, IItemStatus
|
||||
{
|
||||
public override string Name => "PumpBarrel";
|
||||
|
||||
private StatusControl? _statusControl;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -17,8 +17,6 @@ namespace Content.Client.Weapons.Ranged.Barrels.Components
|
||||
[NetworkedComponent()]
|
||||
public class ClientRevolverBarrelComponent : Component, IItemStatus
|
||||
{
|
||||
public override string Name => "RevolverBarrel";
|
||||
|
||||
private StatusControl? _statusControl;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -392,8 +392,6 @@ namespace Content.IntegrationTests.Tests.Networking
|
||||
[NetworkedComponent()]
|
||||
private sealed class PredictionTestComponent : Component
|
||||
{
|
||||
public override string Name => "PredictionTest";
|
||||
|
||||
private bool _foo;
|
||||
|
||||
public bool Foo
|
||||
|
||||
@@ -18,8 +18,6 @@ namespace Content.Server.AI.Components
|
||||
{
|
||||
[DataField("logic")] private float _visionRadius = 8.0f;
|
||||
|
||||
public override string Name => "AiController";
|
||||
|
||||
// TODO: Need to ECS a lot more of the AI first before we can ECS this
|
||||
/// <summary>
|
||||
/// Whether the AI is actively iterated.
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace Content.Server.AI.Components
|
||||
[RegisterComponent]
|
||||
public sealed class AiFactionTagComponent : Component
|
||||
{
|
||||
public override string Name => "AiFactionTag";
|
||||
|
||||
[DataField("factions")]
|
||||
public Faction Factions { get; private set; } = Faction.None;
|
||||
}
|
||||
|
||||
@@ -22,11 +22,10 @@ namespace Content.Server.AI.Utility.AiLogic
|
||||
{
|
||||
// TODO: Need to split out the IMover stuff for NPC to a generic one that can be used for hoomans as well.
|
||||
[RegisterComponent]
|
||||
[ComponentProtoName("UtilityAI")]
|
||||
[ComponentReference(typeof(AiControllerComponent)), ComponentReference(typeof(IMoverComponent))]
|
||||
public sealed class UtilityAi : AiControllerComponent, ISerializationHooks
|
||||
{
|
||||
public override string Name => "UtilityAI";
|
||||
|
||||
// TODO: Look at having ParallelOperators (probably no more than that as then you'd have a full-blown BT)
|
||||
// Also RepeatOperators (e.g. if we're following an entity keep repeating MoveToEntity)
|
||||
private AiActionSystem _planner = default!;
|
||||
|
||||
@@ -6,8 +6,6 @@ namespace Content.Server.AME.Components
|
||||
[RegisterComponent]
|
||||
public class AMEFuelContainerComponent : Component
|
||||
{
|
||||
public override string Name => "AMEFuelContainer";
|
||||
|
||||
private int _fuelAmount;
|
||||
private int _maxFuelAmount;
|
||||
|
||||
|
||||
@@ -25,8 +25,6 @@ namespace Content.Server.AME.Components
|
||||
[Dependency] private readonly IMapManager _mapManager = default!;
|
||||
[Dependency] private readonly IServerEntityManager _serverEntityManager = default!;
|
||||
|
||||
public override string Name => "AMEPart";
|
||||
|
||||
[DataField("unwrapSound")]
|
||||
private SoundSpecifier _unwrapSound = new SoundPathSpecifier("/Audio/Effects/unwrap.ogg");
|
||||
|
||||
|
||||
@@ -9,8 +9,6 @@ namespace Content.Server.Access.Components
|
||||
[RegisterComponent]
|
||||
public class PresetIdCardComponent : Component
|
||||
{
|
||||
public override string Name => "PresetIdCard";
|
||||
|
||||
[DataField("job")]
|
||||
public readonly string? JobName;
|
||||
}
|
||||
|
||||
@@ -11,8 +11,6 @@ namespace Content.Server.Advertise
|
||||
[RegisterComponent, Friend(typeof(AdvertiseSystem))]
|
||||
public class AdvertiseComponent : Component
|
||||
{
|
||||
public override string Name => "Advertise";
|
||||
|
||||
/// <summary>
|
||||
/// Minimum time in seconds to wait before saying a new ad, in seconds. Has to be larger than or equal to 1.
|
||||
/// </summary>
|
||||
|
||||
@@ -13,8 +13,6 @@ namespace Content.Server.Animals.Components
|
||||
[RegisterComponent, Friend(typeof(UdderSystem))]
|
||||
internal class UdderComponent : Component
|
||||
{
|
||||
public override string Name => "Udder";
|
||||
|
||||
/// <summary>
|
||||
/// The reagent to produce.
|
||||
/// </summary>
|
||||
|
||||
@@ -20,9 +20,6 @@ namespace Content.Server.Arcade.Components
|
||||
public class BlockGameArcadeComponent : Component, IActivate
|
||||
{
|
||||
[Dependency] private readonly IRobustRandom _random = default!;
|
||||
|
||||
public override string Name => "BlockGameArcade";
|
||||
|
||||
[Dependency] private readonly IEntityManager _entityManager = default!;
|
||||
|
||||
private bool Powered => _entityManager.TryGetComponent<ApcPowerReceiverComponent>(Owner, out var powerReceiverComponent) && powerReceiverComponent.Powered;
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace Content.Server.Armor
|
||||
[RegisterComponent]
|
||||
public class ArmorComponent : Component
|
||||
{
|
||||
public override string Name => "Armor";
|
||||
|
||||
[DataField("modifiers", required: true)]
|
||||
public DamageModifierSet Modifiers = default!;
|
||||
}
|
||||
|
||||
@@ -13,8 +13,6 @@ namespace Content.Server.Atmos.Components
|
||||
[RegisterComponent]
|
||||
public class AirtightComponent : Component
|
||||
{
|
||||
public override string Name => "Airtight";
|
||||
|
||||
public (GridId Grid, Vector2i Tile) LastPosition { get; set; }
|
||||
|
||||
[DataField("airBlockedDirection", customTypeSerializer: typeof(FlagSerializer<AtmosDirectionFlags>))]
|
||||
|
||||
@@ -9,6 +9,5 @@ namespace Content.Server.Atmos.Components
|
||||
[RegisterComponent]
|
||||
public class AtmosExposedComponent : Component
|
||||
{
|
||||
public override string Name => "AtmosExposed";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,8 +9,6 @@ namespace Content.Server.Atmos.Components
|
||||
[RegisterComponent]
|
||||
public class AtmosFixMarkerComponent : Component
|
||||
{
|
||||
public override string Name => "AtmosFixMarker";
|
||||
|
||||
// See FixGridAtmos for more details
|
||||
[DataField("mode")]
|
||||
public int Mode { get; set; } = 0;
|
||||
|
||||
@@ -12,8 +12,6 @@ namespace Content.Server.Atmos.Components
|
||||
[RegisterComponent]
|
||||
public class BarotraumaComponent : Component
|
||||
{
|
||||
public override string Name => "Barotrauma";
|
||||
|
||||
[DataField("damage", required: true)]
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public DamageSpecifier Damage = default!;
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace Content.Server.Atmos.Components
|
||||
/// Used in internals as breath tool.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[ComponentProtoName("BreathMask")]
|
||||
public class BreathToolComponent : Component
|
||||
{
|
||||
[Dependency] private readonly IEntityManager _entities = default!;
|
||||
@@ -21,8 +22,6 @@ namespace Content.Server.Atmos.Components
|
||||
/// </summary>
|
||||
[DataField("allowedSlots")]
|
||||
public SlotFlags AllowedSlots = SlotFlags.MASK;
|
||||
|
||||
public override string Name => "BreathMask";
|
||||
public bool IsFunctional;
|
||||
public EntityUid ConnectedInternalsEntity;
|
||||
|
||||
|
||||
@@ -10,8 +10,6 @@ namespace Content.Server.Atmos.Components
|
||||
[RegisterComponent]
|
||||
public class FlammableComponent : Component
|
||||
{
|
||||
public override string Name => "Flammable";
|
||||
|
||||
[ViewVariables]
|
||||
public bool Resisting = false;
|
||||
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace Content.Server.Atmos.Components
|
||||
[RegisterComponent]
|
||||
public class GasMixtureHolderComponent : Component, IGasMixtureHolder
|
||||
{
|
||||
public override string Name => "GasMixtureHolder";
|
||||
|
||||
[ViewVariables] [DataField("air")] public GasMixture Air { get; set; } = new GasMixture();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,8 +36,6 @@ namespace Content.Server.Atmos.Components
|
||||
{
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
|
||||
public override string Name => "GasTank";
|
||||
|
||||
private const float MaxExplosionRange = 14f;
|
||||
private const float DefaultOutputPressure = Atmospherics.OneAtmosphere;
|
||||
|
||||
|
||||
@@ -20,8 +20,6 @@ namespace Content.Server.Atmos.Components
|
||||
[RegisterComponent, Serializable]
|
||||
public class GridAtmosphereComponent : Component, IAtmosphereComponent, ISerializationHooks
|
||||
{
|
||||
public override string Name => "GridAtmosphere";
|
||||
|
||||
public virtual bool Simulated => true;
|
||||
|
||||
[ViewVariables]
|
||||
|
||||
@@ -11,9 +11,7 @@ namespace Content.Server.Atmos.Components
|
||||
[RegisterComponent]
|
||||
public class IgniteOnCollideComponent : Component
|
||||
{
|
||||
public override string Name => "IgniteOnCollide";
|
||||
|
||||
[DataField("fireStacks")]
|
||||
public float FireStacks { get; set; }
|
||||
public float FireStacks { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,8 +20,6 @@ namespace Content.Server.Atmos.Components
|
||||
[Dependency] private readonly IRobustRandom _robustRandom = default!;
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
|
||||
public override string Name => "MovedByPressure";
|
||||
|
||||
private const float MoveForcePushRatio = 1f;
|
||||
private const float MoveForceForcePushRatio = 1f;
|
||||
private const float ProbabilityOffset = 25f;
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace Content.Server.Atmos.Components
|
||||
[RegisterComponent]
|
||||
public class PressureProtectionComponent : Component
|
||||
{
|
||||
public override string Name => "PressureProtection";
|
||||
|
||||
[DataField("highPressureMultiplier")]
|
||||
public float HighPressureMultiplier { get; } = 1f;
|
||||
|
||||
|
||||
@@ -6,8 +6,6 @@ namespace Content.Server.Atmos.Components
|
||||
[ComponentReference(typeof(IAtmosphereComponent))]
|
||||
public class SpaceAtmosphereComponent : Component, IAtmosphereComponent
|
||||
{
|
||||
public override string Name => "SpaceAtmosphere";
|
||||
|
||||
public bool Simulated => false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace Content.Server.Atmos.Components;
|
||||
[RegisterComponent]
|
||||
public class TemperatureProtectionComponent : Component
|
||||
{
|
||||
public override string Name => "TemperatureProtection";
|
||||
|
||||
/// <summary>
|
||||
/// How much to multiply temperature deltas by.
|
||||
/// </summary>
|
||||
|
||||
@@ -12,8 +12,6 @@ namespace Content.Server.Atmos.Components
|
||||
[Serializable]
|
||||
public class UnsimulatedGridAtmosphereComponent : GridAtmosphereComponent
|
||||
{
|
||||
public override string Name => "UnsimulatedGridAtmosphere";
|
||||
|
||||
public override bool Simulated => false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,8 +29,6 @@ namespace Content.Server.Atmos.Monitor.Components
|
||||
// Remember to null this afterwards.
|
||||
[ViewVariables] public IAirAlarmModeUpdate? CurrentModeUpdater { get; set; }
|
||||
|
||||
public override string Name => "AirAlarm";
|
||||
|
||||
public Dictionary<string, IAtmosDeviceData> DeviceData = new();
|
||||
|
||||
public HashSet<NetUserId> ActivePlayers = new();
|
||||
|
||||
@@ -28,8 +28,6 @@ namespace Content.Server.Atmos.Monitor.Components
|
||||
[RegisterComponent]
|
||||
public class AtmosAlarmableComponent : Component
|
||||
{
|
||||
public override string Name => "AtmosAlarmable";
|
||||
|
||||
[ViewVariables]
|
||||
public List<EntityUid> LinkedMonitors { get; set; } = new();
|
||||
|
||||
|
||||
@@ -14,8 +14,6 @@ namespace Content.Server.Atmos.Monitor.Components
|
||||
[RegisterComponent]
|
||||
public class AtmosMonitorComponent : Component
|
||||
{
|
||||
public override string Name => "AtmosMonitor";
|
||||
|
||||
// Whether this monitor can send alarms,
|
||||
// or recieve atmos command events.
|
||||
//
|
||||
|
||||
@@ -24,9 +24,6 @@ namespace Content.Server.Atmos.Monitor.Components
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
|
||||
private AtmosMonitorSystem? _atmosMonitorSystem;
|
||||
|
||||
public override string Name => "FireAlarm";
|
||||
|
||||
private CancellationTokenSource _powerPulsedCancel = new();
|
||||
private int PowerPulsedTimeout = 30;
|
||||
|
||||
|
||||
@@ -10,8 +10,6 @@ namespace Content.Server.Atmos.Piping.Binary.Components
|
||||
[RegisterComponent]
|
||||
public class GasDualPortVentPumpComponent : Component
|
||||
{
|
||||
public override string Name => "GasDualPortVentPump";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public bool Enabled { get; set; } = true;
|
||||
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace Content.Server.Atmos.Piping.Binary.Components
|
||||
[RegisterComponent]
|
||||
public class GasPassiveGateComponent : Component
|
||||
{
|
||||
public override string Name => "GasPassiveGate";
|
||||
|
||||
[DataField("enabled")]
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public bool Enabled { get; set; } = true;
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace Content.Server.Atmos.Piping.Binary.Components
|
||||
[RegisterComponent]
|
||||
public class GasPortComponent : Component
|
||||
{
|
||||
public override string Name => "GasPort";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("pipe")]
|
||||
public string PipeName { get; set; } = "connected";
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace Content.Server.Atmos.Piping.Binary.Components
|
||||
[RegisterComponent]
|
||||
public class GasPressurePumpComponent : Component
|
||||
{
|
||||
public override string Name => "GasPressurePump";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public bool Enabled { get; set; } = true;
|
||||
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace Content.Server.Atmos.Piping.Binary.Components
|
||||
[RegisterComponent]
|
||||
public class GasValveComponent : Component
|
||||
{
|
||||
public override string Name => "GasValve";
|
||||
|
||||
[ViewVariables]
|
||||
[DataField("open")]
|
||||
public bool Open { get; set; } = true;
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace Content.Server.Atmos.Piping.Binary.Components
|
||||
[RegisterComponent]
|
||||
public class GasVolumePumpComponent : Component
|
||||
{
|
||||
public override string Name => "GasVolumePump";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public bool Enabled { get; set; } = true;
|
||||
|
||||
|
||||
@@ -13,8 +13,6 @@ namespace Content.Server.Atmos.Piping.Components
|
||||
[RegisterComponent]
|
||||
public class AtmosDeviceComponent : Component
|
||||
{
|
||||
public override string Name => "AtmosDevice";
|
||||
|
||||
/// <summary>
|
||||
/// Whether this device requires being anchored to join an atmosphere.
|
||||
/// </summary>
|
||||
|
||||
@@ -10,8 +10,6 @@ namespace Content.Server.Atmos.Piping.Components
|
||||
[RegisterComponent]
|
||||
public class AtmosPipeColorComponent : Component
|
||||
{
|
||||
public override string Name => "AtmosPipeColor";
|
||||
|
||||
[DataField("color")]
|
||||
public Color Color { get; set; } = Color.White;
|
||||
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace Content.Server.Atmos.Piping.Components
|
||||
[RegisterComponent]
|
||||
public class AtmosUnsafeUnanchorComponent : Component
|
||||
{
|
||||
public override string Name => "AtmosUnsafeUnanchor";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("enabled")]
|
||||
public bool Enabled { get; set; } = true;
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace Content.Server.Atmos.Piping.Other.Components
|
||||
[RegisterComponent]
|
||||
public class GasMinerComponent : Component
|
||||
{
|
||||
public override string Name => "GasMiner";
|
||||
|
||||
public bool Enabled { get; set; } = true;
|
||||
|
||||
public bool Broken { get; set; } = false;
|
||||
|
||||
@@ -10,8 +10,6 @@ namespace Content.Server.Atmos.Piping.Trinary.Components
|
||||
[RegisterComponent]
|
||||
public class GasFilterComponent : Component
|
||||
{
|
||||
public override string Name => "GasFilter";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public bool Enabled { get; set; } = true;
|
||||
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace Content.Server.Atmos.Piping.Trinary.Components
|
||||
[RegisterComponent]
|
||||
public class GasMixerComponent : Component
|
||||
{
|
||||
public override string Name => "GasMixer";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public bool Enabled = true;
|
||||
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace Content.Server.Atmos.Piping.Unary.Components
|
||||
[RegisterComponent]
|
||||
public class GasCanisterComponent : Component
|
||||
{
|
||||
public override string Name => "GasCanister";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("port")]
|
||||
public string PortName { get; set; } = "port";
|
||||
|
||||
@@ -7,7 +7,6 @@ namespace Content.Server.Atmos.Piping.Unary.Components
|
||||
[RegisterComponent]
|
||||
public class GasOutletInjectorComponent : Component
|
||||
{
|
||||
public override string Name => "GasOutletInjector";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public bool Enabled { get; set; } = true;
|
||||
|
||||
@@ -6,8 +6,6 @@ namespace Content.Server.Atmos.Piping.Unary.Components
|
||||
[RegisterComponent]
|
||||
public class GasPassiveVentComponent : Component
|
||||
{
|
||||
public override string Name => "GasPassiveVent";
|
||||
|
||||
[DataField("inlet")]
|
||||
public string InletName = "pipe";
|
||||
}
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace Content.Server.Atmos.Piping.Unary.Components
|
||||
[RegisterComponent]
|
||||
public class GasPortableComponent : Component
|
||||
{
|
||||
public override string Name => "GasPortable";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("port")]
|
||||
public string PortName { get; set; } = "port";
|
||||
|
||||
@@ -13,8 +13,6 @@ namespace Content.Server.Atmos.Piping.Unary.Components
|
||||
[RegisterComponent]
|
||||
public class GasThermoMachineComponent : Component, IRefreshParts, ISerializationHooks
|
||||
{
|
||||
public override string Name => "GasThermoMachine";
|
||||
|
||||
[DataField("inlet")]
|
||||
public string InletName { get; set; } = "pipe";
|
||||
|
||||
|
||||
@@ -10,8 +10,6 @@ namespace Content.Server.Atmos.Piping.Unary.Components
|
||||
[RegisterComponent]
|
||||
public class GasVentPumpComponent : Component
|
||||
{
|
||||
public override string Name => "GasVentPump";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public bool Enabled { get; set; } = true;
|
||||
|
||||
|
||||
@@ -11,8 +11,6 @@ namespace Content.Server.Atmos.Piping.Unary.Components
|
||||
[RegisterComponent]
|
||||
public class GasVentScrubberComponent : Component
|
||||
{
|
||||
public override string Name => "GasVentScrubber";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public bool Enabled { get; set; } = true;
|
||||
|
||||
|
||||
@@ -9,6 +9,5 @@ namespace Content.Server.Audio
|
||||
[RegisterComponent]
|
||||
public class AmbientOnPoweredComponent : Component
|
||||
{
|
||||
public override string Name => "AmbientOnPowered";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace Content.Server.BarSign
|
||||
[RegisterComponent]
|
||||
public class BarSignComponent : Component
|
||||
{
|
||||
public override string Name => "BarSign";
|
||||
|
||||
[DataField("current")]
|
||||
[ViewVariables(VVAccess.ReadOnly)]
|
||||
public string? CurrentSign;
|
||||
|
||||
@@ -13,8 +13,6 @@ namespace Content.Server.Body.Components
|
||||
[RegisterComponent, Friend(typeof(BloodstreamSystem))]
|
||||
public class BloodstreamComponent : Component, IGasMixtureHolder
|
||||
{
|
||||
public override string Name => "Bloodstream";
|
||||
|
||||
/// <summary>
|
||||
/// Max volume of internal solution storage
|
||||
/// </summary>
|
||||
|
||||
@@ -7,6 +7,5 @@ namespace Content.Server.Body.Components
|
||||
[RegisterComponent, Friend(typeof(BrainSystem))]
|
||||
public class BrainComponent : Component
|
||||
{
|
||||
public override string Name => "Brain";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,6 @@ namespace Content.Server.Body.Components
|
||||
{
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
|
||||
public override string Name => "Internals";
|
||||
[ViewVariables] public EntityUid? GasTankEntity { get; set; }
|
||||
[ViewVariables] public EntityUid? BreathToolEntity { get; set; }
|
||||
|
||||
|
||||
@@ -12,8 +12,6 @@ namespace Content.Server.Body.Components;
|
||||
[RegisterComponent, Friend(typeof(LungSystem))]
|
||||
public class LungComponent : Component
|
||||
{
|
||||
public override string Name => "Lung";
|
||||
|
||||
public float AccumulatedFrametime;
|
||||
|
||||
[ViewVariables]
|
||||
|
||||
@@ -17,8 +17,6 @@ namespace Content.Server.Body.Components
|
||||
[RegisterComponent, Friend(typeof(MetabolizerSystem))]
|
||||
public class MetabolizerComponent : Component
|
||||
{
|
||||
public override string Name => "Metabolizer";
|
||||
|
||||
public float AccumulatedFrametime = 0.0f;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -12,8 +12,6 @@ namespace Content.Server.Body.Components
|
||||
[RegisterComponent, Friend(typeof(RespiratorSystem))]
|
||||
public class RespiratorComponent : Component
|
||||
{
|
||||
public override string Name => "Respirator";
|
||||
|
||||
[ViewVariables]
|
||||
[DataField("needsGases")]
|
||||
public Dictionary<Gas, float> NeedsGases { get; set; } = new();
|
||||
|
||||
@@ -12,8 +12,6 @@ namespace Content.Server.Body.Components
|
||||
[RegisterComponent, Friend(typeof(StomachSystem))]
|
||||
public class StomachComponent : Component
|
||||
{
|
||||
public override string Name => "Stomach";
|
||||
|
||||
public float AccumulatedFrameTime;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -10,8 +10,6 @@ namespace Content.Server.Body.Components;
|
||||
[Friend(typeof(ThermalRegulatorSystem))]
|
||||
public class ThermalRegulatorComponent : Component
|
||||
{
|
||||
public override string Name => "ThermalRegulator";
|
||||
|
||||
/// <summary>
|
||||
/// Heat generated due to metabolism. It's generated via metabolism
|
||||
/// </summary>
|
||||
|
||||
@@ -11,8 +11,6 @@ namespace Content.Server.Botany.Components
|
||||
[RegisterComponent]
|
||||
public class LogComponent : Component, IInteractUsing
|
||||
{
|
||||
public override string Name => "Log";
|
||||
|
||||
async Task<bool> IInteractUsing.InteractUsing(InteractUsingEventArgs eventArgs)
|
||||
{
|
||||
if (!EntitySystem.Get<ActionBlockerSystem>().CanInteract(eventArgs.User))
|
||||
|
||||
@@ -47,8 +47,6 @@ namespace Content.Server.Botany.Components
|
||||
[Dependency] private readonly IGameTiming _gameTiming = default!;
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
|
||||
public override string Name => "PlantHolder";
|
||||
|
||||
[ViewVariables] private int _lastProduce;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)] private int _missingGas;
|
||||
|
||||
@@ -16,7 +16,6 @@ namespace Content.Server.Botany.Components
|
||||
[RegisterComponent]
|
||||
public class ProduceComponent : Component, ISerializationHooks
|
||||
{
|
||||
public override string Name => "Produce";
|
||||
[DataField("targetSolution")] public string SolutionName { get; set; } = "food";
|
||||
|
||||
[DataField("seed")] private string? _seedName;
|
||||
|
||||
@@ -14,8 +14,6 @@ namespace Content.Server.Botany.Components
|
||||
public class SeedComponent : Component, IExamine
|
||||
#pragma warning restore 618
|
||||
{
|
||||
public override string Name => "Seed";
|
||||
|
||||
[DataField("seed")]
|
||||
private string? _seedName;
|
||||
|
||||
|
||||
@@ -15,8 +15,6 @@ namespace Content.Server.Botany.Components
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
[Dependency] private readonly IRobustRandom _random = default!;
|
||||
|
||||
public override string Name => "SeedExtractor";
|
||||
|
||||
// TODO: Upgradeable machines.
|
||||
private int _minSeeds = 1;
|
||||
private int _maxSeeds = 4;
|
||||
|
||||
@@ -12,8 +12,6 @@ namespace Content.Server.Cabinet
|
||||
[RegisterComponent]
|
||||
public class ItemCabinetComponent : Component
|
||||
{
|
||||
public override string Name => "ItemCabinet";
|
||||
|
||||
/// <summary>
|
||||
/// Sound to be played when the cabinet door is opened.
|
||||
/// </summary>
|
||||
|
||||
@@ -27,7 +27,6 @@ namespace Content.Server.Cargo.Components
|
||||
{
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
||||
public override string Name => "CargoTelepad";
|
||||
|
||||
private const float TeleportDuration = 0.5f;
|
||||
private const float TeleportDelay = 15f;
|
||||
|
||||
@@ -16,7 +16,6 @@ namespace Content.Server.Chemistry.Components
|
||||
{
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
|
||||
public override string Name => "FoamSolutionAreaEffect";
|
||||
public new const string SolutionName = "solutionArea";
|
||||
|
||||
[DataField("foamedMetalPrototype")] private string? _foamedMetalPrototype;
|
||||
|
||||
@@ -10,8 +10,6 @@ namespace Content.Server.Chemistry.Components
|
||||
[RegisterComponent]
|
||||
public class MeleeChemicalInjectorComponent : Component
|
||||
{
|
||||
public override string Name => "MeleeChemicalInjector";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("transferAmount")]
|
||||
public FixedPoint2 TransferAmount { get; set; } = FixedPoint2.New(1);
|
||||
|
||||
@@ -10,8 +10,6 @@ namespace Content.Server.Chemistry.Components
|
||||
[RegisterComponent]
|
||||
public class ReagentTankComponent : Component
|
||||
{
|
||||
public override string Name => "ReagentTank";
|
||||
|
||||
[DataField("transferAmount")]
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public FixedPoint2 TransferAmount { get; set; } = FixedPoint2.New(10);
|
||||
|
||||
@@ -11,8 +11,6 @@ namespace Content.Server.Chemistry.Components
|
||||
[RegisterComponent]
|
||||
public class RehydratableComponent : Component
|
||||
{
|
||||
public override string Name => "Rehydratable";
|
||||
|
||||
[ViewVariables]
|
||||
[DataField("catalyst")]
|
||||
internal string CatalystPrototype = "Water";
|
||||
|
||||
@@ -16,7 +16,6 @@ namespace Content.Server.Chemistry.Components
|
||||
{
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
|
||||
public override string Name => "SmokeSolutionAreaEffect";
|
||||
public new const string SolutionName = "solutionArea";
|
||||
|
||||
protected override void UpdateVisuals()
|
||||
|
||||
@@ -13,8 +13,6 @@ namespace Content.Server.Chemistry.Components
|
||||
[RegisterComponent]
|
||||
public class SolutionAreaEffectInceptionComponent : Component
|
||||
{
|
||||
public override string Name => "AreaEffectInception";
|
||||
|
||||
private const float ReactionDelay = 1.5f;
|
||||
|
||||
private readonly HashSet<SolutionAreaEffectComponent> _group = new();
|
||||
|
||||
@@ -13,7 +13,6 @@ namespace Content.Server.Chemistry.Components
|
||||
[RegisterComponent]
|
||||
internal sealed class SolutionInjectOnCollideComponent : Component
|
||||
{
|
||||
public override string Name => "SolutionInjectOnCollide";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("transferAmount")]
|
||||
|
||||
@@ -11,8 +11,6 @@ namespace Content.Server.Chemistry.Components.SolutionManager
|
||||
[RegisterComponent]
|
||||
public class DrainableSolutionComponent : Component
|
||||
{
|
||||
public override string Name => "DrainableSolution";
|
||||
|
||||
/// <summary>
|
||||
/// Solution name that can be drained.
|
||||
/// </summary>
|
||||
|
||||
@@ -10,8 +10,6 @@ namespace Content.Server.Chemistry.Components.SolutionManager
|
||||
[RegisterComponent]
|
||||
public class DrawableSolutionComponent : Component
|
||||
{
|
||||
public override string Name => "DrawableSolution";
|
||||
|
||||
/// <summary>
|
||||
/// Solution name that can be removed with syringes.
|
||||
/// </summary>
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace Content.Server.Chemistry.Components.SolutionManager
|
||||
[RegisterComponent]
|
||||
public class ExaminableSolutionComponent: Component
|
||||
{
|
||||
public override string Name => "ExaminableSolution";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("solution")]
|
||||
public string Solution { get; set; } = "default";
|
||||
|
||||
@@ -10,7 +10,6 @@ namespace Content.Server.Chemistry.Components.SolutionManager
|
||||
[RegisterComponent]
|
||||
public class InjectableSolutionComponent : Component
|
||||
{
|
||||
public override string Name => "InjectableSolution";
|
||||
|
||||
/// <summary>
|
||||
/// Solution name which can be added with syringes.
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user