Improve `assetDeps` in Assetify
ov-anisa opened this issue · 1 comments
ov-anisa commented
Let there be categories of deps and selective categories will be having special function. For example:
{
"assetDeps": [
"texture": {
"inventory_icon": "icon/inventory.png",
"hud_icon": "icon/hud.png"
}
]
}
texture
deps will be retrieved as texture element when dependency is retrieved via API.
API proposal syntax:
local cFile = assetify.fetchDep(assetType, assetName, depType, depIndex)
Aviril commented
Let there be categories of deps and selective categories will be having special function. For example:
{ "assetDeps": [ "texture": { "inventory_icon": "icon/inventory.png", "hud_icon": "icon/hud.png" } ] }
texture
deps will be retrieved as texture element when dependency is retrieved via API.API proposal syntax:
local cFile = assetify.fetchDep(assetType, assetName, depType, depIndex)
Implemented the proposal. Kindly refer: https://github.com/ov-sa/Assetify-Library/wiki/Module:-APIs#-assetifygetassetdep-client