Files
OldThink/Content.Shared/Instruments/SharedInstrumentSystem.cs

22 lines
716 B
C#
Raw Permalink Normal View History

2021-11-28 01:47:36 +01:00
namespace Content.Shared.Instruments;
public abstract class SharedInstrumentSystem : EntitySystem
{
2023-09-12 14:43:06 +10:00
public abstract bool ResolveInstrument(EntityUid uid, ref SharedInstrumentComponent? component);
2021-11-28 01:47:36 +01:00
public virtual void SetupRenderer(EntityUid uid, bool fromStateChange, SharedInstrumentComponent? instrument = null)
{
}
2021-11-28 01:47:36 +01:00
public virtual void EndRenderer(EntityUid uid, bool fromStateChange, SharedInstrumentComponent? instrument = null)
{
}
2021-11-28 01:47:36 +01:00
public void SetInstrumentProgram(EntityUid uid, SharedInstrumentComponent component, byte program, byte bank)
{
component.InstrumentBank = bank;
component.InstrumentProgram = program;
Dirty(uid, component);
}
2021-11-28 01:47:36 +01:00
}