quantum-space-buddies/QSB/OrbSync/Messages/OrbDragMessage.cs

11 lines
297 B
C#
Raw Normal View History

2022-02-13 12:15:43 +00:00
using QSB.Messaging;
2021-12-23 09:50:09 +00:00
using QSB.OrbSync.WorldObjects;
2022-03-03 03:46:33 +00:00
namespace QSB.OrbSync.Messages;
public class OrbDragMessage : QSBWorldObjectMessage<QSBOrb, bool>
2021-12-23 09:50:09 +00:00
{
2022-03-11 01:57:50 +00:00
public OrbDragMessage(bool isDragging) : base(isDragging) { }
2021-12-23 09:50:09 +00:00
2022-03-03 03:46:33 +00:00
public override void OnReceiveRemote() => WorldObject.SetDragging(Data);
}