[LuaDoc] Mark filesystem.asset_type as an enumerator
This commit is contained in:
parent
d2983f849b
commit
8baf95601d
2 changed files with 3 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
|||
--[========[File Handling]========]
|
||||
print("Loading filesystem module...")
|
||||
|
||||
---@enum asset_type
|
||||
---Valid asset types, used as the type argument for have_asset and resolve_asset
|
||||
filesystem.asset_type = {
|
||||
IMAGE = 'images',
|
||||
|
|
|
@ -28,13 +28,13 @@ function filesystem.canonical_path(path) end
|
|||
function filesystem.image_size(path) end
|
||||
|
||||
---Check if an asset exists in the current binary path
|
||||
---@param type string
|
||||
---@param type asset_type
|
||||
---@param path string
|
||||
---@return boolean
|
||||
function filesystem.have_asset(type, path) end
|
||||
|
||||
---Resolve an asset path against the current binary path
|
||||
---@param type string
|
||||
---@param type asset_type
|
||||
---@param path string
|
||||
---@return string
|
||||
function filesystem.resolve_asset(type, path) end
|
||||
|
|
Loading…
Add table
Reference in a new issue