JohnCorby a3ab23395f Revert "better meteor patches"
This reverts commit 7c57b1b69d92976182ea2b1ed3bcf4164e5d8857.
2022-02-14 15:25:43 -08:00

36 lines
679 B
C#

using QSB.WorldSync;
namespace QSB.MeteorSync.WorldObjects
{
public class QSBMeteorLauncher : WorldObject<MeteorLauncher>
{
public override void SendInitialState(uint to)
{
// todo SendInitialState
}
public int MeteorId;
public float LaunchSpeed;
public void PreLaunchMeteor()
{
foreach (var particleSystem in AttachedObject._launchParticles)
{
particleSystem.Play();
}
}
public void LaunchMeteor(int meteorId, float launchSpeed)
{
MeteorId = meteorId;
LaunchSpeed = launchSpeed;
AttachedObject.LaunchMeteor();
foreach (var particleSystem in AttachedObject._launchParticles)
{
particleSystem.Stop();
}
}
}
}