quantum-space-buddies/QSB/EchoesOfTheEye/DreamLantern/Messages/SetFocusMessage.cs
2022-04-13 23:33:33 -07:00

14 lines
403 B
C#

using QSB.EchoesOfTheEye.DreamLantern.WorldObjects;
using QSB.Messaging;
using QSB.Patches;
namespace QSB.EchoesOfTheEye.DreamLantern.Messages;
internal class SetFocusMessage : QSBWorldObjectMessage<QSBDreamLantern, float>
{
public SetFocusMessage(float focus) : base(focus) { }
public override void OnReceiveRemote()
=> QSBPatch.RemoteCall(() => WorldObject.AttachedObject.SetFocus(Data));
}