2022-03-25 17:17:29 +13:00
|
|
|
using Robust.Shared.Audio;
|
2024-02-01 07:29:01 -06:00
|
|
|
using Robust.Shared.GameStates;
|
2019-06-07 16:15:20 +05:00
|
|
|
|
2024-02-01 07:29:01 -06:00
|
|
|
namespace Content.Shared.Explosion.Components
|
2019-06-07 16:15:20 +05:00
|
|
|
{
|
2024-02-01 07:29:01 -06:00
|
|
|
[RegisterComponent, NetworkedComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class OnUseTimerTriggerComponent : Component
|
2019-06-07 16:15:20 +05:00
|
|
|
{
|
2024-02-01 07:29:01 -06:00
|
|
|
[DataField] public float Delay = 1f;
|
2022-03-25 17:17:29 +13:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// If not null, a user can use verbs to configure the delay to one of these options.
|
|
|
|
|
/// </summary>
|
2024-02-01 07:29:01 -06:00
|
|
|
[DataField] public List<float>? DelayOptions = null;
|
2022-03-25 17:17:29 +13:00
|
|
|
|
|
|
|
|
/// <summary>
|
2023-03-20 19:32:28 +00:00
|
|
|
/// If not null, this timer will periodically play this sound while active.
|
2022-03-25 17:17:29 +13:00
|
|
|
/// </summary>
|
2024-02-01 07:29:01 -06:00
|
|
|
[DataField] public SoundSpecifier? BeepSound;
|
2022-03-25 17:17:29 +13:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Time before beeping starts. Defaults to a single beep interval. If set to zero, will emit a beep immediately after use.
|
|
|
|
|
/// </summary>
|
2024-02-01 07:29:01 -06:00
|
|
|
[DataField] public float? InitialBeepDelay;
|
2022-03-25 17:17:29 +13:00
|
|
|
|
2024-02-01 07:29:01 -06:00
|
|
|
[DataField] public float BeepInterval = 1;
|
2022-03-25 17:17:29 +13:00
|
|
|
|
2023-09-28 06:09:44 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// Whether the timer should instead be activated through a verb in the right-click menu
|
|
|
|
|
/// </summary>
|
2024-02-01 07:29:01 -06:00
|
|
|
[DataField] public bool UseVerbInstead = false;
|
2023-09-28 06:09:44 +02:00
|
|
|
|
2022-04-15 01:00:50 +03:00
|
|
|
/// <summary>
|
|
|
|
|
/// Should timer be started when it was stuck to another entity.
|
|
|
|
|
/// Used for C4 charges and similar behaviour.
|
|
|
|
|
/// </summary>
|
2024-02-01 07:29:01 -06:00
|
|
|
[DataField] public bool StartOnStick;
|
2022-08-14 15:48:02 +10:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Allows changing the start-on-stick quality.
|
|
|
|
|
/// </summary>
|
2024-02-01 07:29:01 -06:00
|
|
|
[DataField("canToggleStartOnStick")] public bool AllowToggleStartOnStick;
|
2023-03-20 19:32:28 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether you can examine the item to see its timer or not.
|
|
|
|
|
/// </summary>
|
2024-02-01 07:29:01 -06:00
|
|
|
[DataField] public bool Examinable = true;
|
2019-06-07 16:15:20 +05:00
|
|
|
}
|
2019-07-31 15:02:36 +02:00
|
|
|
}
|