mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-11 00:52:19 +00:00
25 lines
681 B
C#
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();
|
|
}
|
|
}
|
|
}
|