quantum-space-buddies/QSB/Events/PlayerSectorEvent.cs
Mister_Nebula a07e1a9a44 cleanup
2020-08-09 13:48:55 +01:00

25 lines
681 B
C#

using QSB.Messaging;
namespace QSB.Events
{
class PlayerSectorEvent : QSBEvent<SectorMessage>
{
public override MessageType Type => MessageType.PlayerSectorChange;
public override void SetupListener()
{
GlobalMessenger<uint, int, string>.AddListener("QSBPlayerSectorChange", (netId, id, name) => SendEvent(
new SectorMessage {
SenderId = netId,
SectorId = id,
SectorName = name
}));
}
public override void OnReceive(SectorMessage message)
{
throw new System.NotImplementedException();
}
}
}