mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-30 12:32:55 +00:00
18 lines
623 B
C#
18 lines
623 B
C#
using QSB.EchoesOfTheEye.VisionTorch.WorldObjects;
|
|
using QSB.Messaging;
|
|
|
|
namespace QSB.EchoesOfTheEye.VisionTorch.Messages;
|
|
|
|
public class VisionTorchProjectMessage : QSBWorldObjectMessage<QSBVisionTorchItem, bool>
|
|
{
|
|
public VisionTorchProjectMessage(bool projecting) : base(projecting) { }
|
|
|
|
public override void OnReceiveRemote()
|
|
{
|
|
WorldObject.AttachedObject._isProjecting = Data;
|
|
WorldObject.AttachedObject._mindProjectorTrigger.SetProjectorActive(Data);
|
|
// prevent the torch from actually doing things remotely
|
|
WorldObject.AttachedObject.mindProjectorTrigger._triggerVolume.SetTriggerActivation(false);
|
|
}
|
|
}
|