quantum-space-buddies/QSB/EchoesOfTheEye/DreamLantern/Messages/SetFocusMessage.cs

13 lines
365 B
C#
Raw Permalink Normal View History

2022-04-14 06:30:59 +00:00
using QSB.EchoesOfTheEye.DreamLantern.WorldObjects;
using QSB.Messaging;
namespace QSB.EchoesOfTheEye.DreamLantern.Messages;
2023-07-28 18:30:57 +00:00
public class SetFocusMessage : QSBWorldObjectMessage<QSBDreamLanternController, float>
2022-04-14 06:30:59 +00:00
{
public SetFocusMessage(float focus) : base(focus) { }
public override void OnReceiveRemote()
2022-08-29 05:21:20 +00:00
=> WorldObject.AttachedObject.SetFocus(Data);
2022-04-14 06:30:59 +00:00
}