Files
tbd-station-14/Content.Shared/SprayPainter/Components/SprayPainterComponent.cs
lzk 1cbc8c1dcc Allow to paint multiple airlocks (#34001)
* Allow to paint multiple airlocks

* oh right
2024-12-24 03:25:03 +01:00

38 lines
1.1 KiB
C#

using Content.Shared.DoAfter;
using Robust.Shared.Audio;
using Robust.Shared.GameStates;
namespace Content.Shared.SprayPainter.Components;
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class SprayPainterComponent : Component
{
[DataField]
public SoundSpecifier SpraySound = new SoundPathSpecifier("/Audio/Effects/spray2.ogg");
[DataField]
public TimeSpan AirlockSprayTime = TimeSpan.FromSeconds(3);
[DataField]
public TimeSpan PipeSprayTime = TimeSpan.FromSeconds(1);
/// <summary>
/// Pipe color chosen to spray with.
/// </summary>
[DataField, AutoNetworkedField]
public string? PickedColor;
/// <summary>
/// Pipe colors that can be selected.
/// </summary>
[DataField]
public Dictionary<string, Color> ColorPalette = new();
/// <summary>
/// Airlock style index selected.
/// After prototype reload this might not be the same style but it will never be out of bounds.
/// </summary>
[DataField, AutoNetworkedField]
public int Index;
}