1
0

SharedInstrumentSystem.cs 716 B

123456789101112131415161718192021
  1. namespace Content.Shared.Instruments;
  2. public abstract class SharedInstrumentSystem : EntitySystem
  3. {
  4. public abstract bool ResolveInstrument(EntityUid uid, ref SharedInstrumentComponent? component);
  5. public virtual void SetupRenderer(EntityUid uid, bool fromStateChange, SharedInstrumentComponent? instrument = null)
  6. {
  7. }
  8. public virtual void EndRenderer(EntityUid uid, bool fromStateChange, SharedInstrumentComponent? instrument = null)
  9. {
  10. }
  11. public void SetInstrumentProgram(EntityUid uid, SharedInstrumentComponent component, byte program, byte bank)
  12. {
  13. component.InstrumentBank = bank;
  14. component.InstrumentProgram = program;
  15. Dirty(uid, component);
  16. }
  17. }