Package VASSAL.build.module
Class ExtensionsLoader
java.lang.Object
VASSAL.build.module.ExtensionsLoader
- All Implemented Interfaces:
CommandEncoder
- Direct Known Subclasses:
PluginsLoader
public class ExtensionsLoader extends Object implements CommandEncoder
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExtensionsLoader.LoadExtensionException -
Field Summary
Fields Modifier and Type Field Description static StringCOMMAND_PREFIXstatic StringEXTENSION_DIRprotected ExtensionsManagerextMgrprotected ExtensionsManagerglobalExtMgrprotected Set<String>loadedExtensionsprotected HashMap<String,String>loadedIdsstatic StringSPECIFY_DIR_IN_PREFS -
Constructor Summary
Constructors Constructor Description ExtensionsLoader() -
Method Summary
Modifier and Type Method Description protected booleanaddExtension(File extension)protected voidaddExtensions()voidaddTo(GameModule mod)protected ModuleExtensioncreateExtension(String extname)Commanddecode(String command)Translate a String into aCommandStringencode(Command c)Translate 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
-