Pipe painter (now with airlock painter) (#19031)
* Add a pipe painting function to the airlock painter Signed-off-by: c4llv07e <kseandi@gmail.com> * Rename engineer painter to omnipainter Signed-off-by: c4llv07e <kseandi@gmail.com> * review changes Signed-off-by: c4llv07e <kseandi@gmail.com> * fix migration duplicate Signed-off-by: c4llv07e <kseandi@gmail.com> --------- Signed-off-by: c4llv07e <kseandi@gmail.com>
This commit is contained in:
28
Content.Server/SprayPainter/SprayPainterComponent.cs
Normal file
28
Content.Server/SprayPainter/SprayPainterComponent.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using Robust.Shared.Audio;
|
||||
|
||||
namespace Content.Server.SprayPainter;
|
||||
|
||||
[RegisterComponent]
|
||||
public sealed class SprayPainterComponent : Component
|
||||
{
|
||||
[DataField("spraySound")]
|
||||
public SoundSpecifier SpraySound = new SoundPathSpecifier("/Audio/Effects/spray2.ogg");
|
||||
|
||||
[DataField("airlockSprayTime")]
|
||||
public float AirlockSprayTime = 3.0f;
|
||||
|
||||
[DataField("pipeSprayTime")]
|
||||
public float PipeSprayTime = 1.0f;
|
||||
|
||||
[DataField("isSpraying")]
|
||||
public bool IsSpraying = false;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public string? PickedColor;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("colorPalette")]
|
||||
public Dictionary<string, Color> ColorPalette = new();
|
||||
|
||||
public int Index = default!;
|
||||
}
|
||||
Reference in New Issue
Block a user