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

13 lines
306 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;
2021-12-23 10:17:56 +00:00
namespace QSB.OrbSync.Messages
2021-12-23 09:50:09 +00:00
{
2022-01-27 04:35:43 +00:00
public class OrbDragMessage : QSBWorldObjectMessage<QSBOrb, bool>
2021-12-23 09:50:09 +00:00
{
public OrbDragMessage(bool isDragging) => Value = isDragging;
2022-02-13 12:15:43 +00:00
public override void OnReceiveRemote() => WorldObject.SetDragging(Value);
2021-12-23 09:50:09 +00:00
}
2022-02-13 12:15:43 +00:00
}