12 lines
414 B
C#
Raw Normal View History

2022-04-01 21:34:22 -07:00
using QSB.EchoesOfTheEye.AlarmTotemSync.WorldObjects;
using QSB.Messaging;
namespace QSB.EchoesOfTheEye.AlarmTotemSync.Messages;
2022-04-01 21:56:40 -07:00
public class SetVisibleMessage : QSBWorldObjectMessage<QSBAlarmTotem, bool>
2022-04-01 21:34:22 -07:00
{
2022-04-01 21:56:40 -07:00
public SetVisibleMessage(bool visible) : base(visible) { }
2022-04-01 21:34:22 -07:00
public override void OnReceiveLocal() => OnReceiveRemote();
2022-04-01 21:56:40 -07:00
public override void OnReceiveRemote() => WorldObject.SetVisible(From, Data);
2022-04-01 21:34:22 -07:00
}