Add fultons (#18958)

This commit is contained in:
metalgearsloth
2023-08-29 16:34:05 +10:00
committed by GitHub
parent 9ffd3444a2
commit 789c5e0a2b
40 changed files with 705 additions and 37 deletions

View File

@@ -59,6 +59,17 @@ public abstract class SharedFoldableSystem : EntitySystem
args.Cancelled = true;
}
/// <summary>
/// Returns false if the entity isn't foldable.
/// </summary>
public bool IsFolded(EntityUid uid, FoldableComponent? component = null)
{
if (!Resolve(uid, ref component))
return false;
return component.IsFolded;
}
/// <summary>
/// Set the folded state of the given <see cref="FoldableComponent"/>
/// </summary>