[LuaDoc] Mark filesystem.asset_type as an enumerator

This commit is contained in:
Celtic Minstrel 2024-05-19 13:02:11 -04:00 committed by Celtic Minstrel
parent d2983f849b
commit 8baf95601d
2 changed files with 3 additions and 2 deletions

View file

@ -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',

View file

@ -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