Files
tbd-station-14/Content.Shared/HotPotato/HotPotatoComponent.cs
Slava0135 c00bd9c247 Add hot potato (#14204)
Co-authored-by: AJCM <AJCM@tutanota.com>
2023-04-22 21:40:36 +10:00

21 lines
707 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.HotPotato;
/// <summary>
/// Similar to <see cref="Content.Shared.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("canTransfer"), ViewVariables(VVAccess.ReadWrite)]
[AutoNetworkedField]
public bool CanTransfer = true;
}