LS1:lavishscript2 (Type)

From ismods.com: dedicated to promoting white hat, EULA-compliant Inner Space and LavishScript mods
Jump to: navigation, search

Inner Space exposes the lavishscript 2 Data Type into LavishScript. This type interfaces with ILS2StandardEnvironment, the LavishScript 2 runtime environment.

Members

Registers a Module with the given name, to be loaded from the given filename. filename is relative to the LavishScript 2 filesystem.
Registers a Script with the given name, to be loaded from the given filename. note: filename should be to COMPILED BYTECODE not LS2 IL. filename is relative to the LavishScript 2 filesystem
  • ls2script RegisterScript[-ls2il,name,filename]
Registers a Script with the given name, to be loaded from the given filename. note: filename should be to LS2 IL not bytecode; bytecode will be produced in-memory from the LS2 IL. filename is relative to the LavishScript 2 filesystem
Retrieves an already-registered ls2module, which may or may not be loaded into memory at all. Load via ls2module:Start
Retrieves an already-registered ls2script, which may or may not be loaded into memory at all. Load via ls2script:Start

Methods

  • UnregisterScript[name]
note: Script must be Stopped first
  • UnregisterModule[name]
note: Module must be Stopped first

See Also