mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-17 10:14:14 +00:00
14 lines
595 B
C#
14 lines
595 B
C#
using QSB.EchoesOfTheEye.AlarmTotemSync.WorldObjects;
|
|
using QSB.Messaging;
|
|
using QSB.Player;
|
|
|
|
namespace QSB.EchoesOfTheEye.AlarmTotemSync.Messages;
|
|
|
|
public class SetVisibleMessage : QSBWorldObjectMessage<QSBAlarmTotem, (uint playerId, bool visible)>
|
|
{
|
|
public SetVisibleMessage(bool visible) : base((QSBPlayerManager.LocalPlayerId, visible)) { }
|
|
public SetVisibleMessage(uint playerId, bool visible) : base((playerId, visible)) { }
|
|
public override void OnReceiveLocal() => OnReceiveRemote();
|
|
public override void OnReceiveRemote() => WorldObject.SetVisible(Data.playerId, Data.visible);
|
|
}
|