6
StarHorizon_Public/Content.Server/Instruments/SwappableInstrumentComponent.cs
2025-11-05 11:11:22 +03: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;
}