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