JohnCorby e6eebb7668 TODO
2022-08-02 20:10:19 -07:00

20 lines
757 B
C#

using QSB.EchoesOfTheEye.DreamLantern.Messages;
using QSB.Messaging;
using QSB.WorldSync;
namespace QSB.EchoesOfTheEye.DreamLantern.WorldObjects;
/// <summary>
/// TODO: lanterns held by ghosts should only be controlled by the host (to prevent it from visually freaking out)
/// </summary>
public class QSBDreamLantern : WorldObject<DreamLanternController>
{
public override void SendInitialState(uint to)
{
this.SendMessage(new SetLitMessage(AttachedObject._lit) { To = to });
this.SendMessage(new SetConcealedMessage(AttachedObject._concealed) { To = to });
this.SendMessage(new SetFocusMessage(AttachedObject._focus) { To = to });
this.SendMessage(new SetRangeMessage(AttachedObject._minRange, AttachedObject._maxRange) { To = to });
}
}