1
0

FoldableComponent.cs 733 B

1234567891011121314151617181920212223242526
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.Foldable;
  3. /// <summary>
  4. /// Used to create "foldable structures" that you can pickup like an item when folded.
  5. /// </summary>
  6. /// <remarks>
  7. /// Will prevent any insertions into containers while this item is unfolded.
  8. /// </remarks>
  9. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)]
  10. [Access(typeof(FoldableSystem))]
  11. public sealed partial class FoldableComponent : Component
  12. {
  13. [DataField("folded"), AutoNetworkedField]
  14. public bool IsFolded = false;
  15. [DataField]
  16. public bool CanFoldInsideContainer = false;
  17. [DataField]
  18. public LocId UnfoldVerbText = "unfold-verb";
  19. [DataField]
  20. public LocId FoldVerbText = "fold-verb";
  21. }