Enfusion Script API
Loading...
Searching...
No Matches
ResourceManager Interface Reference
Inheritance diagram for ResourceManager:
WBModuleDef global_pointer pointer

Public Member Functions

proto external MetaFile GetMetaFile (string absFilePath)
 
proto external MetaFile RegisterResourceFile (string absFilePath)
 Register register resource (create meta file).
 
proto external void RebuildResourceFile (string filePath, string configuration, bool selectFiles)
 Rebuild already registered resource.
 
proto external void RebuildResourceFiles (notnull array< string > filePaths, string configuration)
 Rebuild already registered resources.
 
proto external void WaitForFile (string filePath, int maxTimeMs=1000)
 
proto external void GetResourceBrowserSelection (WorkbenchSearchResourcesCallback callback, bool recursive=false)
 Return exact paths of selected items from ResourceBrowser panel in ResourceManager.
 
- Public Member Functions inherited from WBModuleDef
proto external bool SetOpenedResource (string filename)
 
proto external BaseContainer GetContainer (int index=0)
 
proto external int GetNumContainers ()
 
proto external bool Save ()
 
proto external bool GetCmdLine (string name, out string value)
 
proto external bool Close ()
 
proto external bool ExecuteAction (notnull array< string > menuPath, bool bKeepFocus=true)
 
proto external WorkbenchPlugin GetPlugin (TypeName pluginType)
 
- Public Member Functions inherited from pointer
proto string ToString ()
 

Member Function Documentation

◆ GetMetaFile()

proto external MetaFile ResourceManager.GetMetaFile ( string absFilePath)

◆ GetResourceBrowserSelection()

proto external void ResourceManager.GetResourceBrowserSelection ( WorkbenchSearchResourcesCallback callback,
bool recursive = false )

Return exact paths of selected items from ResourceBrowser panel in ResourceManager.

◆ RebuildResourceFile()

proto external void ResourceManager.RebuildResourceFile ( string filePath,
string configuration,
bool selectFiles )

Rebuild already registered resource.

Usage:

rm.RebuildResourceFiles({"UI\\Imagesets\\Test\\Test.tga"}, "PC");

◆ RebuildResourceFiles()

proto external void ResourceManager.RebuildResourceFiles ( notnull array< string > filePaths,
string configuration )

Rebuild already registered resources.

Usage:

rm.RebuildResourceFiles({"UI\\Imagesets\\Test\\Test.tga"}, "PC");

◆ RegisterResourceFile()

proto external MetaFile ResourceManager.RegisterResourceFile ( string absFilePath)

Register register resource (create meta file).

Usage:

// register resource
MetaFile meta = rm.RegisterResourceFile("c:\\DATA\\UI\\Imagesets\\Test\\Test.tga");
meta.Save();
// build resource
rm.RebuildResourceFiles({"UI\\Imagesets\\Test\\Test.tga"}, "PC");
Definition MetaFile.c:15
proto external void Save()
Definition ResourceManager.c:15
proto external MetaFile RegisterResourceFile(string absFilePath)
Register register resource (create meta file).
proto external void RebuildResourceFiles(notnull array< string > filePaths, string configuration)
Rebuild already registered resources.
Definition Workbench.c:15
static proto WBModuleDef GetModule(TypeName type)

◆ WaitForFile()

proto external void ResourceManager.WaitForFile ( string filePath,
int maxTimeMs = 1000 )

The documentation for this interface was generated from the following file: