muffin v7.5.12

This commit is contained in:
alydev 2026-08-19 13:19:57 +10:00
parent 3102923ce2
commit 911ed68baa
65 changed files with 2356 additions and 1539 deletions

View file

@ -0,0 +1,5 @@
namespace Questionable.Controller.Steps;
internal interface IDutyTask : ITask
{
}

View file

@ -16,6 +16,8 @@ internal interface ITaskExecutor
bool WasInterrupted();
void ResetTimeout();
bool HasTimedOut(float timeoutSeconds);
ETaskResult Update();

View file

@ -32,6 +32,11 @@ internal abstract class TaskExecutor<T> : ITaskExecutor where T : class, ITask
return Environment.TickCount64 - _lastProgressAt > (long)(timeoutSeconds * 1000f);
}
public virtual void ResetTimeout()
{
ResetProgressTimer();
}
protected void ResetProgressTimer()
{
_lastProgressAt = Environment.TickCount64;