mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-30 03:32:47 +00:00
12 lines
414 B
C#
12 lines
414 B
C#
|
using QSB.EchoesOfTheEye.AlarmTotemSync.WorldObjects;
|
|||
|
using QSB.Messaging;
|
|||
|
|
|||
|
namespace QSB.EchoesOfTheEye.AlarmTotemSync.Messages;
|
|||
|
|
|||
|
public class SetVisibleMessage : QSBWorldObjectMessage<QSBAlarmTotem, bool>
|
|||
|
{
|
|||
|
public SetVisibleMessage(bool visible) : base(visible) { }
|
|||
|
public override void OnReceiveLocal() => OnReceiveRemote();
|
|||
|
public override void OnReceiveRemote() => WorldObject.SetVisible(From, Data);
|
|||
|
}
|