quantum-space-buddies/QSB/OrbSync/Messages/OrbDragMessage.cs
2022-02-13 05:41:29 -08:00

13 lines
306 B
C#

using QSB.Messaging;
using QSB.OrbSync.WorldObjects;
namespace QSB.OrbSync.Messages
{
public class OrbDragMessage : QSBWorldObjectMessage<QSBOrb, bool>
{
public OrbDragMessage(bool isDragging) => Value = isDragging;
public override void OnReceiveRemote() => WorldObject.SetDragging(Value);
}
}