quantum-space-buddies/QSB/EchoesOfTheEye/Ghosts/Messages/ChangeInterestedPlayerMessage.cs
2022-05-13 19:53:44 +01:00

15 lines
469 B
C#

using QSB.EchoesOfTheEye.Ghosts.WorldObjects;
using QSB.Messaging;
using QSB.Player;
using QSB.Utility;
namespace QSB.EchoesOfTheEye.Ghosts.Messages;
internal class ChangeInterestedPlayerMessage : QSBWorldObjectMessage<QSBGhostSensors, uint>
{
public ChangeInterestedPlayerMessage(uint playerId) : base(playerId) { }
public override void OnReceiveRemote()
=> WorldObject._data.interestedPlayer = WorldObject._data.players[QSBPlayerManager.GetPlayer(Data)];
}