2022-04-05 12:59:24 -07:00
|
|
|
|
using QSB.Messaging;
|
|
|
|
|
|
|
|
|
|
namespace QSB.Utility.Messages;
|
|
|
|
|
|
|
|
|
|
public class DebugChangeSceneMessage : QSBMessage<bool>
|
|
|
|
|
{
|
|
|
|
|
public DebugChangeSceneMessage(bool solarSystem) : base(solarSystem) { }
|
|
|
|
|
|
|
|
|
|
public override void OnReceiveLocal() => OnReceiveRemote();
|
|
|
|
|
|
|
|
|
|
public override void OnReceiveRemote()
|
|
|
|
|
{
|
|
|
|
|
if (Data)
|
|
|
|
|
{
|
2022-08-15 14:36:13 -07:00
|
|
|
|
PlayerData.SaveEyeCompletion();
|
2022-04-05 12:59:24 -07:00
|
|
|
|
LoadManager.LoadSceneAsync(OWScene.SolarSystem, true, LoadManager.FadeType.ToBlack);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
PlayerData.SaveWarpedToTheEye(60);
|
|
|
|
|
LoadManager.LoadSceneAsync(OWScene.EyeOfTheUniverse, true, LoadManager.FadeType.ToWhite);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|