14 lines
539 B
C#
Raw Normal View History

2022-03-02 20:47:32 -08:00
using QSB.EchoesOfTheEye.SlideProjectors.WorldObjects;
using QSB.Messaging;
using QSB.Player;
namespace QSB.EchoesOfTheEye.SlideProjectors.Messages;
public class UseSlideProjectorMessage : QSBWorldObjectMessage<QSBSlideProjector, uint>
{
2022-03-10 17:57:50 -08:00
public UseSlideProjectorMessage(bool @using) : base(@using ? QSBPlayerManager.LocalPlayerId : 0) { }
public UseSlideProjectorMessage(uint user) : base(user) { }
2022-03-02 20:47:32 -08:00
public override void OnReceiveLocal() => OnReceiveRemote();
public override void OnReceiveRemote() => WorldObject.SetUser(Data);
}