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

13 lines
450 B
C#

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