Instruments can no longer be played 'remotely'. Fixes #1168

This commit is contained in:
Víctor Aguilera Puerto
2020-06-25 15:27:22 +02:00
parent b8eb9289a6
commit f07cb9042b
2 changed files with 33 additions and 0 deletions

View File

@@ -109,6 +109,12 @@ namespace Content.Client.GameObjects.Components.Instruments
}
}
/// <summary>
/// Whether this instrument is handheld or not.
/// </summary>
[ViewVariables]
public bool Handheld { get; set; } // TODO: Replace this by simply checking if the entity has an ItemComponent.
/// <summary>
/// Whether there's a midi song being played or not.
/// </summary>
@@ -198,6 +204,7 @@ namespace Content.Client.GameObjects.Components.Instruments
public override void ExposeData(ObjectSerializer serializer)
{
base.ExposeData(serializer);
serializer.DataField(this, x => Handheld, "handheld", false);
serializer.DataField(ref _instrumentProgram, "program", (byte) 1);
serializer.DataField(ref _instrumentBank, "bank", (byte) 0);
}