Class AbyssalLightEntityPlugin.DwellerEncounterScript

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

public static class AbyssalLightEntityPlugin.DwellerEncounterScript extends Object implements EveryFrameScript
  • Field Details

    • elapsed

      protected float elapsed
    • trigger

      protected String trigger
    • done

      protected boolean done
    • triggerDelay

      protected float triggerDelay
    • light

      protected SectorEntityToken light
    • fleet

      protected CampaignFleetAPI fleet
  • Constructor Details

  • 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.