Class Script

  • All Implemented Interfaces:
    Paintable
    Direct Known Subclasses:
    TaskScript

    public abstract class Script
    extends java.lang.Object
    implements Paintable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      KSContext ctx  
    • Constructor Summary

      Constructors 
      Constructor Description
      Script()  
    • Constructor Detail

      • Script

        public Script()
    • Method Detail

      • onStart

        public boolean onStart()
        Called when the script starts. Override for custom behavior.
      • onStop

        public void onStop()
        Called when the script stops. Override for custom behavior.
      • loadConfig

        public boolean loadConfig()
        Loads the script's configuration.
      • onProcess

        public abstract int onProcess()
        Abstract method to be implemented with the script's main logic.
      • getManifest

        public final ScriptManifest getManifest()
        Retrieves the script's manifest.
      • getConfigFile

        public final java.io.File getConfigFile()
        Gets the configuration file for the script.
      • getStorageDirectory

        public final java.io.File getStorageDirectory()
        Gets the storage directory for the script.