public class MoteParticleScript extends java.lang.Object implements EveryFrameScript
| Modifier and Type | Field and Description |
|---|---|
protected SectorEntityToken |
entity |
protected IntervalUtil |
moteSpawn |
protected float |
moteSpawnRate |
| Constructor and Description |
|---|
MoteParticleScript(SectorEntityToken entity,
float moteSpawnRate) |
| Modifier and Type | Method and Description |
|---|---|
void |
advance(float amount)
Use SectorAPI.getClock() to convert to campaign days.
|
boolean |
isDone() |
boolean |
runWhilePaused() |
static void |
spawnMote(SectorEntityToken from) |
protected float moteSpawnRate
protected SectorEntityToken entity
protected IntervalUtil moteSpawn
public MoteParticleScript(SectorEntityToken entity, float moteSpawnRate)
public void advance(float amount)
EveryFrameScriptadvance in interface EveryFrameScriptamount - seconds elapsed during the last frame.public static void spawnMote(SectorEntityToken from)
public boolean isDone()
isDone in interface EveryFrameScriptpublic boolean runWhilePaused()
runWhilePaused in interface EveryFrameScript