quantum-space-buddies/QSB/Utility/Messages/DebugMessage.cs

22 lines
426 B
C#
Raw Normal View History

2021-12-25 05:21:32 +00:00
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;
}
}
}
}