1
0

SwappableInstrumentComponent.cs 491 B

1234567891011121314
  1. namespace Content.Server.Instruments;
  2. [RegisterComponent]
  3. public sealed partial class SwappableInstrumentComponent : Component
  4. {
  5. /// <summary>
  6. /// Used to store the different instruments that can be swapped between.
  7. /// string = display name of the instrument
  8. /// byte 1 = instrument midi program
  9. /// byte 2 = instrument midi bank
  10. /// </summary>
  11. [DataField("instrumentList", required: true)]
  12. public Dictionary<string, (byte, byte)> InstrumentList = new();
  13. }