HolyLib Wiki

addonsystem

addonsystem

This library provides functions related to the addonsystem
Supports: Linux32 | Windows32

This library is still in active development and is unfinished BUT it was included in the 0.7 release

Methods

addonsystem.ChangeCollection( string collectionID )
Switches the active Steam Workshop collection to the given collection ID and scans it for subscriptions to mount.
This also updates the host_workshop_collection convar to the given collection ID. Content that was mounted from the previously active collection stays mounted!
addonsystem.Clear()
Clears the addonsystem removing any active addons?
table addonsystem.MountFile( string filePath )
Mounts the given .gma file
addonsystem.Refresh()
Refreshes the addonsystem to handle any changes in addons? or is this like a Think for it?
addonsystem.SetShouldMount( string workshopID, boolean shouldMount = false )
Sets whether the given addon should be mounted. The workshopID should be a string as being a number will cause issues.
boolean addonsystem.ShouldMount( number workshopID )
Returns true if the given addon should be mounted The workshopID should be a string as being a number will cause issues.
addonsystem.Subscribe( string workshopID )
Subscribes to the given Steam Workshop item through SteamUGC, adds it as an unloaded subscription to the addonsystem and, when called on a listen server, immediately scans for subscriptions so it can be downloaded and mounted.