nwnintf
Class NwnModule

java.lang.Object
  |
  +--nwnintf.NwnModule

public class NwnModule
extends java.lang.Object

a python itpfile.py::ModuleFile and itpfile.py::DialogTlkFile instances for use from java.


Constructor Summary
NwnModule(java.io.File modfilename)
           
NwnModule(java.io.File modfilename, java.io.File nwnroot)
           
 
Method Summary
 void addScriptResource(ResRef resref, java.lang.String scriptstring, byte[] bytecode)
          Install a script resource in the module.
 void attachScript(ResRef blueprint, java.lang.String slotname, ResRef scriptres)
          Responsible for actually writing the changes to the module file.
 ModuleBlueprint[] blueprintsInModule()
          Return a list of all blueprints in this module. takes the list from the palettes, rather than iterating over all blueprints, because we need information from the palettes anyway.
 TlkFile getDialogTlkFile()
           
 ModFile getModfile()
           
 MultiPaletteTree getMultiPaletteTree()
          Return a cached representation (palettepicker.py::MultiPaletteTree) of the custom palettes so that blueprint picker dialogs can come up faster.
 SavedScripts getSavedScripts()
           
 SezFile getSezFile()
           
 TlkFile getTlkfile()
           
static void main(java.lang.String[] args)
           
 void saveSezFile()
          Save itp_, which represents the .sez file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NwnModule

public NwnModule(java.io.File modfilename)
          throws java.lang.Exception

NwnModule

public NwnModule(java.io.File modfilename,
                 java.io.File nwnroot)
          throws java.lang.Exception
Method Detail

addScriptResource

public void addScriptResource(ResRef resref,
                              java.lang.String scriptstring,
                              byte[] bytecode)
                       throws java.io.IOException
Install a script resource in the module. Will silently replace existing script by the same name.

Parameters:
resref - The ResRef, not including the extension.
scriptstring - The source code portion of the resource.
java.io.IOException

attachScript

public void attachScript(ResRef blueprint,
                         java.lang.String slotname,
                         ResRef scriptres)
                  throws java.lang.Exception
Responsible for actually writing the changes to the module file.

java.lang.Exception
See Also:
ScriptInstaller#attachScript(ResRef,String,ResRef)

blueprintsInModule

public ModuleBlueprint[] blueprintsInModule()
Return a list of all blueprints in this module. takes the list from the palettes, rather than iterating over all blueprints, because we need information from the palettes anyway.


getModfile

public ModFile getModfile()

getDialogTlkFile

public TlkFile getDialogTlkFile()
See Also:
getTlkfile

getTlkfile

public TlkFile getTlkfile()

getMultiPaletteTree

public MultiPaletteTree getMultiPaletteTree()
Return a cached representation (palettepicker.py::MultiPaletteTree) of the custom palettes so that blueprint picker dialogs can come up faster.


getSavedScripts

public SavedScripts getSavedScripts()

getSezFile

public SezFile getSezFile()

saveSezFile

public void saveSezFile()
                 throws java.lang.Exception
Save itp_, which represents the .sez file.

java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
java.lang.Exception