WorkshopAPI
[API not finalized] The workshop content API. Exclusive to P2:CE!
Functions
CreateQueryUGCDetailsRequest
No description provided.
Parameter
| Name | Type | Description |
workshopIds | bigint[] | No description provided. |
GetActiveMountList
No description provided.
GetAddonCount
Returns the number of addons in the addons list.
GetAddonDependencies
No description provided.
Parameter
| Name | Type | Description |
index | number | No description provided. |
GetAddonDependenciesMissing
No description provided.
Parameter
| Name | Type | Description |
index | number | No description provided. |
GetAddonEnabled
Returns the enable state of the addon at the specified index.
Parameter
| Name | Type | Description |
index | number | No description provided. |
GetAddonMeta
Returns the metadata for the addon at the specified index.
Parameter
| Name | Type | Description |
index | number | No description provided. |
GetAddonNamedPath
Returns the content path of an addon at the specified index.
Parameter
| Name | Type | Description |
index | number | No description provided. |
GetAddonSubscribed
Returns the subscription state of the addon at the specified index.
Parameter
| Name | Type | Description |
index | number | No description provided. |
GetAddonUserRating
Gets the user rating for the given addon. If installed locally, returns AddonRating.None
Parameter
| Name | Type | Description |
index | number | No description provided. |
IsWorkshopToolsMode
Launched the game from Hammer or using the -workshop_tools launch option
SetAddonEnabled
Sets the enable state of the addon at the specified index
Parameters
| Name | Type | Description |
index | number | No description provided. |
enabled | boolean | No description provided. |
SetAddonListEnabled
Enables or disables a set of addons in one fell swoop. Use this if you're planning to enable/disable multiple at once
Parameter
| Name | Type | Description |
addons | Record<number, boolean> | No description provided. |
SetAddonSubscribed
Sets the subscription state of the addon at the specified index
Parameters
| Name | Type | Description |
index | number | No description provided. |
subscribed | boolean | No description provided. |
SetAddonUserRating
Sets the user rating for the given addon
Parameters
| Name | Type | Description |
index | number | No description provided. |
rating | pano-typed.AddonRating | No description provided. |