Files
Delta-v/Content.Shared/_DV/Pager/PagerButtonComponent.cs
T
pathetic meowmeowandpre-commit-ci[bot] 3267b4c2a8 Doorbells (#5799)
* doored bell

* doored bell

* rezept

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-05-16 10:08:49 -05:00

42 lines
1014 B
C#

using Robust.Shared.Audio;
using Robust.Shared.GameStates;
namespace Content.Shared._DV.Pager;
/// <summary>
/// Sends out a page when pressed.
/// </summary>
[RegisterComponent, NetworkedComponent]
[Access(typeof(SharedPagerButtonSystem))]
public sealed partial class PagerButtonComponent : Component
{
/// <summary>
/// The sound to play when pressed.
/// </summary>
[DataField(required: true)]
public SoundSpecifier PressSound;
/// <summary>
/// The state to use for the press animation.
/// </summary>
[DataField(required: true)]
public string PressState;
/// <summary>
/// The state to use after the press animation.
/// </summary>
[DataField(required: true)]
public string UnpressedState;
/// <summary>
/// The message to send via the pager system. Has "location" passed in as an argument.
/// </summary>
[DataField(required: true)]
public LocId PageMessage;
}
public enum PagerButtonVisualLayers : byte
{
Base,
}