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 Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected float
protected CampaignFleetAPI
protected SectorEntityToken
protected String
protected float
-
Constructor Summary
ConstructorsConstructorDescriptionDwellerEncounterScript
(String trigger, CampaignFleetAPI fleet, SectorEntityToken light) -
Method Summary
-
Field Details
-
elapsed
protected float elapsed -
trigger
-
done
protected boolean done -
triggerDelay
protected float triggerDelay -
light
-
fleet
-
-
Constructor Details
-
DwellerEncounterScript
-
-
Method Details
-
isDone
public boolean isDone()- Specified by:
isDone
in interfaceEveryFrameScript
- Returns:
- true when the script is finished and can be cleaned up by the engine.
-
runWhilePaused
public boolean runWhilePaused()- Specified by:
runWhilePaused
in interfaceEveryFrameScript
- 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 interfaceEveryFrameScript
- Parameters:
amount
- seconds elapsed during the last frame.
-