Package VASSAL.build.module
Class ExtensionsLoader
java.lang.Object
VASSAL.build.module.ExtensionsLoader
- All Implemented Interfaces:
CommandEncoder
- Direct Known Subclasses:
PluginsLoader
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Stringstatic Stringprotected ExtensionsManagerprotected ExtensionsManagerstatic String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaddExtension(File extension)protected voidvoidaddTo(GameModule mod)protected ModuleExtensioncreateExtension(String extname)Translate a String into aCommandTranslate aCommandinto a Stringprotected StringgetErrorMessage(String name, String msg)protected StringgetLoadedMessage(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:
ZipExceptionIOException
-
getLoadedMessage
-
getErrorMessage
-
decode
Description copied from interface:CommandEncoderTranslate a String into aCommand- Specified by:
decodein interfaceCommandEncoder
-
encode
Description copied from interface:CommandEncoderTranslate aCommandinto a String- Specified by:
encodein interfaceCommandEncoder
-