|
TorqueScript Reference
|
Inherits SimObject.
Public Member Functions | |
| bool | addFile (filename, pathInZip,[replace=true]?) |
| void | closeArchive () |
| void | closeFile (stream) |
| bool | deleteFile (pathInZip) |
| bool | extractFile (pathInZip, filename) |
| string | getFileEntry (index) |
| int | getFileEntryCount () |
| bool | openArchive (filename,[accessMode=Read]?) |
| int | openFileForRead (filename) |
| int | openFileForWrite (filename) |
Public Member Functions inherited from SimObject | |
| string | call (functionName,[args]*) |
| int | clone ([bool copyDynamicFields?=false]?) |
| void | delete () |
| void | dump () |
| void | dumpClassHierarchy () |
| const char * | getClassName () |
| string | getClassNamespace () |
| string | getDynamicField (index) |
| int | getDynamicFieldCount () |
| string | getField (int index) |
| int | getFieldCount () |
| const char * | getFieldType (fieldName) |
| const char * | getFieldValue (fieldName) |
| int | getGroup () |
| int | getId () |
| string | getInternalName () |
| const char * | getName () |
| string | getProgenitorFile () |
| string | getSuperClassNamespace () |
| int | getType () |
| bool | isChildOfGroup () |
| bool | isMemberOfClass (string classname) |
| bool | isMethod (const char *methodName) |
| bool | isMethod (string method name) |
| bool | isTimerActive () |
| bool | save (fileName,[selectedOnly]?) |
| int | schedule (time, command,[arg]*) |
| void | setClassNamespace () |
| bool | setFieldValue (fieldName, value) |
| void | setInternalName (string InternalName) |
| void | setName (newName) |
| void | setProgenitorFile (file) |
| void | setSuperClassNamespace () |
| bool | startTimer (callbackFunction, float timePeriod,[repeat]?) |
| void | stopTimer () |
Static Public Attributes | |
| struct { | |
| Zip::ZipArchive::AccessMode mode | |
| const char * strMode | |
| } | gModeMap [] |
Additional Inherited Members | |
Static Public Member Functions inherited from SimObject | |
| static S32 QSORT_CALLBACK | compareFields (const void *a, const void *b) |
| bool addFile | ( | filename | , |
| pathInZip | , | ||
| [replace = true] ? | |||
| ) |
Add a file to the zip
| filename | The name of the file |
| pathInZip | The internal (to the zip) path to the file |
| replace | Set whether to replace the file if one already exists with the name in the path (default true) |
| void closeArchive | ( | ) |
Close the zip file
| void closeFile | ( | stream | ) |
Close a file within the zip
| stream | The file stream ID |
| bool deleteFile | ( | pathInZip | ) |
Delete a file from the zip
| pathInZip | The full internal path of the file |
| bool extractFile | ( | pathInZip | , |
| filename | |||
| ) |
Extract a file from the zip
| pathInZip | The internal path of the desired file |
| filename | The file's name |
| string getFileEntry | ( | index | ) |
Get file entry.
| index | Index to file entry |
| int getFileEntryCount | ( | ) |
Get number of files in the zip
| bool openArchive | ( | filename | , |
| [accessMode = Read] ? | |||
| ) |
Open a zip file
| filename | The file's name |
| accessMode | The mode in which to open the file (default Read) |
| int openFileForRead | ( | filename | ) |
Open a file within the zip for reading
| filename | The file's name to open in current zip file |
| int openFileForWrite | ( | filename | ) |
Open a file within the zip for writing
| filename | The file's name to open in current zip file |
| struct { ... } gModeMap[] |
| Zip::ZipArchive::AccessMode mode |
| const char* strMode |
1.8.3.1