Steamworks-dokumentation
ISteamRemoteStorage-grænseflade
Giver funktioner til at læse, skrive og tilgå filer, som kan gemmes eksternt i Steam-Cloud'en.

Se Steam Cloud for at få yderligere oplysninger.

Medlemsfunktioner

Medlemsfunktioner for ISteamRemoteStorage kaldes gennem den globale accessor-funktion SteamRemoteStorage().

BeginFileWriteBatch

bool BeginFileWriteBatch( );

Use this along with EndFileWriteBatch to wrap a set of local file writes/deletes that should be considered part of one single state change. For example, if saving game progress requires updating both savegame1.dat and maxprogress.dat, wrap those operations with calls to BeginFileWriteBatch and EndFileWriteBatch.

These functions provide a hint to Steam which will help it manage the app's Cloud files. Using these functions is optional, however it will provide better reliability.

Note that the functions may be used whether the writes are done using the ISteamRemoteStorage API, or done directly to local disk (where AutoCloud is used).

Returværdier: bool
true if the write batch was begun, false if there was a batch already in progress.

CommitPublishedFileUpdate

SteamAPICall_t CommitPublishedFileUpdate( PublishedFileUpdateHandle_t updateHandle );
NavnTypeBeskrivelse
updateHandlePublishedFileUpdateHandle_t

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

Returværdier: SteamAPICall_t to be used with a RemoteStorageUpdatePublishedFileResult_t call result.

CreatePublishedFileUpdateRequest

PublishedFileUpdateHandle_t CreatePublishedFileUpdateRequest( PublishedFileId_t unPublishedFileId );
NavnTypeBeskrivelse
unPublishedFileIdPublishedFileId_t

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

Returværdier: PublishedFileUpdateHandle_t

DeletePublishedFile

SteamAPICall_t DeletePublishedFile( PublishedFileId_t unPublishedFileId );
NavnTypeBeskrivelse
unPublishedFileIdPublishedFileId_t

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

Returværdier: SteamAPICall_t to be used with a RemoteStorageDeletePublishedFileResult_t call result.

EndFileWriteBatch

bool EndFileWriteBatch( );

Use this along with BeginFileWriteBatch - see that documentation for more details.

Returværdier: bool
true, if the write batch was ended, false if there was no batch already in progress.

EnumeratePublishedFilesByUserAction

SteamAPICall_t EnumeratePublishedFilesByUserAction( EWorkshopFileAction eAction, uint32 unStartIndex );
NavnTypeBeskrivelse
eActionEWorkshopFileAction
unStartIndexuint32

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

Returværdier: SteamAPICall_t to be used with a RemoteStorageEnumeratePublishedFilesByUserActionResult_t call result.

EnumeratePublishedWorkshopFiles

SteamAPICall_t EnumeratePublishedWorkshopFiles( EWorkshopEnumerationType eEnumerationType, uint32 unStartIndex, uint32 unCount, uint32 unDays, SteamParamStringArray_t *pTags, SteamParamStringArray_t *pUserTags );
NavnTypeBeskrivelse
eEnumerationTypeEWorkshopEnumerationType
unStartIndexuint32
unCountuint32
unDaysuint32
pTagsSteamParamStringArray_t *
pUserTagsSteamParamStringArray_t *

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

Returværdier: SteamAPICall_t to be used with a RemoteStorageEnumerateWorkshopFilesResult_t call result.

EnumerateUserPublishedFiles

SteamAPICall_t EnumerateUserPublishedFiles( uint32 unStartIndex );
NavnTypeBeskrivelse
unStartIndexuint32

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

Returværdier: SteamAPICall_t to be used with a RemoteStorageEnumerateUserPublishedFilesResult_t call result.

EnumerateUserSharedWorkshopFiles

SteamAPICall_t EnumerateUserSharedWorkshopFiles( CSteamID steamId, uint32 unStartIndex, SteamParamStringArray_t *pRequiredTags, SteamParamStringArray_t *pExcludedTags );
NavnTypeBeskrivelse
steamIdCSteamID
unStartIndexuint32
pRequiredTagsSteamParamStringArray_t *
pExcludedTagsSteamParamStringArray_t *

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

Returværdier: SteamAPICall_t to be used with a RemoteStorageEnumerateUserPublishedFilesResult_t call result.

EnumerateUserSubscribedFiles

SteamAPICall_t EnumerateUserSubscribedFiles( uint32 unStartIndex );
NavnTypeBeskrivelse
unStartIndexuint32

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

Returværdier: SteamAPICall_t to be used with a RemoteStorageEnumerateUserSubscribedFilesResult_t call result.

FileDelete

bool FileDelete( const char *pchFile );
NavnTypeBeskrivelse
pchFileconst char *Navnet på filen, skal vil blive slettet.

Deletes a file from the local disk, and propagates that delete to the cloud.

This is meant to be used when a user actively deletes a file. Use FileForget if you want to remove a file from the Steam Cloud but retain it on the users local disk.

When a file has been deleted it can be re-written with FileWrite to reupload it to the Steam Cloud.

Returværdier: bool
true, if the file exists and has been successfully deleted; otherwise, false if the file did not exist.

FileExists

bool FileExists( const char *pchFile );
NavnTypeBeskrivelse
pchFileconst char *Navnet på filen.

Checks whether the specified file exists.

Returværdier: bool
true, if the file exists; otherwise, false.

FileFetch

bool FileFetch( const char *pchFile );
NavnTypeBeskrivelse
pchFileconst char *

Deprecated - PS3 Only.

Returværdier: bool

FileForget

bool FileForget( const char *pchFile );
NavnTypeBeskrivelse
pchFileconst char *Navnet på filen, som vil blive glemt.

Deletes the file from remote storage, but leaves it on the local disk and remains accessible from the API.

When you are out of Cloud space, this can be used to allow calls to FileWrite to keep working without needing to make the user delete files.

How you decide which files to forget are up to you. It could be a simple Least Recently Used (LRU) queue or something more complicated.

Requiring the user to manage their Cloud-ized files for a game, while is possible to do, it is never recommended. For instance, "Which file would you like to delete so that you may store this new one?" removes a significant advantage of using the Cloud in the first place: its transparency.

Once a file has been deleted or forgotten, calling FileWrite will resynchronize it in the Cloud. Rewriting a forgotten file is the only way to make it persisted again.

Returværdier: bool
true if the file exists and has been successfully forgotten; otherwise, false.

