com.codedisaster.steamworks.SteamRemoteStorageCallbackAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of steamworks4j Show documentation
Show all versions of steamworks4j Show documentation
Java wrapper to access the Steamworks API.
package com.codedisaster.steamworks;
@SuppressWarnings("unused")
class SteamRemoteStorageCallbackAdapter extends SteamCallbackAdapter {
SteamRemoteStorageCallbackAdapter(SteamRemoteStorageCallback callback) {
super(callback);
}
void onFileShareResult(long fileHandle, String fileName, int result) {
callback.onFileShareResult(new SteamUGCHandle(fileHandle),
fileName, SteamResult.byValue(result));
}
void onDownloadUGCResult(long fileHandle, int result) {
callback.onDownloadUGCResult(new SteamUGCHandle(fileHandle), SteamResult.byValue(result));
}
void onPublishFileResult(long publishedFileID, boolean needsToAcceptWLA, int result) {
callback.onPublishFileResult(new SteamPublishedFileID(publishedFileID),
needsToAcceptWLA, SteamResult.byValue(result));
}
void onUpdatePublishedFileResult(long publishedFileID, boolean needsToAcceptWLA, int result) {
callback.onUpdatePublishedFileResult(new SteamPublishedFileID(publishedFileID),
needsToAcceptWLA, SteamResult.byValue(result));
}
}