20 lines
637 B
C#
20 lines
637 B
C#
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.HotPotato;
|
|
|
|
/// <summary>
|
|
/// Similar to <see cref="Interaction.Components.UnremoveableComponent"/>
|
|
/// except entities with this component can be removed in specific case: <see cref="CanTransfer"/>
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent]
|
|
[AutoGenerateComponentState]
|
|
[Access(typeof(SharedHotPotatoSystem))]
|
|
public sealed partial class HotPotatoComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// If set to true entity can be removed by hitting entities if they have hands
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public bool CanTransfer = true;
|
|
}
|