quantum-space-buddies/QSB/Events/PlayerSectorEvent.cs

25 lines
681 B
C#
Raw Normal View History

2020-08-09 11:38:35 +00:00
using QSB.Messaging;
namespace QSB.Events
{
class PlayerSectorEvent : QSBEvent<SectorMessage>
{
public override MessageType Type => MessageType.PlayerSectorChange;
public override void SetupListener()
{
2020-08-09 12:48:55 +00:00
GlobalMessenger<uint, int, string>.AddListener("QSBPlayerSectorChange", (netId, id, name) => SendEvent(
new SectorMessage {
SenderId = netId,
SectorId = id,
SectorName = name
}));
2020-08-09 11:38:35 +00:00
}
public override void OnReceive(SectorMessage message)
{
throw new System.NotImplementedException();
}
}
}