FilePersist

bool FilePersist( const char *pchFile );
NavnTypeBeskrivelse
pchFileconst char *

Deprecated - PS3 Only.

Returværdier: bool

FilePersisted

bool FilePersisted( const char *pchFile );
NavnTypeBeskrivelse
pchFileconst char *Navnet på filen.

Checks if a specific file is persisted in the steam cloud.

Returværdier: bool
true, if the file exists and the file is persisted in the Steam Cloud.
false, if FileForget was called on it and is only available locally.

FileRead

int32 FileRead( const char *pchFile, void *pvData, int32 cubDataToRead );
NavnTypeBeskrivelse
pchFileconst char *Navnet på filen, der skal læses fra.
pvDatavoid *Bufferen, som filen vil blive læst til. Bufferen skal være mindst samme størrelse som til cubDataToRead.
cubDataToReadint32Antallet af bytes, der skal læses. Hentes generelt fra GetFileSize eller GetFileTimestamp.

Opens a binary file, reads the contents of the file into a byte array, and then closes the file.

BEMÆRK: This is a synchronous call and as such is a will block your calling thread on the disk IO, and will also block the SteamAPI, which can cause other threads in your application to block. To avoid "hitching" due to a busy disk on the client machine using FileReadAsync, the asynchronous version of this API is recommended.

Returværdier: int32
The number of bytes read.

Returns 0 if the file doesn't exist or the read fails.

FileReadAsync

SteamAPICall_t FileReadAsync( const char *pchFile, uint32 nOffset, uint32 cubToRead );
NavnTypeBeskrivelse
pchFileconst char *Navnet på filen, der skal læses fra.
nOffsetuint32Forskydningen i bytes i den fil, som læsningen starter fra. 0, hvis du læser hele filen i ét stykke.
cubToReaduint32Antallet af bytes, der skal læses startende med nOffset.

Starts an asynchronous read from a file.

The offset and amount to read should be valid for the size of the file, as indicated by GetFileSize or GetFileTimestamp.

Returværdier: SteamAPICall_t to be used with a RemoteStorageFileReadAsyncComplete_t call result.
Returns k_uAPICallInvalid under the following conditions:
  • Du forsøgte at læse fra en ugyldig sti eller et ugyldigt filnavn. Eftersom Steam Cloud er en tværplatform, skal filerne have gyldige navne på alle understøttede operativ- og filsystemer. Se Microsofts dokumentation om navngivning af filer, stier og navneområder.
  • Filen eksisterer ikke.
  • cubDataToRead er <= 0 bytes. Du skal kunne læse noget!
  • Kombinationen af pvData og cubDataToRead ville læse forbi filens grænser.
  • Der er i forvejen en asynkron læsning, som er i gang på denne fil.

Upon completion of the read request you will receive the call result, if the value of m_eResult within the call result is k_EResultOK you can then call FileReadAsyncComplete to read the requested data into your buffer. The hReadCall parameter should match the return value of this function, and the amount to read should generally be equal to the amount requested as indicated by m_nOffset and m_cubRead.

FileReadAsyncComplete

bool FileReadAsyncComplete( SteamAPICall_t hReadCall, void *pvBuffer, uint32 cubToRead );
NavnTypeBeskrivelse
hReadCallSteamAPICall_tHandle for kaldsresultatet fra RemoteStorageFileReadAsyncComplete_t.
pvBuffervoid *Bufferen, som filen skal læses til.
cubToReaduint32Antallet af bytes, der skal kopieres. Dette bør som regel være m_cubRead-værdien fra RemoteStorageFileReadAsyncComplete_t

Copies the bytes from a file which was asynchronously read with FileReadAsync into a byte array.

This should never be called outside of the context of a RemoteStorageFileReadAsyncComplete_t call result.

Returværdier: bool
true, if the file was successfully read.

Otherwise, false under the following conditions:
  • Handlet, som blev sendt til hReadCall, er ugyldigt.
  • Læsningen mislykkedes som indikeret af m_eResult i RemoteStorageFileReadAsyncComplete_t. Du skulle ikke have kaldt denne.
  • Bufferen, som blev givet til pvBuffer, er ikke stor nok.

FileShare

SteamAPICall_t FileShare( const char *pchFile );
NavnTypeBeskrivelse
pchFileconst char *

Returværdier: SteamAPICall_t to be used with a RemoteStorageFileShareResult_t call result.

FileWrite

bool FileWrite( const char *pchFile, const void *pvData, int32 cubData );
NavnTypeBeskrivelse
pchFileconst char *Navnet på filen, der skal skrives til.
pvDataconst void *De bytes, der skal skrives til filen.
cubDataint32Antallet af bytes, der skal skrives til filen. Typisk den samlede størrelse af pvData.

Creates a new file, writes the bytes to the file, and then closes the file. If the target file already exists, it is overwritten.

BEMÆRK: This is a synchronous call and as such is a will block your calling thread on the disk IO, and will also block the SteamAPI, which can cause other threads in your application to block. To avoid "hitching" due to a busy disk on the client machine using FileWriteAsync, the asynchronous version of this API is recommended.

Returværdier: bool
true if the write was successful.

Otherwise, false under the following conditions:
  • Den fil, du prøver at skrive, er større end 100 MiB som defineret af k_unMaxCloudFileChunkSize.
  • cubData er mindre end 0.
  • pvData er NULL.
  • Du forsøgte at skrive til en ugyldig sti eller et ugyldigt filnavn. Eftersom Steam Cloud er en tværplatform, skal filerne have gyldige navne på alle understøttede operativ- og filsystemer. Se Microsofts dokumentation om navngivning af filer, stier og navneområder.
  • Lagerkvoten i Steam Cloud for den nuværende bruger er overskredet. Brugeren kan være løbet tør for plads, eller der kan være for mange filer.
  • Steam kunne ikke skrive til disken. Placeringen er muligvis skrivebeskyttet.

FileWriteAsync

SteamAPICall_t FileWriteAsync( const char *pchFile, const void *pvData, uint32 cubData );
NavnTypeBeskrivelse
pchFileconst char *Navnet på filen, der skal skrives til.
pvDataconst void *De bytes, der skal skrives til filen.
cubDatauint32Antallet af bytes, der skal skrives til filen. Typisk den samlede størrelse af pvData.

Creates a new file and asynchronously writes the raw byte data to the Steam Cloud, and then closes the file. If the target file already exists, it is overwritten.

