예제 #1
0
 internal virtual void OnCompilationStarted()
 {
     //Interface.Oxide.LogDebug("Compiling plugin: {0}", Name);
     LastCompiledAt = LastModifiedAt;
     timeoutTimer?.Destroy();
     timeoutTimer = timer.Once(60f, OnCompilationTimeout);
 }
예제 #2
0
 /// <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)));
 }
예제 #3
0
 /// <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);
 }