mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-10 06:51:36 +00:00
23 lines
560 B
C#
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
|
|
}));
|
|
}
|
|
}
|
|
}
|