public static class HubMissionWithTriggers.SetMemoryValueAfterDelay extends java.lang.Object implements MissionTrigger.TriggerAction, EveryFrameScript
| Modifier and Type | Field and Description |
|---|---|
protected float |
delay |
protected java.lang.String |
key |
protected MemoryAPI |
memory |
protected java.lang.Object |
value |
| Constructor and Description |
|---|
SetMemoryValueAfterDelay(float delay,
MemoryAPI memory,
java.lang.String key,
java.lang.Object value) |
| Modifier and Type | Method and Description |
|---|---|
void |
advance(float amount)
Use SectorAPI.getClock() to convert to campaign days.
|
void |
doAction(MissionTrigger.TriggerActionContext context) |
boolean |
isDone() |
boolean |
runWhilePaused() |
protected java.lang.String key
protected java.lang.Object value
protected float delay
public SetMemoryValueAfterDelay(float delay, MemoryAPI memory, java.lang.String key, java.lang.Object value)
public void doAction(MissionTrigger.TriggerActionContext context)
doAction in interface MissionTrigger.TriggerActionpublic boolean isDone()
isDone in interface EveryFrameScriptpublic boolean runWhilePaused()
runWhilePaused in interface EveryFrameScriptpublic void advance(float amount)
EveryFrameScriptadvance in interface EveryFrameScriptamount - seconds elapsed during the last frame.