Add sfx for writing on paper (#25257)

* Initial commit

* Moved params to sound

* Removed type tag

* Removed null check

* Forced default
This commit is contained in:
Krunklehorn
2024-02-16 18:48:18 -05:00
committed by GitHub
parent b2e8c2e3aa
commit 1de3f24f16
9 changed files with 21 additions and 0 deletions

View File

@@ -1,9 +1,16 @@
using Robust.Shared.Audio;
using Robust.Shared.Serialization;
namespace Content.Shared.Paper;
public abstract partial class SharedPaperComponent : Component
{
/// <summary>
/// Sound played after writing to the paper.
/// </summary>
[DataField("sound")]
public SoundSpecifier? Sound { get; private set; } = new SoundCollectionSpecifier("PaperScribbles", AudioParams.Default.WithVariation(0.1f));
[Serializable, NetSerializable]
public sealed class PaperBoundUserInterfaceState : BoundUserInterfaceState
{