Starsector API
Loading...
Searching...
No Matches
GBIRunEveryFrame.java
Go to the documentation of this file.
1package com.fs.starfarer.api.impl.campaign.ghosts;
2
3import com.fs.starfarer.api.Script;
4
6
7 protected Script script;
8
10 super(delay);
11 this.script = script;
12 }
13
14 @Override
15 public boolean shouldInterruptBehavior(SensorGhost ghost, GhostBehavior behavior) {
16 if (hasDelayRemaining()) return false;
17
18 if (script != null) {
19 script.run();
20 }
21 return false;
22 }
23
24
25}
boolean shouldInterruptBehavior(SensorGhost ghost, GhostBehavior behavior)