Files
Delta-v/Content.Server/Instruments/SwappableInstrumentComponent.cs
foxcurlandWhatstone bb9f0d3893 Harpies' sound can only be changed by themselves (#3485)
* Harpies' sound can only be changed by themselves (#1978)

(cherry picked from commit 61b4d29974e05b5cf366e33cb76489150a6ac8f3)

* comment

---------

Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com>
2025-04-16 22:13:14 +00:00

22 lines
684 B
C#

namespace Content.Server.Instruments;
[RegisterComponent]
public sealed partial class SwappableInstrumentComponent : Component
{
/// <summary>
/// Used to store the different instruments that can be swapped between.
/// string = display name of the instrument
/// byte 1 = instrument midi program
/// byte 2 = instrument midi bank
/// </summary>
[DataField("instrumentList", required: true)]
public Dictionary<string, (byte, byte)> InstrumentList = new();
// Frontier: harpy instruments
/// <summary>
/// When true, only the instrument entity itself can swap its sound.
/// </summary>
[DataField]
public bool OnlySetBySelf;
}