|
1 | 1 | using Robust.Shared.Audio;
|
| 2 | +using Robust.Shared.GameStates; |
2 | 3 |
|
3 |
| -namespace Content.Server.Explosion.Components |
| 4 | +namespace Content.Shared.Explosion.Components |
4 | 5 | {
|
5 |
| - [RegisterComponent] |
| 6 | + [RegisterComponent, NetworkedComponent] |
6 | 7 | public sealed partial class OnUseTimerTriggerComponent : Component
|
7 | 8 | {
|
8 |
| - [DataField("delay")] |
9 |
| - public float Delay = 1f; |
| 9 | + [DataField] public float Delay = 1f; |
10 | 10 |
|
11 | 11 | /// <summary>
|
12 | 12 | /// If not null, a user can use verbs to configure the delay to one of these options.
|
13 | 13 | /// </summary>
|
14 |
| - [DataField("delayOptions")] |
15 |
| - public List<float>? DelayOptions = null; |
| 14 | + [DataField] public List<float>? DelayOptions = null; |
16 | 15 |
|
17 | 16 | /// <summary>
|
18 | 17 | /// If not null, this timer will periodically play this sound while active.
|
19 | 18 | /// </summary>
|
20 |
| - [DataField("beepSound")] |
21 |
| - public SoundSpecifier? BeepSound; |
| 19 | + [DataField] public SoundSpecifier? BeepSound; |
22 | 20 |
|
23 | 21 | /// <summary>
|
24 | 22 | /// Time before beeping starts. Defaults to a single beep interval. If set to zero, will emit a beep immediately after use.
|
25 | 23 | /// </summary>
|
26 |
| - [DataField("initialBeepDelay")] |
27 |
| - public float? InitialBeepDelay; |
| 24 | + [DataField] public float? InitialBeepDelay; |
28 | 25 |
|
29 |
| - [DataField("beepInterval")] |
30 |
| - public float BeepInterval = 1; |
| 26 | + [DataField] public float BeepInterval = 1; |
31 | 27 |
|
32 | 28 | /// <summary>
|
33 | 29 | /// Whether the timer should instead be activated through a verb in the right-click menu
|
34 | 30 | /// </summary>
|
35 |
| - [DataField("useVerbInstead")] |
36 |
| - public bool UseVerbInstead = false; |
| 31 | + [DataField] public bool UseVerbInstead = false; |
37 | 32 |
|
38 | 33 | /// <summary>
|
39 | 34 | /// Should timer be started when it was stuck to another entity.
|
40 | 35 | /// Used for C4 charges and similar behaviour.
|
41 | 36 | /// </summary>
|
42 |
| - [DataField("startOnStick")] |
43 |
| - public bool StartOnStick; |
| 37 | + [DataField] public bool StartOnStick; |
44 | 38 |
|
45 | 39 | /// <summary>
|
46 | 40 | /// Allows changing the start-on-stick quality.
|
47 | 41 | /// </summary>
|
48 |
| - [DataField("canToggleStartOnStick")] |
49 |
| - public bool AllowToggleStartOnStick; |
| 42 | + [DataField("canToggleStartOnStick")] public bool AllowToggleStartOnStick; |
50 | 43 |
|
51 | 44 | /// <summary>
|
52 | 45 | /// Whether you can examine the item to see its timer or not.
|
53 | 46 | /// </summary>
|
54 |
| - [DataField("examinable")] |
55 |
| - public bool Examinable = true; |
| 47 | + [DataField] public bool Examinable = true; |
56 | 48 | }
|
57 | 49 | }
|
0 commit comments