Play time tracking: Job timers 3: more titles: when the (#9978)
Co-authored-by: Veritius <veritiusgaming@gmail.com> Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
committed by
GitHub
parent
6b94db0336
commit
e852ada6c8
17
Content.Server/Afk/Events/AFKEvent.cs
Normal file
17
Content.Server/Afk/Events/AFKEvent.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Robust.Server.Player;
|
||||
|
||||
namespace Content.Server.Afk.Events;
|
||||
|
||||
/// <summary>
|
||||
/// Raised whenever a player goes afk.
|
||||
/// </summary>
|
||||
[ByRefEvent]
|
||||
public readonly struct AFKEvent
|
||||
{
|
||||
public readonly IPlayerSession Session;
|
||||
|
||||
public AFKEvent(IPlayerSession playerSession)
|
||||
{
|
||||
Session = playerSession;
|
||||
}
|
||||
}
|
||||
17
Content.Server/Afk/Events/UnAFKEvent.cs
Normal file
17
Content.Server/Afk/Events/UnAFKEvent.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Robust.Server.Player;
|
||||
|
||||
namespace Content.Server.Afk.Events;
|
||||
|
||||
/// <summary>
|
||||
/// Raised whenever a player is no longer AFK.
|
||||
/// </summary>
|
||||
[ByRefEvent]
|
||||
public readonly struct UnAFKEvent
|
||||
{
|
||||
public readonly IPlayerSession Session;
|
||||
|
||||
public UnAFKEvent(IPlayerSession playerSession)
|
||||
{
|
||||
Session = playerSession;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user