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)
|
2023-07-16 21:12:53 +02:00
|
|
|
{
|
|
|
|
|
}
|
2021-11-28 01:47:36 +01:00
|
|
|
|
|
|
|
|
public virtual void EndRenderer(EntityUid uid, bool fromStateChange, SharedInstrumentComponent? instrument = null)
|
2023-07-16 21:12:53 +02:00
|
|
|
{
|
|
|
|
|
}
|
2021-11-28 01:47:36 +01:00
|
|
|
|
2024-03-19 23:27:02 -04:00
|
|
|
public void SetInstrumentProgram(EntityUid uid, SharedInstrumentComponent component, byte program, byte bank)
|
2022-07-02 04:08:56 -04:00
|
|
|
{
|
|
|
|
|
component.InstrumentBank = bank;
|
2022-07-24 13:40:05 +02:00
|
|
|
component.InstrumentProgram = program;
|
2024-03-19 23:27:02 -04:00
|
|
|
Dirty(uid, component);
|
2022-07-02 04:08:56 -04:00
|
|
|
}
|
2021-11-28 01:47:36 +01:00
|
|
|
}
|