Rollerbeds (#5681)
This commit is contained in:
25
Content.Server/Foldable/FoldableComponent.cs
Normal file
25
Content.Server/Foldable/FoldableComponent.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
#nullable enable
|
||||
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Server.Foldable
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Used to create "foldable structures" that you can pickup like an item when folded. Used for rollerbeds and wheelchairs
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public class FoldableComponent : Component
|
||||
{
|
||||
public override string Name => "Foldable";
|
||||
|
||||
[DataField("folded")]
|
||||
[ViewVariables]
|
||||
public bool IsFolded = false;
|
||||
|
||||
public bool CanBeFolded = true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user