001package com.fs.starfarer.api;
002
003public interface EveryFrameScript {
004        /**
005         * @return true when the script is finished and can be cleaned up by the engine.
006         */
007        boolean isDone();
008        
009        /**
010         * @return whether advance() should be called while the campaign engine is paused.
011         */
012        boolean runWhilePaused();
013        
014        /**
015         * Use SectorAPI.getClock() to convert to campaign days.
016         * @param amount seconds elapsed during the last frame.
017         */
018        void advance(float amount);
019}