Files
tbd-station-14/Content.Shared/Instruments/SharedInstrumentSystem.cs
2023-09-12 14:43:06 +10:00

22 lines
696 B
C#

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(SharedInstrumentComponent component, byte program, byte bank)
{
component.InstrumentBank = bank;
component.InstrumentProgram = program;
Dirty(component);
}
}