14 lines
595 B
C#
Raw Normal View History

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