Returværdier: SteamAPICall_t to be used with a RemoteStorageFileWriteAsyncComplete_t call result.
Returns k_uAPICallInvalid under the following conditions:
  • Den fil, du prøver at skrive, er større end 100 MiB som defineret af k_unMaxCloudFileChunkSize.
  • cubData er mindre end 0.
  • pvData er NULL.
  • Du forsøgte at skrive til en ugyldig sti eller et ugyldigt filnavn. Eftersom Steam Cloud er en tværplatform, skal filerne have gyldige navne på alle understøttede operativ- og filsystemer. Se Microsofts dokumentation om navngivning af filer, stier og navneområder.
  • Lagerkvoten i Steam Cloud for den nuværende bruger er overskredet. Brugeren kan være løbet tør for plads, eller der kan være for mange filer.

FileWriteStreamCancel

bool FileWriteStreamCancel( UGCFileWriteStreamHandle_t writeHandle );
NavnTypeBeskrivelse
writeHandleUGCFileWriteStreamHandle_tDen filskrivningssekvens, der skal annulleres.

Cancels a file write stream that was started by FileWriteStreamOpen.

This trashes all of the data written and closes the write stream, but if there was an existing file with this name, it remains untouched.

Returværdier: bool

FileWriteStreamClose

bool FileWriteStreamClose( UGCFileWriteStreamHandle_t writeHandle );
NavnTypeBeskrivelse
writeHandleUGCFileWriteStreamHandle_tDen filskrivningssekvens, der skal lukkes.

Closes a file write stream that was started by FileWriteStreamOpen.

This flushes the stream to the disk, overwriting the existing file if there was one.

Returværdier: bool
true, if the file write stream was successfully closed, the file has been committed to the disk.
false, if writeHandle is not a valid file write stream.

FileWriteStreamOpen

UGCFileWriteStreamHandle_t FileWriteStreamOpen( const char *pchFile );
NavnTypeBeskrivelse
pchFileconst char *Navnet på filen, der skal skrives til.

Creates a new file output stream allowing you to stream out data to the Steam Cloud file in chunks. If the target file already exists, it is not overwritten until FileWriteStreamClose has been called.

To write data out to this stream you can use FileWriteStreamWriteChunk, and then to close or cancel you use FileWriteStreamClose and FileWriteStreamCancel respectively.

Returværdier: UGCFileWriteStreamHandle_t
Returns k_UGCFileStreamHandleInvalid under the following conditions:
  • Du forsøgte at skrive til en ugyldig sti eller et ugyldigt filnavn. Eftersom Steam Cloud er en tværplatform, skal filerne have gyldige navne på alle understøttede operativ- og filsystemer. Se Microsofts dokumentation om navngivning af filer, stier og navneområder.
  • Lagerkvoten i Steam Cloud for den nuværende bruger er overskredet. Brugeren kan være løbet tør for plads, eller der kan være for mange filer.

FileWriteStreamWriteChunk

bool FileWriteStreamWriteChunk( UGCFileWriteStreamHandle_t writeHandle, const void *pvData, int32 cubData );
NavnTypeBeskrivelse
writeHandleUGCFileWriteStreamHandle_tFilskrivningssekvensen, der skal skrives til.
pvDataconst void *Data, der skal skrives til sekvensen.
cubDataint32Størrelsen på pvData i bytes.

Writes a blob of data to the file write stream.

Returværdier: bool
true, if the data was successfully written to the file write stream.
false, if writeHandle is not a valid file write stream, cubData is negative or larger than k_unMaxCloudFileChunkSize, or the current user's Steam Cloud storage quota has been exceeded. They may have run out of space, or have too many files.

GetCachedUGCCount

int32 GetCachedUGCCount();

Returværdier: int32

GetCachedUGCHandle

UGCHandle_t GetCachedUGCHandle( int32 iCachedContent );
NavnTypeBeskrivelse
iCachedContentint32

Returværdier: UGCHandle_t

GetFileCount

int32 GetFileCount();
Gets the total number of local files synchronized by Steam Cloud.

Used for enumeration with GetFileNameAndSize.

Returværdier: int32
The number of files present for the current user, including files in subfolders.

GetFileListFromServer

void GetFileListFromServer();
Deprecated - PS3 Only.

GetFileNameAndSize

const char * GetFileNameAndSize( int iFile, int32 *pnFileSizeInBytes );
NavnTypeBeskrivelse
iFileintIndekset for filen. Dette skal være mellem 0 og GetFileCount.
pnFileSizeInBytesint32 *Returnerer filstørrelsen i bytes.

Gets the file name and size of a file from the index.

BEMÆRK: You must call GetFileCount first to get the number of files.

Returværdier: const char *
The name of the file at the specified index, if it exists. Returns an empty string ("") if the file doesn't exist.

