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

14 lines
421 B
C#
Raw Normal View History

2022-04-14 06:30:59 +00:00
using QSB.EchoesOfTheEye.DreamLantern.WorldObjects;
using QSB.Messaging;
using QSB.Patches;
namespace QSB.EchoesOfTheEye.DreamLantern.Messages;
internal class SetConcealedMessage : QSBWorldObjectMessage<QSBDreamLantern, bool>
{
public SetConcealedMessage(bool concealed) : base(concealed) { }
public override void OnReceiveRemote()
=> QSBPatch.RemoteCall(() => WorldObject.AttachedObject.SetConcealed(Data));
}