Global utilities.
This class resides in the global namespace. This class participates in the engine library.
Shows how to create and use a new package.
Package("MyCompany.Products.Widgets");
MyCompany.Products.Widgets.TheWidget = {
this.CustomFunction = function(){
/* ... */
};
};
var MyWidget = new MyCompany.Products.Widgets.TheWidget();Demonstrates how to verify if a package exists.
if( VerifyPackage("MyCompany.Products.Widgets") ){
/* ... */
};Enumeration of object types.
Creates an object hierarchy based on the supplied name.
v = GetPackage( sPath )
v as object: Returns the object corresponding to the specified hierarchy.
Creates an object hierarchy based on the supplied name.
void Package( sPath )
Verifies the specified hierarchy exists.
v = ValidatePackage( sPath, bObjOut )
v as boolean: Returns true if the hierachy exists, or the matching object if bObjOut is set to true.