Add Different Styles for Instruments (#9250)

This commit is contained in:
EmoGarbage404
2022-07-02 04:08:56 -04:00
committed by GitHub
parent 6e0e350e86
commit a633fe7d5e
7 changed files with 107 additions and 2 deletions

View File

@@ -18,6 +18,12 @@ public abstract class SharedInstrumentSystem : EntitySystem
public virtual void EndRenderer(EntityUid uid, bool fromStateChange, SharedInstrumentComponent? instrument = null)
{ }
public void SetInstrumentProgram(SharedInstrumentComponent component, byte program, byte bank)
{
component.InstrumentProgram = program;
component.InstrumentBank = bank;
}
private void OnGetState(EntityUid uid, SharedInstrumentComponent instrument, ref ComponentGetState args)
{
args.State =