Method UseLoadedCatalog
UseLoadedCatalog()
Sets the internal state of the SDK so that all the further called members of the class are applied to the catalog loaded into memory by Load(string, string) or New(string, UnitType, bool) methods (as opposed to calling UseMobiscriptCatalog(), which applies the later member calls to a catalog open interactively in MobiScript window).
Declaration
public void UseLoadedCatalog()
Remarks
For the plugin events that are called from the MobiScript window context, there is no any difference between catalogs loaded into memory by Load(string, string), New(string, UnitType, bool) method and ones that were opened interactively.
For the plugin events that are called from other type of plugin events, you need to call UseMobiscriptCatalog() to get an access to the catalog that is currenly open in the Mobiscript window. In this case, Load(string, string) and New(string, UnitType, bool) methods load a catalog into a memory separate from MobiScript window session.