quantum-space-buddies/QSB/Utility/Messages/DebugMessage.cs
2021-12-26 18:55:54 -08:00

22 lines
426 B
C#

using QSB.Messaging;
namespace QSB.Utility.Messages
{
public class DebugMessage : QSBEnumMessage<DebugMessageEnum>
{
public DebugMessage(DebugMessageEnum type) => Value = type;
public override void OnReceiveLocal() => OnReceiveRemote();
public override void OnReceiveRemote()
{
switch (Value)
{
case DebugMessageEnum.TriggerSupernova:
TimeLoop.SetSecondsRemaining(0f);
break;
}
}
}
}