Auto comp (#6416)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user