Package VASSAL.build.module
Class ExtensionsLoader
java.lang.Object
VASSAL.build.module.ExtensionsLoader
- All Implemented Interfaces:
CommandEncoder
- Direct Known Subclasses:
PluginsLoader
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic String
static String
protected ExtensionsManager
protected ExtensionsManager
static String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
addExtension(File extension)
protected void
void
addTo(GameModule mod)
protected ModuleExtension
createExtension(String extname)
Translate a String into aCommand
Translate aCommand
into a Stringprotected String
getErrorMessage(String name, String msg)
protected String
getLoadedMessage(String name, String version)
-
Field Details
-
COMMAND_PREFIX
- See Also:
- Constant Field Values
-
SPECIFY_DIR_IN_PREFS
- See Also:
- Constant Field Values
-
EXTENSION_DIR
- See Also:
- Constant Field Values
-
loadedExtensions
-
loadedIds
-
extMgr
-
globalExtMgr
-
-
Constructor Details
-
ExtensionsLoader
public ExtensionsLoader()
-
-
Method Details
-
addTo
-
addExtensions
protected void addExtensions() -
addExtension
-
createExtension
- Throws:
ZipException
IOException
-
getLoadedMessage
-
getErrorMessage
-
decode
Description copied from interface:CommandEncoder
Translate a String into aCommand
- Specified by:
decode
in interfaceCommandEncoder
-
encode
Description copied from interface:CommandEncoder
Translate aCommand
into a String- Specified by:
encode
in interfaceCommandEncoder
-