Request window attention when round starts/restarts.
This commit is contained in:
14
Content.Server/Players/PlayerSessionExt.cs
Normal file
14
Content.Server/Players/PlayerSessionExt.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Content.Shared.Network.NetMessages;
|
||||
using Robust.Server.Interfaces.Player;
|
||||
|
||||
namespace Content.Server.Players
|
||||
{
|
||||
public static class PlayerSessionExt
|
||||
{
|
||||
public static void RequestWindowAttention(this IPlayerSession session)
|
||||
{
|
||||
var msg = session.ConnectedClient.CreateNetMessage<MsgRequestWindowAttention>();
|
||||
session.ConnectedClient.SendMessage(msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user