quantum-space-buddies/QSB/Events/WakeUpEvent.cs
2020-08-09 19:33:36 +01:00

23 lines
560 B
C#

using QSB.Messaging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace QSB.Events
{
class WakeUpEvent : QSBEvent<WakeUpMessage>
{
public override MessageType Type => MessageType.WakeUp;
public override void SetupListener()
{
GlobalMessenger<float, int>.AddListener("QSBServerTime", (time, count) => SendEvent(
new WakeUpMessage {
ServerTime = time,
LoopCount = count
}));
}
}
}