2021-11-25 15:32:34 +00:00
|
|
|
|
using QSB.MeteorSync.WorldObjects;
|
2021-11-10 18:40:02 -08:00
|
|
|
|
using QSB.WorldSync;
|
2021-11-25 15:32:34 +00:00
|
|
|
|
using System.Linq;
|
2021-11-10 18:40:02 -08:00
|
|
|
|
|
|
|
|
|
namespace QSB.MeteorSync
|
|
|
|
|
{
|
|
|
|
|
public class MeteorManager : WorldObjectManager
|
|
|
|
|
{
|
2021-12-20 18:41:12 -08:00
|
|
|
|
public override WorldObjectType WorldObjectType => WorldObjectType.SolarSystem;
|
|
|
|
|
|
2021-11-14 03:29:58 -08:00
|
|
|
|
public static WhiteHoleVolume WhiteHoleVolume;
|
2021-11-10 18:40:02 -08:00
|
|
|
|
|
2022-01-18 00:46:27 -08:00
|
|
|
|
public override void BuildWorldObjects(OWScene scene)
|
2021-11-10 18:40:02 -08:00
|
|
|
|
{
|
2021-11-17 02:36:28 -08:00
|
|
|
|
// wait for all late initializers (which includes meteor launchers) to finish
|
2021-12-02 00:42:24 -08:00
|
|
|
|
StartDelayedReady();
|
2021-12-26 20:10:38 -08:00
|
|
|
|
QSBCore.UnityEvents.RunWhen(() => LateInitializerManager.isDoneInitializing, () =>
|
2021-11-10 18:40:02 -08:00
|
|
|
|
{
|
2021-12-02 00:42:24 -08:00
|
|
|
|
FinishDelayedReady();
|
2021-12-20 17:53:11 -08:00
|
|
|
|
WhiteHoleVolume = QSBWorldSync.GetUnityObjects<WhiteHoleVolume>().First();
|
2021-11-13 21:15:01 -08:00
|
|
|
|
QSBWorldSync.Init<QSBMeteorLauncher, MeteorLauncher>();
|
2021-11-10 18:40:02 -08:00
|
|
|
|
QSBWorldSync.Init<QSBMeteor, MeteorController>();
|
2021-11-13 21:15:01 -08:00
|
|
|
|
QSBWorldSync.Init<QSBFragment, FragmentIntegrity>();
|
2021-11-17 02:36:28 -08:00
|
|
|
|
});
|
2021-11-10 18:40:02 -08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|