dreamworkAPI
Ctrl K
GitHub
typeDocs / Addon / File

Addon.File

typesharedmenusource

The file inside of the addon.

content is nil for files of a parsed addon until it is read with Addon:readFile, the data stays in the addon string at offset.

Fields

NameTypeDescription
pathstringThe path of the file inside of the addon, e.g. lua/autorun/test.lua.
sizeintegerThe size of the file in bytes.
checksumintegerThe CRC-32 checksum of the file content, 0 if there is no checksum.
contentstring | nilThe file content, nil if it is still in the addon data.
offsetinteger | nilThe 1-based position of the file content in the addon data.
Generated from the dreamwork meta branch.