-
-
Notifications
You must be signed in to change notification settings - Fork 127
Scripting: Archive Type
The Archive type represents an archive (wad/pk3/etc) in SLADE.
Parameters
-
booleanfull: Whether to return the full path to the file
Returns the filename of the archive. If full is true, the full path will be returned, otherwise just the filename.
Returns ArchiveEntry array
Returns an array of all entries in the archive.
Parameters
-
stringpath: The path of the directory to get
Returns ArchiveDir
Returns the directory in the archive at path, or null if the path does not exist. If the archive does not support directories (eg. Doom Wad format) the 'root' directory is always returned, regardless of path.
Parameters
-
stringfull_path: The full path and name of the entry to create -
numberposition: The position to insert the entry
Returns ArchiveEntry
Description required
Parameters
-
stringname: The name of the entry -
stringnamespace: The namespace to add the entry to
Returns ArchiveEntry
Description required
Parameters
-
ArchiveEntryentry: The entry to remove
Returns boolean
Removes the given entry from the archive (but does not delete it). Returns false if the entry was not found in the archive.
Parameters
-
ArchiveEntryentry: The entry to rename -
stringname: The new name for the entry
Returns boolean
Renames the given entry. Returns false if the entry was not found in the archive.
Home | Downloads | Tutorials | Wiki Index | SLADE Homepage