TorqueScript Reference
|
Functions | |
void | activatePackage (packageName) |
void | deactivatePackage (packageName) |
Boolean | isPackage (packageName) |
void activatePackage | ( | packageName | ) |
Use the activatePackage function to activate a package definition and to re-define all functions named within this package with the definitions provided in the package body. This pushes the newly activated package onto the top of the package stack.
packagename | The name or ID of an existing package. |
void deactivatePackage | ( | packageName | ) |
Use the deactivatePackage function to deactivate a package definition and to pop any definitions from this package off the package stack. This also causes any subsequently stacked packages to be popped. i.e. If any packages were activated after the one specified in packageName, they too will be deactivated and popped.
packagename | The name or ID of an existing package. |
Boolean isPackage | ( | packageName | ) |
Use the isPackage function to check if the name or ID specified in packageName is a valid package.
packagename | The name or ID of an existing package. |