Eksempel:
int32 fileCount = SteamRemoteStorage()->GetFileCount(); for ( int i = 0; i < fileCount; ++i ) { int32 fileSize; const char *fileName = SteamRemoteStorage()->GetFileNameAndSize( i, &fileSize ); // Do something with fileSize and fileName }

GetFileSize

int32 GetFileSize( const char *pchFile );
NavnTypeBeskrivelse
pchFileconst char *Navnet på filen.

Gets the specified files size in bytes.

Returværdier: int32
The size of the file in bytes. Returns0 if the file does not exist.

GetFileTimestamp

int64 GetFileTimestamp( const char *pchFile );
NavnTypeBeskrivelse
pchFileconst char *Navnet på filen.

Gets the specified file's last modified timestamp in Unix epoch format (seconds since Jan 1st 1970).

Returværdier: int64
The last modified timestamp in Unix epoch format (seconds since Jan 1st 1970).

GetLocalFileChangeCount

int32 GetLocalFileChangeCount( );

Note: only applies to applications flagged as supporting dynamic Steam Cloud sync.

When your application receives a RemoteStorageLocalFileChange_t, use this method to get the number of changes (file updates and file deletes) that have been made. You can then iterate the changes using GetLocalFileChange.

Returværdier: int32
The number of local file changes that have occurred.

GetLocalFileChange

const char *GetLocalFileChange( int iFile, ERemoteStorageLocalFileChange *pEChangeType, ERemoteStorageFilePathType *pEFilePathType );

Note: only applies to applications flagged as supporting dynamic Steam Cloud sync.

After calling GetLocalFileChangeCount, use this method to iterate over the changes. The changes described have already been made to local files. Your application should take appropriate action to reload state from disk, and possibly notify the user.

For example: The local system had been suspended, during which time the user played elsewhere and uploaded changes to the Steam Cloud. On resume, Steam downloads those changes to the local system before resuming the application. The application receives an RemoteStorageLocalFileChange_t, and uses GetLocalFileChangeCount and GetLocalFileChange to iterate those changes. Depending on the application structure and the nature of the changes, the application could:

  • Re-load game progress to resume at exactly the point where the user was when they exited the game on the other device
  • Notify the user of any synchronized changes that don't require reloading
  • etc


NavnTypeBeskrivelse
iFileint32Zero-based index of the change
pEChangeTypeERemoteStorageLocalFileChangeWhat happened to this file
pEFilePathTypeERemoteStorageFilePathTypeType of path to the file returned

Returværdier: const char *
The file name or full path of the file affected by this change. See comments on pEFilePathType above for more detail.

GetPublishedFileDetails

SteamAPICall_t GetPublishedFileDetails( PublishedFileId_t unPublishedFileId, uint32 unMaxSecondsOld );
NavnTypeBeskrivelse
unPublishedFileIdPublishedFileId_t
unMaxSecondsOlduint32

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

Returværdier: SteamAPICall_t to be used with a RemoteStorageGetPublishedFileDetailsResult_t call result.

GetPublishedItemVoteDetails

SteamAPICall_t GetPublishedItemVoteDetails( PublishedFileId_t unPublishedFileId );
NavnTypeBeskrivelse
unPublishedFileIdPublishedFileId_t

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

Returværdier: SteamAPICall_t to be used with a RemoteStorageGetPublishedItemVoteDetailsResult_t call result.

GetQuota

bool GetQuota( uint64 *pnTotalBytes, uint64 *puAvailableBytes );
NavnTypeBeskrivelse
pnTotalBytesuint64 *Returns the total amount of bytes the user has access to.
puAvailableBytesuint64 *Returns the number of bytes available.

Gets the number of bytes available, and used on the users Steam Cloud storage.

Returværdier: bool
This function always returns true.

GetSyncPlatforms

ERemoteStoragePlatform GetSyncPlatforms( const char *pchFile );
NavnTypeBeskrivelse
pchFileconst char *The name of the file.

Obtains the platforms that the specified file will syncronize to.

Returværdier: ERemoteStoragePlatform
Bitfield containing the platforms that the file was set to with SetSyncPlatforms.

GetUGCDetails

bool GetUGCDetails( UGCHandle_t hContent, AppId_t *pnAppID, char **ppchName, int32 *pnFileSizeInBytes, CSteamID *pSteamIDOwner );
NavnTypeBeskrivelse
hContentUGCHandle_t
pnAppIDAppId_t *
ppchNamechar **
pnFileSizeInBytesint32 *
pSteamIDOwnerCSteamID *

Returværdier: bool

GetUGCDownloadProgress

bool GetUGCDownloadProgress( UGCHandle_t hContent, int32 *pnBytesDownloaded, int32 *pnBytesExpected );
NavnTypeBeskrivelse
hContentUGCHandle_t
pnBytesDownloadedint32 *
pnBytesExpectedint32 *

Returværdier: bool

GetUserPublishedItemVoteDetails

SteamAPICall_t GetUserPublishedItemVoteDetails( PublishedFileId_t unPublishedFileId );
NavnTypeBeskrivelse
unPublishedFileIdPublishedFileId_t

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

Returværdier: SteamAPICall_t to be used with a RemoteStorageGetPublishedItemVoteDetailsResult_t call result.

IsCloudEnabledForAccount

bool IsCloudEnabledForAccount();
Checks if the account wide Steam Cloud setting is enabled for this user; or if they disabled it in the Settings->Cloud dialog.

Ensure that you are also checking IsCloudEnabledForApp, as these two options are mutually exclusive.

Returværdier: bool
true if Steam Cloud is enabled for this account; otherwise, false.

IsCloudEnabledForApp

bool IsCloudEnabledForApp();
Checks if the per game Steam Cloud setting is enabled for this user; or if they disabled it in the Game Properties->Update dialog.

Kontrollér, at du også tjekker IsCloudEnabledForAccount, da disse to muligheder udelukker hinanden.

It's generally recommended that you allow the user to toggle this setting within your in-game options, you can toggle it with SetCloudEnabledForApp.

Returværdier: bool
true, if Steam Cloud is enabled for this app; otherwise, false.

PublishVideo

SteamAPICall_t PublishVideo( EWorkshopVideoProvider eVideoProvider, const char *pchVideoAccount, const char *pchVideoIdentifier, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags );
NavnTypeBeskrivelse
eVideoProviderEWorkshopVideoProvider
pchVideoAccountconst char *
pchVideoIdentifierconst char *
pchPreviewFileconst char *
nConsumerAppIdAppId_t
pchTitleconst char *
pchDescriptionconst char *
eVisibilityERemoteStoragePublishedFileVisibility
pTagsSteamParamStringArray_t *

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

Returværdier: SteamAPICall_t to be used with a RemoteStoragePublishFileProgress_t call result.

PublishWorkshopFile

SteamAPICall_t PublishWorkshopFile( const char *pchFile, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags, EWorkshopFileType eWorkshopFileType );
NavnTypeBeskrivelse
pchFileconst char *
pchPreviewFileconst char *
nConsumerAppIdAppId_t
pchTitleconst char *
pchDescriptionconst char *
eVisibilityERemoteStoragePublishedFileVisibility
pTagsSteamParamStringArray_t *
eWorkshopFileTypeEWorkshopFileType

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

Returværdier: SteamAPICall_t to be used with a RemoteStoragePublishFileProgress_t call result.

ResetFileRequestState

bool ResetFileRequestState();
Deprecated - PS3 Only.

Returværdier: bool

SetCloudEnabledForApp

void SetCloudEnabledForApp( bool bEnabled );
NavnTypeBeskrivelse
bEnabledboolEnable (true) or disable (false) the Steam Cloud for this application?

Toggles whether the Steam Cloud is enabled for your application.

This setting can be queried with IsCloudEnabledForApp.

BEMÆRK: This must only ever be called as the direct result of the user explicitly requesting that it's enabled or not. This is typically accomplished with a checkbox within your in-game options.

SetSyncPlatforms

bool SetSyncPlatforms( const char *pchFile, ERemoteStoragePlatform eRemoteStoragePlatform );
NavnTypeBeskrivelse
pchFileconst char *The name of the file.
eRemoteStoragePlatformERemoteStoragePlatformThe platforms that the file will be syncronized to.

Allows you to specify which operating systems a file will be synchronized to.

Use this if you have a multiplatform game but have data which is incompatible between platforms.

Files default to k_ERemoteStoragePlatformAll when they are first created. You can use the bitwise OR operator, "|" to specify multiple platforms.

Returværdier: bool
true if the file exists, otherwise false.

SetUserPublishedFileAction

SteamAPICall_t SetUserPublishedFileAction( PublishedFileId_t unPublishedFileId, EWorkshopFileAction eAction );
NavnTypeBeskrivelse
unPublishedFileIdPublishedFileId_t
eActionEWorkshopFileAction

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

Returværdier: SteamAPICall_t to be used with a RemoteStorageSetUserPublishedFileActionResult_t call result.

SubscribePublishedFile

SteamAPICall_t SubscribePublishedFile( PublishedFileId_t unPublishedFileId );
NavnTypeBeskrivelse
unPublishedFileIdPublishedFileId_t

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

Returværdier: SteamAPICall_t to be used with a RemoteStorageSubscribePublishedFileResult_t call result.

UGCDownload

SteamAPICall_t UGCDownload( UGCHandle_t hContent, uint32 unPriority );
NavnTypeBeskrivelse
hContentUGCHandle_t
unPriorityuint32

Returværdier: SteamAPICall_t to be used with a RemoteStorageDownloadUGCResult_t call result.

UGCDownloadToLocation

SteamAPICall_t UGCDownloadToLocation( UGCHandle_t hContent, const char *pchLocation, uint32 unPriority );
NavnTypeBeskrivelse
hContentUGCHandle_t
pchLocationconst char *
unPriorityuint32

Returværdier: SteamAPICall_t to be used with a RemoteStorageDownloadUGCResult_t call result.

UGCRead

int32 UGCRead( UGCHandle_t hContent, void *pvData, int32 cubDataToRead, uint32 cOffset, EUGCReadAction eAction );
NavnTypeBeskrivelse
hContentUGCHandle_t
pvDatavoid *
cubDataToReadint32
cOffsetuint32
eActionEUGCReadAction

Returværdier: int32

UnsubscribePublishedFile

SteamAPICall_t UnsubscribePublishedFile( PublishedFileId_t unPublishedFileId );
NavnTypeBeskrivelse
unPublishedFileIdPublishedFileId_t

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

Returværdier: SteamAPICall_t to be used with a RemoteStorageUnsubscribePublishedFileResult_t call result.

UpdatePublishedFileDescription

bool UpdatePublishedFileDescription( PublishedFileUpdateHandle_t updateHandle, const char *pchDescription );
NavnTypeBeskrivelse
updateHandlePublishedFileUpdateHandle_t
pchDescriptionconst char *

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

Returværdier: bool

UpdatePublishedFileFile

bool UpdatePublishedFileFile( PublishedFileUpdateHandle_t updateHandle, const char *pchFile );
NavnTypeBeskrivelse
updateHandlePublishedFileUpdateHandle_t
pchFileconst char *

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

Returværdier: bool

UpdatePublishedFilePreviewFile

bool UpdatePublishedFilePreviewFile( PublishedFileUpdateHandle_t updateHandle, const char *pchPreviewFile );
NavnTypeBeskrivelse
updateHandlePublishedFileUpdateHandle_t
pchPreviewFileconst char *

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

Returværdier: bool

UpdatePublishedFileSetChangeDescription

bool UpdatePublishedFileSetChangeDescription( PublishedFileUpdateHandle_t updateHandle, const char *pchChangeDescription );
NavnTypeBeskrivelse
updateHandlePublishedFileUpdateHandle_t
pchChangeDescriptionconst char *

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

Returværdier: bool

UpdatePublishedFileTags

bool UpdatePublishedFileTags( PublishedFileUpdateHandle_t updateHandle, SteamParamStringArray_t *pTags );
NavnTypeBeskrivelse
updateHandlePublishedFileUpdateHandle_t
pTagsSteamParamStringArray_t *

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

Returværdier: bool

UpdatePublishedFileTitle

bool UpdatePublishedFileTitle( PublishedFileUpdateHandle_t updateHandle, const char *pchTitle );
NavnTypeBeskrivelse
updateHandlePublishedFileUpdateHandle_t
pchTitleconst char *

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

Returværdier: bool

UpdatePublishedFileVisibility

bool UpdatePublishedFileVisibility( PublishedFileUpdateHandle_t updateHandle, ERemoteStoragePublishedFileVisibility eVisibility );
NavnTypeBeskrivelse
updateHandlePublishedFileUpdateHandle_t
eVisibilityERemoteStoragePublishedFileVisibility

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

Returværdier: bool

UpdateUserPublishedItemVote

SteamAPICall_t UpdateUserPublishedItemVote( PublishedFileId_t unPublishedFileId, bool bVoteUp );
NavnTypeBeskrivelse
unPublishedFileIdPublishedFileId_t
bVoteUpbool

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

Returværdier: SteamAPICall_t to be used with a RemoteStorageUpdateUserPublishedItemVoteResult_t call result.

Tilbagekald

Disse er tilbagekald, som kan aktiveres ved at kalde SteamAPI_RunCallbacks. Many of these will be fired directly in response to the member functions of ISteamRemoteStorage.

RemoteStorageAppSyncedClient_t

Deprecated - PS3 only.

NavnTypeBeskrivelse
m_nAppIDAppId_t
m_eResultEResult
m_unNumDownloadsint

RemoteStorageAppSyncedServer_t

Deprecated - PS3 only.

NavnTypeBeskrivelse
m_nAppIDAppId_t
m_eResultEResult
m_unNumUploadsint

RemoteStorageAppSyncProgress_t

Deprecated - PS3 only.

NavnTypeBeskrivelse
m_rgchCurrentFilechar[k_cchFilenameMaxCurrent file being transferred
m_nAppIDAppId_tApp this info relates to
m_uBytesTransferredThisChunkuint32Bytes transferred this chunk
m_dAppPercentCompletedoublePercent complete that this app's transfers are
m_bUploadingboolif false, downloading

RemoteStorageAppSyncStatusCheck_t

Deprecated - PS3 only.

NavnTypeBeskrivelse
m_nAppIDAppId_t
m_eResultEResult

RemoteStorageDeletePublishedFileResult_t

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

NavnTypeBeskrivelse
m_eResultEResultResultatet af handlingen.
m_nPublishedFileIdPublishedFileId_t

Tilknyttede funktioner: DeletePublishedFile

RemoteStorageDownloadUGCResult_t


NavnTypeBeskrivelse
m_eResultEResultResultatet af handlingen.
m_hFileUGCHandle_tThe handle to the file that was attempted to be downloaded.
m_nAppIDAppId_tID of the app that created this file.
m_nSizeInBytesint32The size of the file that was downloaded, in bytes.
m_pchFileNamechar[k_cchFilenameMaxThe name of the file that was downloaded.
m_ulSteamIDOwneruint64Steam ID of the user who created this content.

Tilknyttede funktioner: UGCDownload, UGCDownloadToLocation

RemoteStorageEnumeratePublishedFilesByUserActionResult_t

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

NavnTypeBeskrivelse
m_eResultEResultResultatet af handlingen.
m_eActionEWorkshopFileActionthe action that was filtered on
m_nResultsReturnedint32
m_nTotalResultCountint32
m_rgPublishedFileIdPublishedFileId_tk_unEnumeratePublishedFilesMaxResults
m_rgRTimeUpdateduint32k_unEnumeratePublishedFilesMaxResults

Tilknyttede funktioner: EnumeratePublishedFilesByUserAction

RemoteStorageEnumerateUserPublishedFilesResult_t

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

NavnTypeBeskrivelse
m_eResultEResultResultatet af handlingen.
m_nResultsReturnedint32
m_nTotalResultCountint32
m_rgPublishedFileIdPublishedFileId_tk_unEnumeratePublishedFilesMaxResults

Tilknyttede funktioner: EnumerateUserPublishedFiles, EnumerateUserSharedWorkshopFiles

RemoteStorageEnumerateUserSharedWorkshopFilesResult_t

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

NavnTypeBeskrivelse
m_eResultEResultResultatet af handlingen.
m_nResultsReturnedint32
m_nTotalResultCountint32
m_rgPublishedFileIdPublishedFileId_tk_unEnumeratePublishedFilesMaxResults

RemoteStorageEnumerateUserSubscribedFilesResult_t

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

NavnTypeBeskrivelse
m_eResultEResultResultatet af handlingen.
m_nResultsReturnedint32
m_nTotalResultCountint32
m_rgPublishedFileIdPublishedFileId_tk_unEnumeratePublishedFilesMaxResults
m_rgRTimeSubscribeduint32k_unEnumeratePublishedFilesMaxResults

Tilknyttede funktioner: EnumerateUserSubscribedFiles

RemoteStorageEnumerateWorkshopFilesResult_t

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

NavnTypeBeskrivelse
m_eResultEResult
m_nResultsReturnedint32
m_nTotalResultCountint32
m_rgPublishedFileIdPublishedFileId_tk_unEnumeratePublishedFilesMaxResults
m_rgScorefloat[k_unEnumeratePublishedFilesMaxResults
m_nAppIdAppId_t
m_unStartIndexuint32

Tilknyttede funktioner: EnumeratePublishedWorkshopFiles

RemoteStorageFileReadAsyncComplete_t

Response when reading a file asyncrounously with FileReadAsync.

NavnTypeBeskrivelse
m_hFileReadAsyncSteamAPICall_tCall handle of the async read which was made, must be passed to FileReadAsyncComplete to get the data.
m_eResultEResultThe result of the operation.
If the local read was successful this will be k_EResultOK, you can then call FileReadAsyncComplete to get the data.
m_nOffsetuint32Offset into the file this read was at.
m_cubReaduint32Amount of bytes read - will be the <= the amount requested.

Tilknyttede funktioner: FileReadAsync

RemoteStorageFileShareResult_t


NavnTypeBeskrivelse
m_eResultEResultResultatet af handlingen
m_hFileUGCHandle_tThe handle that can be shared with users and features
m_rgchFilenamechar[k_cchFilenameMaxThe name of the file that was shared

Tilknyttede funktioner: FileShare

RemoteStorageFileWriteAsyncComplete_t

Response when writing a file asyncrounously with FileWriteAsync.

NavnTypeBeskrivelse
m_eResultEResultThe result of the operation.
If the local write was successful then this will be k_EResultOK - any other value likely indicates that the filename is invalid or the available quota would have been exceeded by the requested write. Any attempt to write files that exceed this size will return an EResult of k_EResultInvalidParam. Writing files to the cloud is limited to 100MiB.

Tilknyttede funktioner: FileWriteAsync

RemoteStorageGetPublishedFileDetailsResult_t

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

NavnTypeBeskrivelse
m_eResultEResultResultatet af handlingen.
m_nPublishedFileIdPublishedFileId_t
m_nCreatorAppIDAppId_tID of the app that created this file.
m_nConsumerAppIDAppId_tID of the app that will consume this file.
m_rgchTitlechar[k_cchPublishedDocumentTitleMaxtitle of document
m_rgchDescriptionchar[k_cchPublishedDocumentDescriptionMaxdescription of document
m_hFileUGCHandle_tThe handle of the primary file
m_hPreviewFileUGCHandle_tThe handle of the preview file
m_ulSteamIDOwneruint64Steam ID of the user who created this content.
m_rtimeCreateduint32time when the published file was created
m_rtimeUpdateduint32time when the published file was last updated
m_eVisibilityERemoteStoragePublishedFileVisibility
m_bBannedbool
m_rgchTagschar[k_cchTagListMaxcomma separated list of all tags associated with this file
m_bTagsTruncatedboolwhether the list of tags was too long to be returned in the provided buffer
m_pchFileNamechar[k_cchFilenameMaxThe name of the primary file
m_nFileSizeint32Size of the primary file
m_nPreviewFileSizeint32Size of the preview file
m_rgchURLchar[k_cchPublishedFileURLMaxURL (for a video or a website)
m_eFileTypeEWorkshopFileTypeType of the file
m_bAcceptedForUsebooldeveloper has specifically flagged this item as accepted in the Workshop

Tilknyttede funktioner: GetPublishedFileDetails

RemoteStorageGetPublishedItemVoteDetailsResult_t

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

NavnTypeBeskrivelse
m_eResultEResult
m_unPublishedFileIdPublishedFileId_t
m_nVotesForint32
m_nVotesAgainstint32
m_nReportsint32
m_fScorefloat

Tilknyttede funktioner: GetPublishedItemVoteDetails, GetUserPublishedItemVoteDetails

RemoteStorageLocalFileChange_t

If a Steam app is flagged for supporting dynamic Steam Cloud sync, and a sync occurs, this callback will be posted to the app if any local files changed.

Tilknyttede funktioner: GetLocalFileChangeCount, GetLocalFileChange

RemoteStoragePublishedFileDeleted_t

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

NavnTypeBeskrivelse
m_nPublishedFileIdPublishedFileId_tDet udgivne fil-ID
m_nAppIDAppId_tID'et på appen, der skal bruge denne fil.

RemoteStoragePublishedFileSubscribed_t


NavnTypeBeskrivelse
m_nPublishedFileIdPublishedFileId_tDet udgivne fil-ID
m_nAppIDAppId_tID'et på appen, der skal bruge denne fil.

RemoteStoragePublishedFileUnsubscribed_t


NavnTypeBeskrivelse
m_nPublishedFileIdPublishedFileId_tDet udgivne fil-ID
m_nAppIDAppId_tID'et på appen, der skal bruge denne fil.

RemoteStoragePublishedFileUpdated_t

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

NavnTypeBeskrivelse
m_nPublishedFileIdPublishedFileId_tThe published file id
m_nAppIDAppId_tID of the app that will consume this file.
m_ulUnuseduint64not used anymore

RemoteStoragePublishFileProgress_t

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

NavnTypeBeskrivelse
m_dPercentFiledouble
m_bPreviewbool

Tilknyttede funktioner: PublishWorkshopFile, PublishVideo

RemoteStoragePublishFileResult_t

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

NavnTypeBeskrivelse
m_eResultEResultResultatet af handlingen.
m_nPublishedFileIdPublishedFileId_t
m_bUserNeedsToAcceptWorkshopLegalAgreementbool

RemoteStorageSetUserPublishedFileActionResult_t

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

NavnTypeBeskrivelse
m_eResultEResultResultatet af handlingen.
m_nPublishedFileIdPublishedFileId_tThe published file id
m_eActionEWorkshopFileActionthe action that was attempted

Tilknyttede funktioner: SetUserPublishedFileAction

RemoteStorageSubscribePublishedFileResult_t

Kaldes, når brugeren har abonneret på brugerskabt indhold (UGC). Resultat fra ISteamUGC::SubscribeItem.

NavnTypeBeskrivelse
m_eResultEResultResultatet af handlingen.
m_nPublishedFileIdPublishedFileId_tThe workshop item that the user subscribed to.

Tilknyttede funktioner: SubscribePublishedFile

RemoteStorageUnsubscribePublishedFileResult_t

Kaldes, når brugeren har stoppet sit abonnement på brugerskabt indhold (UGC). Result from ISteamUGC::UnsubscribeItem.

NavnTypeBeskrivelse
m_eResultEResultResultatet af handlingen.
m_nPublishedFileIdPublishedFileId_tThe workshop item that the user unsubscribed from.

Tilknyttede funktioner: UnsubscribePublishedFile

RemoteStorageUpdatePublishedFileResult_t

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

NavnTypeBeskrivelse
m_eResultEResultResultatet af handlingen.
m_nPublishedFileIdPublishedFileId_t
m_bUserNeedsToAcceptWorkshopLegalAgreementbool

Tilknyttede funktioner: CommitPublishedFileUpdate

RemoteStorageUpdateUserPublishedItemVoteResult_t

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

NavnTypeBeskrivelse
m_eResultEResultResultatet af handlingen.
m_nPublishedFileIdPublishedFileId_tDet udgivne fil-ID

Tilknyttede funktioner: UpdateUserPublishedItemVote

RemoteStorageUserVoteDetails_t

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

NavnTypeBeskrivelse
m_eResultEResultResultatet af handlingen.
m_nPublishedFileIdPublishedFileId_tThe published file id
m_eVoteEWorkshopVotewhat the user voted

Structs

Disse er strukturer, som funktioner i ISteamRemoteStorage kan returnere og/eller interagere med.

SteamParamStringArray_t


NavnTypeBeskrivelse
m_ppStringsconst char **Array of strings.
m_nNumStringsint32The number of strings that are in [param]m_ppStrings[/param].

Enums

Disse er optællinger, som defineres til brug med ISteamRemoteStorage.

ERemoteStorageLocalFileChange

Ways in which a local file may be changed by Steam during the application session. See GetLocalFileChange.

NavnVærdiBeskrivelse
k_ERemoteStorageLocalFileChange_Invalid0Ubrugt
k_ERemoteStorageLocalFileChange_FileUpdated1The file contents changed.
k_ERemoteStorageLocalFileChange_FileDeleted2The file was deleted.

ERemoteStorageFilePathType

For APIs that may return file paths in different forms. See GetLocalFileChange.

NavnVærdiBeskrivelse
k_ERemoteStorageFilePathType_Invalid0Ubrugt
k_ERemoteStorageFilePathType_Absolute1An absolute disk path is provided. This type of path is used for files managed via AutoCloud.
k_ERemoteStorageFilePathType_APIFilename2An ISteamRemoteStorage API relative path is provided. This type of path is used for files managed via the ISteamRemoteStorage API methods (FileWrite, FileRead, etc).

ERemoteStoragePlatform

Sync Platforms flags. These can be used with SetSyncPlatforms to restrict a file to a specific OS.

NavnVærdiBeskrivelse
k_ERemoteStoragePlatformNone0This file will not be downloaded on any platform.
k_ERemoteStoragePlatformWindows(1 << 0)This file will download on Windows.
k_ERemoteStoragePlatformOSX(1 << 1)This file will download on macOS.
k_ERemoteStoragePlatformPS3(1 << 2)This file will download on the Playstation 3.
k_ERemoteStoragePlatformLinux(1 << 3)This file will download on SteamOS/Linux.
k_ERemoteStoragePlatformReserved2(1 << 4)Reserveret.
k_ERemoteStoragePlatformAll0xffffffffThis file will download on every platform. This is the default.

ERemoteStoragePublishedFileVisibility

Possible visibility states that a Workshop item can be in.

NavnVærdiBeskrivelse
k_ERemoteStoragePublishedFileVisibilityPublic0Visible to everyone.
k_ERemoteStoragePublishedFileVisibilityFriendsOnly1Visible to friends only.
k_ERemoteStoragePublishedFileVisibilityPrivate2Only visible to the creator. Setting an item to private is the closest that you can get to deleting a workshop item from the API.
k_ERemoteStoragePublishedFileVisibilityUnlisted3Visible to everyone, but will not be returned in any global queries.
Will also not be returned in any user lists unless the caller is the creator or a subscriber.

EUGCReadAction

Possible UGC Read Actions used with UGCRead.

NavnVærdiBeskrivelse
k_EUGCRead_ContinueReadingUntilFinished0Keeps the file handle open unless the last byte is read. You can use this when reading large files (over 100MB) in sequential chunks.
If the last byte is read, this will behave the same as k_EUGCRead_Close. Otherwise, it behaves the same as k_EUGCRead_ContinueReading.
This value maintains the same behavior as before the EUGCReadAction parameter was introduced.
k_EUGCRead_ContinueReading1Keeps the file handle open. Use this when using UGCRead to seek to different parts of the file.
When you are done seeking around the file, make a final call with k_EUGCRead_Close to close it.
k_EUGCRead_Close2Frees the file handle. Use this when you're done reading the content.
To read the file from Steam again you will need to call UGCDownload again.

EWorkshopEnumerationType

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

NavnVærdiBeskrivelse
k_EWorkshopEnumerationTypeRankedByVote0
k_EWorkshopEnumerationTypeRecent1
k_EWorkshopEnumerationTypeTrending2
k_EWorkshopEnumerationTypeFavoritesOfFriends3
k_EWorkshopEnumerationTypeVotedByFriends4
k_EWorkshopEnumerationTypeContentByFriends5
k_EWorkshopEnumerationTypeRecentFromFollowedUsers6

EWorkshopFileAction

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

NavnVærdiBeskrivelse
k_EWorkshopFileActionPlayed0The user has played with or on this item. (e.g. Loaded a weapon or level.)
k_EWorkshopFileActionCompleted1The user has completed this item. (e.g. Got to the end of a linear map.)

EWorkshopFileType

The way that a shared file will be shared with the community.

NavnVærdiBeskrivelse
k_EWorkshopFileTypeFirst0Only used for enumerating.
k_EWorkshopFileTypeCommunity0Normal Workshop item that can be subscribed to.
k_EWorkshopFileTypeMicrotransaction1Workshop item that is meant to be voted on for the purpose of selling in-game. (See: Curated Workshop)
k_EWorkshopFileTypeCollection2En samling af værkstedsemner
k_EWorkshopFileTypeArt3Illustrationer
k_EWorkshopFileTypeVideo4External video.
k_EWorkshopFileTypeScreenshot5SKÆRMBILLEDER.
k_EWorkshopFileTypeGame6Unused, used to be for Greenlight game entries
k_EWorkshopFileTypeSoftware7Unused, used to be for Greenlight software entries.
k_EWorkshopFileTypeConcept8Unused, used to be for Greenlight concepts.
k_EWorkshopFileTypeWebGuide9Steam-webguide
k_EWorkshopFileTypeIntegratedGuide10Applikationsintegreret guide
k_EWorkshopFileTypeMerch11Værkstedsemner, som der skal stemmes om med henblik på salg.
k_EWorkshopFileTypeControllerBinding12Steam Controller-bindinger.
k_EWorkshopFileTypeSteamworksAccessInvite13Bruges kun internt i Steam.
k_EWorkshopFileTypeSteamVideo14Steam video.
k_EWorkshopFileTypeGameManagedItem15Administreres fuldstændigt af spillet, ikke brugeren, og vises ikke på nettet.
k_EWorkshopFileTypeMax16Only used for enumerating.

EWorkshopVideoProvider

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

NavnVærdiBeskrivelse
k_EWorkshopVideoProviderNone0The item has no video.
k_EWorkshopVideoProviderYoutube1The item has a Youtube video.

EWorkshopVote

Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.

NavnVærdiBeskrivelse
k_EWorkshopVoteUnvoted0The user has not voted.
k_EWorkshopVoteFor1The user has voted this item up.
k_EWorkshopVoteAgainst2The user has voted this item down.
k_EWorkshopVoteLater3The user has chosen to vote later.

Typedefs

These are typedefs which are defined for use with ISteamRemoteStorage.

NavnBasistypeBeskrivelse
PublishedFileId_tuint64A unique handle to an individual workshop item.
PublishedFileUpdateHandle_tuint64Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.
UGCFileWriteStreamHandle_tuint64Handle used when asynchronously writing to Steam Cloud.
UGCHandle_tuint64Et unikt handle til et stykke brugerskabt indhold.

Konstanter

These are constants which are defined for use with ISteamRemoteStorage.

NavnTypeVærdiBeskrivelse
k_cchFilenameMaxuint32260The maximum length that a Steam Cloud file path can be.
k_cchPublishedDocumentChangeDescriptionMaxuint328000Ubrugt
k_cchPublishedDocumentDescriptionMaxuint328000The maximum size in bytes that a Workshop item description can be.
k_cchPublishedDocumentTitleMaxuint32128 + 1The maximum size in bytes that a Workshop item title can be.
k_cchPublishedFileURLMaxuint32256The maximum size in bytes that a Workshop item URL can be.
k_cchTagListMaxuint321024 + 1The maximum size in bytes that a Workshop item comma separated tag list can be.
k_PublishedFileIdInvalidPublishedFileId_t0An invalid Workshop item handle.
k_PublishedFileUpdateHandleInvalidPublishedFileUpdateHandle_t0xffffffffffffffffullForældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.
k_UGCFileStreamHandleInvalidUGCFileWriteStreamHandle_t0xffffffffffffffffullReturned when an error has occured when using FileWriteStreamOpen.
k_UGCHandleInvalidUGCHandle_t0xffffffffffffffffullAn invalid UGC Handle. This is often returned by functions signifying an error.
k_unEnumeratePublishedFilesMaxResultsuint3250Forældet – bruges kun med den forældede RemoteStorage-baserede værksteds-API.
k_unMaxCloudFileChunkSizeuint32100 * 1024 * 1024Defines the largest allowed file size for the Steam Cloud.
Cloud files cannot be written in a single chunk over 100MiB and cannot be over 200MiB total.
STEAMREMOTESTORAGE_INTERFACE_VERSIONconst char *"STEAMREMOTESTORAGE_INTERFACE_VERSION014"