Steam
Provides steam integration.
Functions
Steam.DownloadWorkshopItem(id, destinationFolder, callback)
Downloads an item from workshop and places it in a folder.
Parameters
-
id
string
-
destinationFolder
string
-
callback
function
Example Usage
Steam.DownloadWorkshopItem("2805065898", "LocalMods/MyMod/Temp/Download", function(workshopItem)
if workshopItem == nil then print("failed to download workshop item") return end
print(workshopItem.Title .. " has been successfully downloaded.")
end)
Steam.GetWorkshopCollection(id, callback)
Callback is called with the list of all workshop items inside the specified collection.
Parameters
-
id
string
-
callback
function
Steam.GetWorkshopItem(id, callback)
Gets information about a workshop item.
Parameters
-
id
string
-
callback
function