quantum-space-buddies/QSB/Utility/Messages/DebugTriggerSupernovaMessage.cs
2022-08-28 22:21:20 -07:00

17 lines
362 B
C#

using QSB.Messaging;
namespace QSB.Utility.Messages;
public class DebugTriggerSupernovaMessage : QSBMessage
{
public override void OnReceiveLocal() => OnReceiveRemote();
public override void OnReceiveRemote()
{
PlayerData.SaveLoopCount(2);
TimeLoop.SetTimeLoopEnabled(true);
TimeLoop._isTimeFlowing = true;
TimeLoop.SetSecondsRemaining(0);
}
}