Add face bandanas (#24597)
* add face bandanas * oops * make face bandanas butcherable, also one bite * oops * Add mouth IdentityBlocker to bandanas * refactor to use foldablecomponent * remove some leftover bits * remove HamsterWearable until face sprite updated * oops * review changes * remove a few unneeded bits
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Foldable;
|
||||
|
||||
@@ -9,23 +8,13 @@ namespace Content.Shared.Foldable;
|
||||
/// <remarks>
|
||||
/// Will prevent any insertions into containers while this item is unfolded.
|
||||
/// </remarks>
|
||||
[RegisterComponent]
|
||||
[NetworkedComponent]
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)]
|
||||
[Access(typeof(FoldableSystem))]
|
||||
public sealed partial class FoldableComponent : Component
|
||||
{
|
||||
[DataField("folded")]
|
||||
[DataField("folded"), AutoNetworkedField]
|
||||
public bool IsFolded = false;
|
||||
}
|
||||
|
||||
// ahhh, the ol' "state thats just a copy of the component".
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class FoldableComponentState : ComponentState
|
||||
{
|
||||
public readonly bool IsFolded;
|
||||
|
||||
public FoldableComponentState(bool isFolded)
|
||||
{
|
||||
IsFolded = isFolded;
|
||||
}
|
||||
[DataField]
|
||||
public bool CanFoldInsideContainer = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user