|
Static Public Member Functions | |
| static proto WorkshopInitState | GetState () |
| Returns current state of the Workshop. | |
| static proto void | OnReady (BackendCallback callback) |
| Sets callback on which: | |
| static proto int | GetMaxSize () |
| Returns maximum supported size of catalogue for pages/offsets. | |
| static proto void | SetSize (int size) |
| Will set size of catalogue which determines how many items fit into single page/offset. | |
| static proto int | GetSize () |
| Returns currently set size of catalogue for pages/offsets. | |
| static proto void | RequestPage (notnull BackendCallback pCallback, int page) |
| Will request load of data for specific page of catalogue. | |
| static proto void | RequestOffset (notnull BackendCallback pCallback, int offset) |
| Will request load of data for offset from first item If data are already cached then callback is invoked immediately with this method and no request is sent to the backend. | |
| static proto void | RequestRefresh (notnull BackendCallback pCallback) |
| Will request forced refresh of currently loaded page/offset. | |
| static proto void | SetFilters (WorkshopCatalogueFilters filters) |
| Will set pointer to filters object for the catalogue. | |
| static proto WorkshopCatalogueFilters | GetFilters () |
| Will return pointer to object of currently applied filters for the catalogue. | |
| static proto bool | AppendOrderBy (EBackendCatalogueOrderDir orderDir, EWorkshopCatalogueOrderBy orderBy) |
| Will append new order by field for sorting catalogue. | |
| static proto void | ClearOrderBy () |
| Will clear ordering of catalogue list. | |
| static proto void | GetItems (out notnull array< WorkshopAssetBase > assetsOut) |
| Getter for items of currently loaded page/offset. | |
| static proto int | GetPageCount () |
| Returns count of how many pages of data exists with current configuration of catalogue. | |
| static proto int | GetPageNumber () |
| Returns index number of currently loaded page.Index 0 is first page. | |
| static proto int | GetTotalItemCount () |
| Return total count of how many items exists with current configuration of catalogue. | |
| static proto int | GetOffsetIndex () |
| Returns index number of currently loaded offset - index of first item in offset. | |
| static proto int | GetCurrentItemCount () |
| Returns count of items on currently loaded page / offset. | |
| static proto WorkshopJob | GetCurrentJob () |
| Returns currently PREPARING/ACTIVE job or null. | |
| static proto void | GetQueuedJobs (out notnull array< WorkshopJob > jobsOut) |
| Returns array of queued jobs including the active (first item in array). | |
| static proto int | GetQueuedJobsCount () |
| Returns total count of queued jobs. | |
| static proto void | PauseAllJobs () |
| Will pause all currently queued and active jobs. | |
| static proto void | GetPausedJobs (out notnull array< WorkshopJob > jobsOut) |
| Returns array of paused jobs. | |
| static proto int | GetPausedJobsCount () |
| Returns total count of paused jobs. | |
| static proto void | GetLocalAssets (out notnull array< WorkshopAssetBase > assetsOut) |
| Returns list of locally downloaded assets. | |
| static proto int | GetBlockedAssetsCount () |
| Returns count of how many assets does user have blocked. | |
| static proto int | GetSubscribedAssetsCount () |
| Returns count of how many assets does user have subscribed. | |
| static proto int | GetRatedAssetsCount () |
| Returns count of how many assets did user submit some rating. | |
|
static |
Will append new order by field for sorting catalogue.
Once field is appended it cannot be reused until clear. You cannot order by more than 3 categories.
| VME | - if field was already appended for sorting.
|
|
static |
Will clear ordering of catalogue list.
|
static |
Returns count of how many assets does user have blocked.
|
static |
Returns count of items on currently loaded page / offset.
|
static |
Returns currently PREPARING/ACTIVE job or null.
|
static |
Will return pointer to object of currently applied filters for the catalogue.
|
static |
Getter for items of currently loaded page/offset.
|
static |
Returns list of locally downloaded assets.
|
static |
Returns maximum supported size of catalogue for pages/offsets.
|
static |
Returns index number of currently loaded offset - index of first item in offset.
Index 0 is the first item of catalogue. Use alongside RequestOffset() and GetTotalItemCount() to determine if you are at the end.
|
static |
Returns count of how many pages of data exists with current configuration of catalogue.
|
static |
Returns index number of currently loaded page.Index 0 is first page.
Use alongside RequestPage() and GetPageCount() to determine if you are at the end.
|
static |
Returns array of paused jobs.
Jobs are not sorted in any specific way and priority cannot be changed. Previously unfinished jobs are restored after game launch and init of workshop.
|
static |
Returns total count of paused jobs.
|
static |
Returns array of queued jobs including the active (first item in array).
Items are sorted by priority and can be changed by WorkshopJob.SetQueuePriority(int priority).
|
static |
Returns total count of queued jobs.
|
static |
Returns count of how many assets did user submit some rating.
|
static |
Returns currently set size of catalogue for pages/offsets.
|
static |
Returns current state of the Workshop.
|
static |
Returns count of how many assets does user have subscribed.
|
static |
Return total count of how many items exists with current configuration of catalogue.
|
static |
Sets callback on which:
|
static |
Will pause all currently queued and active jobs.
|
static |
Will request load of data for offset from first item If data are already cached then callback is invoked immediately with this method and no request is sent to the backend.
Offset 0 represent first item. Int is casted into uint32.
| VME | - if size was not yet set via SetSize()
|
|
static |
Will request load of data for specific page of catalogue.
If data are already cached then callback is invoked immediately with this method and no request is sent to the backend.
Pages are indexed from 0. Int is casted into uint32.
| VME | - if size was not yet set via SetSize()
|
|
static |
Will request forced refresh of currently loaded page/offset.
Items will be cleared from cache and created again from received data which might be possibly different.
| VME | - if size was not yet set via SetSize()
|
|
static |
Will set pointer to filters object for the catalogue.
Filters should be set only once at the beginning and then you can just modify local instance of filters. If set to null then WorkshopCatalogueApi will provide all assets without any filtering.
|
static |
Will set size of catalogue which determines how many items fit into single page/offset.