Class MoteParticleScript
java.lang.Object
com.fs.starfarer.api.impl.campaign.world.MoteParticleScript
- All Implemented Interfaces:
EveryFrameScript
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SectorEntityToken
protected IntervalUtil
protected float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
advance
(float amount) Use SectorAPI.getClock() to convert to campaign days.boolean
isDone()
boolean
static void
spawnMote
(SectorEntityToken from)
-
Field Details
-
moteSpawnRate
protected float moteSpawnRate -
entity
-
moteSpawn
-
-
Constructor Details
-
MoteParticleScript
-
-
Method Details
-
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.
-
spawnMote
-
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.
-