mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-10 06:51:36 +00:00
14 lines
539 B
C#
14 lines
539 B
C#
using QSB.EchoesOfTheEye.SlideProjectors.WorldObjects;
|
|
using QSB.Messaging;
|
|
using QSB.Player;
|
|
|
|
namespace QSB.EchoesOfTheEye.SlideProjectors.Messages;
|
|
|
|
public class UseSlideProjectorMessage : QSBWorldObjectMessage<QSBSlideProjector, uint>
|
|
{
|
|
public UseSlideProjectorMessage(bool @using) : base(@using ? QSBPlayerManager.LocalPlayerId : 0) { }
|
|
public UseSlideProjectorMessage(uint user) : base(user) { }
|
|
public override void OnReceiveLocal() => OnReceiveRemote();
|
|
public override void OnReceiveRemote() => WorldObject.SetUser(Data);
|
|
}
|