quantum-space-buddies/QSB/Tools/TranslatorTool/Messages/TranslatorScrollMessage.cs
2022-07-01 10:48:30 +01:00

17 lines
407 B
C#

using QSB.Messaging;
using QSB.Player;
namespace QSB.Tools.TranslatorTool.Messages;
internal class TranslatorScrollMessage : QSBMessage<float>
{
public TranslatorScrollMessage(float scrollPos) : base(scrollPos) { }
public override void OnReceiveRemote()
{
var player = QSBPlayerManager.GetPlayer(From);
var translator = (QSBNomaiTranslator)player.Translator;
translator.SetScroll(Data);
}
}