6
StarHorizon_Public/Content.Shared/_NF/Interaction/Components/HandPlaceholderRemoveableComponent.cs
2025-11-03 10:15:18 +03: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;
}