mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-24 09:39:56 +00:00
18 lines
408 B
C#
18 lines
408 B
C#
using QSB.Messaging;
|
|
using QSB.Patches;
|
|
|
|
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;
|
|
QSBPatch.RemoteCall(() => TimeLoop.SetSecondsRemaining(0));
|
|
}
|
|
}
|