|
Drag[en]gine Script Module DragonScript 1.35
|
Static Public Member Functions | |
Management | |
| static byte | getSeparator () |
| Filepath separator character for this operating system. | |
| static byte | getPathSeparator () |
| Path list separator character for this operating system. | |
| static String | getCurrentPrefix () |
| Current path prefix for this operating system. | |
| static String | getGamePath () |
| Path string set by the game. | |
Virtual file system access | |
| static bool | existsFile (String path) |
| File exist. | |
| static bool | canReadFile (String path) |
| File can be read. | |
| static bool | canWriteFile (String path) |
| File can be written. | |
| static bool | canDeleteFile (String path) |
| File can be deleted. | |
| static void | deleteFile (String path) |
| Delete file. | |
| static FileType | getTypeOfFile (String path) |
| Type of file. | |
| static void | searchFiles (String directory, bool recursive, Block ablock) |
| Search for files. | |
| static bool | pathMatchesPattern (String string, String pattern) |
| Path matches a file pattern. | |
| static void | browseOverlay (String path) |
| Browse overlay path. | |
| static void | browseCapture (String path) |
| Browse capture path. | |
| static void | browseConfig (String path) |
| Browse config path. | |
| static Array | getFileExtensions (ResourceLoaderType type) |
| Get file extension list for resource type for use in file browsing. | |
| static void | openUrl (String url) |
| Open URL using user defined application. | |
File system.
This is a native class. This is a pure static class. The class can not be instantiated
|
static |
Browse capture path.
Open operating system native file browser showing the content of path inside the currently running game capture directory. If the directory not exist it is created.
If path is an absolute path it has to start with "/capture" directory. If path is relative it is considered relative to "/capture" directory.
Calling this function switches the focus to another application.
References browseOverlay().
Referenced by browseConfig().
|
static |
Browse config path.
Open operating system native file browser showing the content of path inside the currently running game config directory. If the directory not exist it is created.
If path is an absolute path it has to start with "/config" directory. If path is relative it is considered relative to "/config" directory.
Calling this function switches the focus to another application.
References browseCapture().
Referenced by openUrl().
|
static |
Browse overlay path.
Open operating system native file browser showing the content of path inside the currently running game overlay directory. If the directory not exist it is created.
Calling this function switches the focus to another application.
References pathMatchesPattern(), and searchFiles().
Referenced by browseCapture().
|
static |
File can be deleted.
Referenced by getTypeOfFile().
|
static |
File can be read.
Referenced by deleteFile().
|
static |
|
static |
|
static |
File exist.
If the filename is relative it is checked against the game path.
Referenced by canWriteFile().
|
static |
Current path prefix for this operating system.
Referenced by getGamePath().
|
static |
Get file extension list for resource type for use in file browsing.
Returns an Array of FileExtension objects. For each running engine module of the respective type one FileExtension object is created. The FileExtension object contains the display name, an Array of file patterns in the form ".xyz" and a default extension in the form ".xyz".
Referenced by openUrl().
|
static |
Path string set by the game.
References getCurrentPrefix(), and getGamePath().
Referenced by getGamePath().
|
static |
Path list separator character for this operating system.
References getPathSeparator().
Referenced by getPathSeparator().
|
static |
Filepath separator character for this operating system.
References getSeparator().
Referenced by getSeparator().
|
static |
Type of file.
References canDeleteFile(), canWriteFile(), and deleteFile().
Referenced by searchFiles().
|
static |
Open URL using user defined application.
Calling this function switches the focus to another application.
References browseConfig(), getFileExtensions(), and openUrl().
Referenced by openUrl().
|
static |
Path matches a file pattern.
Referenced by browseOverlay().
|
static |
Search for files.
Each file entry is visited using the provided block. The block receives as arguments the file name (String) and file type (FileType). The block has to return boolean indicating if the search has to continue(true) or stop(false).
Example code:
References getTypeOfFile().
Referenced by browseOverlay().