| 123456789101112131415161718192021 |
- namespace Content.Shared.Instruments;
- public abstract class SharedInstrumentSystem : EntitySystem
- {
- public abstract bool ResolveInstrument(EntityUid uid, ref SharedInstrumentComponent? component);
- public virtual void SetupRenderer(EntityUid uid, bool fromStateChange, SharedInstrumentComponent? instrument = null)
- {
- }
- public virtual void EndRenderer(EntityUid uid, bool fromStateChange, SharedInstrumentComponent? instrument = null)
- {
- }
- public void SetInstrumentProgram(EntityUid uid, SharedInstrumentComponent component, byte program, byte bank)
- {
- component.InstrumentBank = bank;
- component.InstrumentProgram = program;
- Dirty(uid, component);
- }
- }
|