Files
Delta-v/Content.Shared/_NF/Interaction/Components/HandPlaceholderRemoveableComponent.cs
T
deltanedasanddeltanedas 0201167941 rewrite borg hand code (#3126)
* fully rework borg hands

update modules

* not real

* fix plant bag

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
2025-03-06 01:45:33 +00:00

23 lines
743 B
C#

using Content.Shared._NF.Interaction.Systems;
using Robust.Shared.GameStates;
namespace Content.Shared._NF.Interaction.Components;
/// <summary>
/// When an entity with this is removed from a hand, it is replaced with an existing placeholder entity.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(HandPlaceholderSystem))]
[AutoGenerateComponentState]
public sealed partial class HandPlaceholderRemoveableComponent : Component
{
[DataField, AutoNetworkedField]
public EntityUid Placeholder;
/// <summary>
/// Used to prevent it incorrectly replacing with the placeholder,
/// when selecting and deselecting a module.
/// </summary>
[DataField, AutoNetworkedField]
public bool Enabled;
}