ov-sa/vRPZ-Framework

Improve `assetDeps` in Assetify

ov-anisa opened this issue · 1 comments

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)

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