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
@@ -1,12 +1,14 @@
|
||||
using Content.Server.Chat;
|
||||
using Content.Server.Chat.Managers;
|
||||
using Content.Server.Chat.Systems;
|
||||
using Content.Shared.Roles;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
|
||||
namespace Content.Server.Roles
|
||||
{
|
||||
public sealed class Job : Role
|
||||
public sealed class Job : Role, IRoleTimer
|
||||
{
|
||||
[ViewVariables] public string Timer => Prototype.PlayTimeTracker;
|
||||
|
||||
[ViewVariables]
|
||||
public JobPrototype Prototype { get; }
|
||||
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
{
|
||||
public sealed class RoleAddedEvent : RoleEvent
|
||||
{
|
||||
public RoleAddedEvent(Role role) : base(role) { }
|
||||
public RoleAddedEvent(Mind.Mind mind, Role role) : base(mind, role) { }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
{
|
||||
public abstract class RoleEvent : EntityEventArgs
|
||||
{
|
||||
public readonly Mind.Mind Mind;
|
||||
public readonly Role Role;
|
||||
|
||||
public RoleEvent(Role role)
|
||||
public RoleEvent(Mind.Mind mind, Role role)
|
||||
{
|
||||
Mind = mind;
|
||||
Role = role;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
{
|
||||
public sealed class RoleRemovedEvent : RoleEvent
|
||||
{
|
||||
public RoleRemovedEvent(Role role) : base(role) { }
|
||||
public RoleRemovedEvent(Mind.Mind mind, Role role) : base(mind, role) { }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user