Luna::Asset::set_asset_type
void set_asset_type(asset_t asset, const Name &type)
Sets the asset type.
This function will only changes asset's metadata in system, it will not save the modified metadata to metadata file. The user should call save_asset_meta after this to save the modified metadata back to file if needed.
Parameters
-
in asset
The asset handle of the asset to operate.
-
in type
The new asset type to set.