mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-03-11 10:14:17 +00:00
20 lines
757 B
C#
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 });
|
|
}
|
|
}
|