|
TorqueScript Reference
|
Inherits SimObject.
| Boolean getAutoFormat | ( | ) |
Gets whether the format type is automatically determined by the filename extension or not.
| String getAutoFormatBinaryExtension | ( | ) |
Gets the extension (end of filename) used to detect the Binary format.
| String getAutoFormatXmlExtension | ( | ) |
Gets the extension (end of filename) used to detect the XML format.
| Boolean getBinaryCompression | ( | ) |
Gets whether ZIP compression is used on binary formatting or not.
| String getFormat | ( | ) |
| Boolean getJSONStrict | ( | ) |
Gets whether to write JSON that is strictly compatible with RFC4627 or not.
| Boolean getProgenitorUpdate | ( | ) |
Gets whether to update each type instances file-progenitor or not.
| Boolean getWriteDefaults | ( | ) |
Gets whether to write static fields that are at their default or not.
| String read | ( | filename | ) |
Read an object from a file using Taml.
| filename | The filename to read from. |
| void setAutoFormat | ( | autoFormat | ) |
Sets whether the format type is automatically determined by the filename extension or not.
| autoFormat | Whether the format type is automatically determined by the filename extension or not. |
| void setAutoFormatBinaryExtension | ( | extension | ) |
Sets the extension (end of filename) used to detect the Binary format.
| extension | The extension (end of filename) used to detect the Binary format. |
| void setAutoFormatXmlExtension | ( | extension | ) |
Sets the extension (end of filename) used to detect the XML format.
| extension | The extension (end of filename) used to detect the XML format. |
| void setBinaryCompression | ( | compressed | ) |
Sets whether ZIP compression is used on binary formatting or not.
| compressed | Whether compression is on or off. |
| void setFormat | ( | format | ) |
Sets the format that Taml should use to read/write.
| format | The format to use: 'xml' or 'binary'. |
| void setJSONStrict | ( | jsonStrict | ) |
Sets whether to write JSON that is strictly compatible with RFC4627 or not.
| jsonStrict | Whether to write JSON that is strictly compatible with RFC4627 or not. |
| void setProgenitorUpdate | ( | progenitorUpdate | ) |
Sets whether to update each type instances file-progenitor or not. If not updating then the progenitor stay as the script that executed the call to Taml.
| progenitorUpdate | Whether to update each type instances file-progenitor or not. |
| void setWriteDefaults | ( | writeDefaults | ) |
Sets whether to write static fields that are at their default or not.
| writeDefaults | Whether to write static fields that are at their default or not. |
1.8.10