using QSB.EchoesOfTheEye.RaftSync.WorldObjects; using QSB.Messaging; using QSB.WorldSync; namespace QSB.EchoesOfTheEye.RaftSync.Messages; public class RaftSetDockMessage : QSBWorldObjectMessage { public RaftSetDockMessage(RaftCarrier raftCarrier) : base(raftCarrier != null ? raftCarrier.GetWorldObject().ObjectId : -1) { } public override void OnReceiveRemote() => WorldObject.SetDock(Data != -1 ? Data.GetWorldObject() : null).Forget(); }