internal virtual void OnCompilationStarted() { //Interface.Oxide.LogDebug("Compiling plugin: {0}", Name); LastCompiledAt = LastModifiedAt; timeoutTimer?.Destroy(); timeoutTimer = timer.Once(60f, OnCompilationTimeout); }
/// <summary> /// Creates a timer which fires once after the specified delay /// </summary> /// <param name="seconds"></param> /// <param name="callback"></param> public Timer Once(float seconds, Action callback) { return(new Timer(timer.Once(seconds, callback, plugin))); }
/// <summary> /// Creates a timer which fires once after the specified delay /// </summary> /// <param name="seconds"></param> /// <param name="callback"></param> public void Once(float seconds, Action callback) { timer.Once(seconds, callback, plugin); }