2023-09-08 18:16:05 -07:00
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
2022-06-30 03:44:53 -04:00
|
|
|
|
|
|
|
|
namespace Content.Server.Clothing.Components
|
|
|
|
|
{
|
|
|
|
|
[Access(typeof(MaskSystem))]
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class MaskComponent : Component
|
2022-06-30 03:44:53 -04:00
|
|
|
{
|
2023-09-08 18:16:05 -07:00
|
|
|
[DataField("toggleAction", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
|
|
|
|
public string ToggleAction = "ActionToggleMask";
|
|
|
|
|
|
2022-06-30 03:44:53 -04:00
|
|
|
/// <summary>
|
|
|
|
|
/// This mask can be toggled (pulled up/down)
|
|
|
|
|
/// </summary>
|
2023-09-08 18:16:05 -07:00
|
|
|
[DataField("toggleActionEntity")]
|
|
|
|
|
public EntityUid? ToggleActionEntity;
|
2022-06-30 03:44:53 -04:00
|
|
|
|
|
|
|
|
public bool IsToggled = false;
|
|
|
|
|
}
|
|
|
|
|
}
|