quantum-space-buddies/QSB/EchoesOfTheEye/AlarmTotemSync/Messages/SetVisibleMessage.cs
JohnCorby 0e8c0af483 nvm
2022-04-01 21:56:40 -07:00

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);
}