NPC refactor (#10122)
Co-authored-by: metalgearsloth <metalgearsloth@gmail.com>
This commit is contained in:
@@ -7,9 +7,7 @@ namespace Content.Server.CPUJob.JobQueues.Queues
|
||||
{
|
||||
private readonly IStopwatch _stopwatch;
|
||||
|
||||
public JobQueue() : this(new Stopwatch())
|
||||
{
|
||||
}
|
||||
public JobQueue() : this(new Stopwatch()) {}
|
||||
|
||||
public JobQueue(IStopwatch stopwatch)
|
||||
{
|
||||
@@ -19,7 +17,7 @@ namespace Content.Server.CPUJob.JobQueues.Queues
|
||||
/// <summary>
|
||||
/// How long the job's allowed to run for before suspending
|
||||
/// </summary>
|
||||
public virtual double MaxTime => 0.002;
|
||||
public virtual double MaxTime { get; } = 0.002;
|
||||
|
||||
private readonly Queue<IJob> _pendingQueue = new();
|
||||
private readonly List<IJob> _waitingJobs = new();
|
||||
|
||||
Reference in New Issue
Block a user