Class GateExplosionScript.SystemCutOffRemoverScript

java.lang.Object
com.fs.starfarer.api.impl.campaign.GateExplosionScript.SystemCutOffRemoverScript
All Implemented Interfaces:
EveryFrameScript
Enclosing class:
GateExplosionScript

public static class GateExplosionScript.SystemCutOffRemoverScript extends Object implements EveryFrameScript
  • Field Details

    • system

      public StarSystemAPI system
    • interval

      public IntervalUtil interval
    • done

      public boolean done
    • elapsed

      public float elapsed
  • Constructor Details

    • SystemCutOffRemoverScript

      public SystemCutOffRemoverScript(StarSystemAPI system)
  • Method Details

    • isDone

      public boolean isDone()
      Specified by:
      isDone in interface EveryFrameScript
      Returns:
      true when the script is finished and can be cleaned up by the engine.
    • runWhilePaused

      public boolean runWhilePaused()
      Specified by:
      runWhilePaused in interface EveryFrameScript
      Returns:
      whether advance() should be called while the campaign engine is paused.
    • advance

      public void advance(float amount)
      Description copied from interface: EveryFrameScript
      Use SectorAPI.getClock() to convert to campaign days.
      Specified by:
      advance in interface EveryFrameScript
      Parameters:
      amount - seconds elapsed during the last frame.