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