mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-09 21:59:16 +00:00
22 lines
426 B
C#
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|