using QSB.Messaging; using QSB.MeteorSync.WorldObjects; using QSB.WorldSync; namespace QSB.MeteorSync.Messages; public class MeteorLaunchMessage : QSBWorldObjectMessage { public MeteorLaunchMessage(MeteorController meteor, float launchSpeed) : base(( meteor.GetWorldObject().ObjectId, launchSpeed )) { } public override void OnReceiveRemote() => WorldObject.LaunchMeteor( Data.MeteorId.GetWorldObject().AttachedObject, Data.LaunchSpeed ); }