World of Warcraft Forever API · C_UIFileAsset.md, for your AI
C_UIFileAsset
3 functions, as Blizzard documents them for Forever 1.60.1 (70959).
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.
Functions
C_UIFileAsset.GetFileID
assetFileID = C_UIFileAsset.GetFileID(asset)
Returns the numeric file ID associated with a file asset.
Arguments
asset | FileAsset |
|---|
Returns
assetFileID | fileID may be nil | The file ID corresponding to the given asset. If the asset is already a file ID, it is returned unchanged; otherwise returns nil if the file path is not known to the client. |
|---|
C_UIFileAsset.IsKnownFile
isValid = C_UIFileAsset.IsKnownFile(asset)
Determines whether a file asset is known to the client, either as a shipped asset or a locally existing loose file.
Arguments
asset | FileAsset |
|---|
Returns
isValid | bool | True if the asset is shipped with the client or refers to a known loose file. Existence or openability of loose files is not verified. |
|---|
C_UIFileAsset.IsLooseFile
isLooseFile = C_UIFileAsset.IsLooseFile(asset)
Determines whether a file asset refers to a known loose (local) file.
Arguments
asset | FileAsset |
|---|
Returns
isLooseFile | bool | True if the asset refers to a loose file known to the client. |
|---|