extension

Convert this Plug-in into an Extension

Convert this Plug-in into an Extension

When this library is included in a plug-in script, the script becomes an extension. (It must still be packaged as a .seext bundle to be discovered and loaded at the correct time.)

This library defines a getPluginType() function that returns the correct type for extensions and imports the following classes from the gamedata package into the global namespace:

 Game
 Expansion
 ClassMap
 ExpansionSymbolTemplate
 AbstractExpansionSymbolTemplate
 SymbolVariantUtilities
 TileSet
 Silhouette

Notes: Extensions are loaded and executed before the program is fully initialized. The variables Editor and Component will be null. However, a valid PluginContext object is provided. Extensions are never "activated" by the user, so they do not require or use a run() function.

Contents