Struct steamworks::UGC [−][src]
pub struct UGC<Manager> { /* fields omitted */ }
Implementations
Suspends or resumes all workshop downloads
pub fn create_item<F>(&self, app_id: AppId, file_type: FileType, cb: F) where
F: FnOnce(Result<(PublishedFileId, bool), SteamError>) + 'static + Send,
pub fn create_item<F>(&self, app_id: AppId, file_type: FileType, cb: F) where
F: FnOnce(Result<(PublishedFileId, bool), SteamError>) + 'static + Send,
Creates a workshop item
pub fn start_item_update(
&self,
app_id: AppId,
file_id: PublishedFileId
) -> UpdateHandle<Manager>
pub fn start_item_update(
&self,
app_id: AppId,
file_id: PublishedFileId
) -> UpdateHandle<Manager>
Starts an item update process
pub fn subscribe_item<F>(&self, published_file_id: PublishedFileId, cb: F) where
F: FnOnce(Result<(), SteamError>) + 'static + Send,
pub fn subscribe_item<F>(&self, published_file_id: PublishedFileId, cb: F) where
F: FnOnce(Result<(), SteamError>) + 'static + Send,
Subscribes to a workshop item
pub fn unsubscribe_item<F>(&self, published_file_id: PublishedFileId, cb: F) where
F: FnOnce(Result<(), SteamError>) + 'static + Send,
Gets the publisher file IDs of all currently subscribed items.
pub fn query_user(
&self,
account: AccountId,
list_type: UserList,
item_type: UGCType,
sort_order: UserListOrder,
appids: AppIDs,
page: u32
) -> Result<UserListQuery<Manager>, CreateQueryError>
pub fn query_user(
&self,
account: AccountId,
list_type: UserList,
item_type: UGCType,
sort_order: UserListOrder,
appids: AppIDs,
page: u32
) -> Result<UserListQuery<Manager>, CreateQueryError>
Queries a list of workshop itmes, related to a user in some way (Ex. user’s subscriptions, favorites, upvoted, …)
pub fn query_items(
&self,
items: Vec<PublishedFileId>
) -> Result<ItemListDetailsQuery<Manager>, CreateQueryError>
pub fn query_item(
&self,
item: PublishedFileId
) -> Result<ItemDetailsQuery<Manager>, CreateQueryError>
pub fn delete_item<F>(&self, published_file_id: PublishedFileId, cb: F) where
F: FnOnce(Result<(), SteamError>) + 'static + Send,
pub fn delete_item<F>(&self, published_file_id: PublishedFileId, cb: F) where
F: FnOnce(Result<(), SteamError>) + 'static + Send,
DELETES the item from the Steam Workshop.
Initialize this UGC interface for a Steam game server.
You should pass in the Workshop depot, you can find this on SteamDB. It’s usually just the app ID.
The folder is a path to the directory where you wish for this game server to store UGC content.
true
upon success; otherwise, false
if the calling user is not a game server or if the workshop is currently updating its content.