mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-30 03:32:47 +00:00
16 lines
513 B
C#
16 lines
513 B
C#
using QSB.EchoesOfTheEye.DreamCandles.WorldObjects;
|
|
using QSB.Messaging;
|
|
using QSB.Patches;
|
|
|
|
namespace QSB.EchoesOfTheEye.DreamCandles.Messages;
|
|
|
|
public class SetLitMessage : QSBWorldObjectMessage<QSBDreamCandle,
|
|
(bool Lit, bool PlayAudio, bool Instant)>
|
|
{
|
|
public SetLitMessage(bool lit, bool playAudio, bool instant) :
|
|
base((lit, playAudio, instant)) { }
|
|
|
|
public override void OnReceiveRemote() =>
|
|
QSBPatch.RemoteCall(() => WorldObject.AttachedObject.SetLit(Data.Lit, Data.PlayAudio, Data.Instant));
|
|
}
|