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)
EveryFrameScript
advance
in interface EveryFrameScript
amount
- seconds elapsed during the last frame.public static void spawnMote(SectorEntityToken from)
public boolean isDone()
isDone
in interface EveryFrameScript
public boolean runWhilePaused()
runWhilePaused
in interface EveryFrameScript
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.