mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
50 lines
1.6 KiB
Java
Executable File
50 lines
1.6 KiB
Java
Executable File
package script.structure.filler;
|
|
|
|
import script.*;
|
|
import script.base_class.*;
|
|
import script.combat_engine.*;
|
|
import java.util.Arrays;
|
|
import java.util.Hashtable;
|
|
import java.util.Vector;
|
|
import script.base_script;
|
|
|
|
import script.library.structure;
|
|
|
|
public class filler extends script.base_script
|
|
{
|
|
public filler()
|
|
{
|
|
}
|
|
public static final String SCRIPT_ME = "structure.filler.filler";
|
|
public static final float DELAY_TIME = 5f;
|
|
public static final String HANDLER_INIT_FILLER_SPAWN = "handleInitFillerSpawn";
|
|
public static final String HANDLER_CLEANUP_FILLER_SPAWN = "handleCleanupFillerSpawn";
|
|
public int OnInitialize(obj_id self) throws InterruptedException
|
|
{
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
public int OnDetach(obj_id self) throws InterruptedException
|
|
{
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
public int OnUnloadedFromMemory(obj_id self) throws InterruptedException
|
|
{
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
public int OnDestroy(obj_id self) throws InterruptedException
|
|
{
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
public int handleInitFillerSpawn(obj_id self, dictionary params) throws InterruptedException
|
|
{
|
|
LOG("FILLER_BUILDING", "**************** TIME = " + getGameTime() + " ******************");
|
|
structure.resetFillerSpawns(self);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
public int handleCleanupFillerSpawn(obj_id self, dictionary params) throws InterruptedException
|
|
{
|
|
structure.cleanupFillerSpawns(self);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
}
|