quantum-space-buddies/QSB/EchoesOfTheEye/DreamLantern/Messages/SetFocusMessage.cs
2023-07-28 19:30:57 +01:00

13 lines
365 B
C#

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