quantum-space-buddies/QSB/EchoesOfTheEye/DreamLantern/Messages/SetFocusMessage.cs
2022-08-28 22:21:20 -07:00

13 lines
357 B
C#

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