mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
* Replaced uses of Dirty(Component) with Dirty(Uid, Component)
Modified some systems (notably pulling-related) to use uids.
* Missed a few
* Revert changes to pulling
* No
(cherry picked from commit 4a83c36585)
22 lines
716 B
C#
22 lines
716 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(EntityUid uid, SharedInstrumentComponent component, byte program, byte bank)
|
|
{
|
|
component.InstrumentBank = bank;
|
|
component.InstrumentProgram = program;
|
|
Dirty(uid, component);
|
|
}
|
|
}
|