Difference between revisions of "LS1:lavishscript2 (Type)"

From ismods.com: dedicated to promoting white hat, EULA-compliant Inner Space and LavishScript mods
Jump to: navigation, search
(Created page with "Inner Space exposes the lavishscript 2 Data Type into LavishScript. This type interfaces with ILS2StandardEnvironment, the [[LavishScr...")
 
Line 5: Line 5:
 
: Registers a [[LS2:Module|Module]] with the given name, to be loaded from the given filename. filename is relative to the LavishScript 2 filesystem.
 
: Registers a [[LS2:Module|Module]] with the given name, to be loaded from the given filename. filename is relative to the LavishScript 2 filesystem.
 
* [[LS1:ls2script (Type)|ls2script]] '''RegisterScript['''name''','''filename''']'''
 
* [[LS1:ls2script (Type)|ls2script]] '''RegisterScript['''name''','''filename''']'''
:  
+
: Registers a [[LS2:Script|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
note: filename should be to COMPILED BYTECODE not LS2 IL. filename in this call is relative to the LavishScript 2 filesystem
+
 
* [[LS1:ls2script (Type)|ls2script]] '''RegisterScript['''-ls2il''','''name''','''filename''']'''
 
* [[LS1:ls2script (Type)|ls2script]] '''RegisterScript['''-ls2il''','''name''','''filename''']'''
: note: filename should be to LS2 IL not bytecode; bytecode will be produced in-memory from the LS2 IL. filename in this call is relative to the LavishScript 2 filesystem
+
: Registers a [[LS2:Script|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 in this call is relative to the LavishScript 2 filesystem
 
* [[LS1:ls2module (Type)|ls2module]] '''GetModule['''name''']'''
 
* [[LS1:ls2module (Type)|ls2module]] '''GetModule['''name''']'''
 +
: Retrieves an already-registered [[LS1:ls2module (Type)|ls2module]], which may or may not be loaded into memory at all. Load via ls2module:Start
 
* [[LS1:ls2script (Type)|ls2script]] '''GetScript['''name''']'''
 
* [[LS1:ls2script (Type)|ls2script]] '''GetScript['''name''']'''
 +
: Retrieves an already-registered [[LS1:ls2script (Type)|ls2script]], which may or may not be loaded into memory at all. Load via ls2script:Start
  
 
== Methods ==
 
== Methods ==
* '''UnregisterScript['''name''']''' - note: Script must be Stopped first
+
* '''UnregisterScript['''name''']'''
* '''UnregisterModule['''name''']''' - note: Module must be Stopped first
+
: note: Script must be Stopped first
 +
* '''UnregisterModule['''name''']'''
 +
: note: Module must be Stopped first
  
 
== See Also ==
 
== See Also ==

Revision as of 11:53, 25 November 2012

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 in this call 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