Files
crystall-punk-14/Content.Shared/Foldable/FoldableComponent.cs

27 lines
733 B
C#
Raw Permalink Normal View History

using Robust.Shared.GameStates;
namespace Content.Shared.Foldable;
/// <summary>
/// Used to create "foldable structures" that you can pickup like an item when folded.
/// </summary>
/// <remarks>
/// Will prevent any insertions into containers while this item is unfolded.
/// </remarks>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)]
2023-08-31 11:56:13 +10:00
[Access(typeof(FoldableSystem))]
public sealed partial class FoldableComponent : Component
{
[DataField("folded"), AutoNetworkedField]
public bool IsFolded = false;
[DataField]
public bool CanFoldInsideContainer = false;
[DataField]
public LocId UnfoldVerbText = "unfold-verb";
[DataField]
public LocId FoldVerbText = "fold-verb";
}