23 lines
743 B
C#
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;
|
|
}
|