-
-
Notifications
You must be signed in to change notification settings - Fork 127
Scripting: ArchiveEntry Type
Simon Judd edited this page Jul 12, 2017
·
2 revisions
The ArchiveEntry type represents an entry in SLADE.
| Type | Name | Description |
|---|---|---|
string |
name |
The entry name. As an example, for an entry Actors/Weapons/Gun1.txt this will be Gun1.txt
|
string |
path |
The path to the entry in the archive, beginning and ending with /.As an example, for an entry Actors/Weapons/Gun1.txt, this will be /Actors/Weapons/. If the entry isn't in a directory this will be just /
|
EntryType |
type |
The entry's type information |
number |
size |
The size of the entry in bytes |
Parameters
-
booleanincludePath: Whether to include the entry path -
booleanincludeExtension: Whether to include the entry extension -
booleanupperCase: Whether to convert the entry name to uppercase
Returns string
Returns a formatted name of the entry, depending on the parameters given. Note that upperCase will not affect the path.
Returns string
Returns the size of the entry in a formatted string, eg. "1.3kb"
Home | Downloads | Tutorials | Wiki Index | SLADE Homepage