public static bool GetUGCDownloadProgress(UGCHandle_t hContent, out int pnBytesDownloaded, out int pnBytesExpected) { InteropHelp.TestIfAvailableClient(); return NativeMethods.ISteamRemoteStorage_GetUGCDownloadProgress(hContent, out pnBytesDownloaded, out pnBytesExpected); }
public static SteamAPICall_t UGCDownloadToLocation(UGCHandle_t hContent, string pchLocation, uint unPriority) { InteropHelp.TestIfAvailableClient(); SteamAPICall_t result; using (InteropHelp.UTF8StringHandle uTF8StringHandle = new InteropHelp.UTF8StringHandle(pchLocation)) { result = (SteamAPICall_t)NativeMethods.ISteamRemoteStorage_UGCDownloadToLocation(hContent, uTF8StringHandle, unPriority); } return result; }
public static extern ulong ISteamUserStats_AttachLeaderboardUGC(SteamLeaderboard_t hSteamLeaderboard, UGCHandle_t hUGC);
// Gets metadata for a file after it has been downloaded. This is the same metadata given in the RemoteStorageDownloadUGCResult_t call result public static bool GetUGCDetails(UGCHandle_t hContent, out AppId_t pnAppID, out string ppchName, out int pnFileSizeInBytes, out CSteamID pSteamIDOwner) { InteropHelp.TestIfAvailableClient(); IntPtr ppchName2; bool ret = NativeMethods.ISteamRemoteStorage_GetUGCDetails(hContent, out pnAppID, out ppchName2, out pnFileSizeInBytes, out pSteamIDOwner); ppchName = ret ? InteropHelp.PtrToStringUTF8(ppchName2) : null; return ret; }
public static extern bool ISteamRemoteStorage_GetUGCDownloadProgress(UGCHandle_t hContent, out int pnBytesDownloaded, out int pnBytesExpected);
public static extern int ISteamRemoteStorage_UGCRead(UGCHandle_t hContent, [In, Out] byte[] pvData, int cubDataToRead, uint cOffset, EUGCReadAction eAction);
internal int UGCRead(UGCHandle_t hContent, IntPtr pvData, int cubDataToRead, uint cOffset, UGCReadAction eAction) { var returnValue = _UGCRead(Self, hContent, pvData, cubDataToRead, cOffset, eAction); return(returnValue); }
public SteamNativeData(SteamLeaderboard_t p_hSteamLeaderboard, UGCHandle_t p_hUGC, CSteamID p_steamIDUser) { m_hSteamLeaderboard = p_hSteamLeaderboard; m_hUGC = p_hUGC; m_steamIDUser = p_steamIDUser; }
internal bool GetUGCDetails(UGCHandle_t hContent, ref AppId pnAppID, [In, Out] ref char[] ppchName, ref int pnFileSizeInBytes, ref SteamId pSteamIDOwner) { var returnValue = _GetUGCDetails(Self, hContent, ref pnAppID, ref ppchName, ref pnFileSizeInBytes, ref pSteamIDOwner); return(returnValue); }
private static extern int _UGCRead(IntPtr self, UGCHandle_t hContent, IntPtr pvData, int cubDataToRead, uint cOffset, UGCReadAction eAction);
private static extern bool _GetUGCDetails(IntPtr self, UGCHandle_t hContent, ref AppId pnAppID, [In, Out] ref char[] ppchName, ref int pnFileSizeInBytes, ref SteamId pSteamIDOwner);
internal bool GetUGCDownloadProgress(UGCHandle_t hContent, ref int pnBytesDownloaded, ref int pnBytesExpected) { var returnValue = _GetUGCDownloadProgress(Self, hContent, ref pnBytesDownloaded, ref pnBytesExpected); return(returnValue); }
private static extern bool _GetUGCDownloadProgress(IntPtr self, UGCHandle_t hContent, ref int pnBytesDownloaded, ref int pnBytesExpected);
internal CallResult <RemoteStorageDownloadUGCResult_t> UGCDownload(UGCHandle_t hContent, uint unPriority) { var returnValue = _UGCDownload(Self, hContent, unPriority); return(new CallResult <RemoteStorageDownloadUGCResult_t>(returnValue, IsServer)); }
private static extern SteamAPICall_t _UGCDownloadToLocation(IntPtr self, UGCHandle_t hContent, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string pchLocation, uint unPriority);
internal CallResult <LeaderboardUGCSet_t> AttachLeaderboardUGC(SteamLeaderboard_t hSteamLeaderboard, UGCHandle_t hUGC) { var returnValue = _AttachLeaderboardUGC(Self, hSteamLeaderboard, hUGC); return(new CallResult <LeaderboardUGCSet_t>(returnValue, IsServer)); }
internal CallResult <RemoteStorageDownloadUGCResult_t> UGCDownloadToLocation(UGCHandle_t hContent, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string pchLocation, uint unPriority) { var returnValue = _UGCDownloadToLocation(Self, hContent, pchLocation, unPriority); return(new CallResult <RemoteStorageDownloadUGCResult_t>(returnValue, IsServer)); }
public static extern ulong ISteamRemoteStorage_UGCDownload(UGCHandle_t hContent, uint unPriority);
void OnRemoteStorageFileShareResult(RemoteStorageFileShareResult_t pCallback, bool bIOFailure) { Debug.Log("[" + RemoteStorageFileShareResult_t.k_iCallback + " - RemoteStorageFileShareResult] - " + pCallback.m_eResult + " -- " + pCallback.m_hFile); if (pCallback.m_eResult == EResult.k_EResultOK) { m_UGCHandle = pCallback.m_hFile; } }
public static extern bool ISteamRemoteStorage_GetUGCDetails(UGCHandle_t hContent, out AppId_t pnAppID, out IntPtr ppchName, out int pnFileSizeInBytes, out CSteamID pSteamIDOwner);
void OnRemoteStorageGetPublishedFileDetailsResult(RemoteStorageGetPublishedFileDetailsResult_t pCallback, bool bIOFailure) { Debug.Log("[" + RemoteStorageGetPublishedFileDetailsResult_t.k_iCallback + " - RemoteStorageGetPublishedFileDetailsResult] - " + pCallback.m_eResult + " -- " + pCallback.m_nPublishedFileId + " -- " + pCallback.m_nCreatorAppID + " -- " + pCallback.m_nConsumerAppID + " -- " + pCallback.m_rgchTitle + " -- " + pCallback.m_rgchDescription + " -- " + pCallback.m_hFile + " -- " + pCallback.m_hPreviewFile + " -- " + pCallback.m_ulSteamIDOwner + " -- " + pCallback.m_rtimeCreated + " -- " + pCallback.m_rtimeUpdated + " -- " + pCallback.m_eVisibility + " -- " + pCallback.m_bBanned + " -- " + pCallback.m_rgchTags + " -- " + pCallback.m_bTagsTruncated + " -- " + pCallback.m_pchFileName + " -- " + pCallback.m_nFileSize + " -- " + pCallback.m_nPreviewFileSize + " -- " + pCallback.m_rgchURL + " -- " + pCallback.m_eFileType + " -- " + pCallback.m_bAcceptedForUse); if (pCallback.m_eResult == EResult.k_EResultOK) { m_UGCHandle = pCallback.m_hFile; } }
public static extern ulong ISteamRemoteStorage_UGCDownloadToLocation(UGCHandle_t hContent, InteropHelp.UTF8StringHandle pchLocation, uint unPriority);
public SteamGetPrimaryFileProcess(GetPrimaryFileResultEventHandler callBackGetPrimaryFileResult, UGCHandle_t file, PublishedFileId_t publishedFileId, int index = -1, int dungeonId = -1) { RemoteStorageDownloadUGCResult = CallResult <RemoteStorageDownloadUGCResult_t> .Create(OnRemoteStorageDownloadFileUGCResultPrimaryFile); CallBackGetPrimaryFileResult = callBackGetPrimaryFileResult; GetPrimaryFile(file); _PublishedFileId = publishedFileId; _index = index; _dungeonId = dungeonId; }
public static SteamAPICall_t AttachLeaderboardUGC(SteamLeaderboard_t hSteamLeaderboard, UGCHandle_t hUGC) { InteropHelp.TestIfAvailableClient(); return (SteamAPICall_t)NativeMethods.ISteamUserStats_AttachLeaderboardUGC(hSteamLeaderboard, hUGC); }
public void GetPrimaryFile(GetPrimaryFileResultEventHandler callBackDownloadFileUGCResult, UGCHandle_t file, PublishedFileId_t publishID, int index = -1, int dungeonId = -1) { SteamGetPrimaryFileProcess item = new SteamGetPrimaryFileProcess(callBackDownloadFileUGCResult, file, publishID, index, dungeonId); ProcessList.Add(item); }
public static bool GetUGCDetails(UGCHandle_t hContent, out AppId_t pnAppID, out string ppchName, out int pnFileSizeInBytes, out CSteamID pSteamIDOwner) { InteropHelp.TestIfAvailableClient(); IntPtr nativeUtf; bool flag = NativeMethods.ISteamRemoteStorage_GetUGCDetails(hContent, out pnAppID, out nativeUtf, out pnFileSizeInBytes, out pSteamIDOwner); ppchName = ((!flag) ? null : InteropHelp.PtrToStringUTF8(nativeUtf)); return flag; }
public bool GetDownProgress(UGCHandle_t file, out int downloadedBytes, out int totalBytes) { return(SteamRemoteStorage.GetUGCDownloadProgress(file, out downloadedBytes, out totalBytes)); }
public static SteamAPICall_t UGCDownload(UGCHandle_t hContent, uint unPriority) { InteropHelp.TestIfAvailableClient(); return (SteamAPICall_t)NativeMethods.ISteamRemoteStorage_UGCDownload(hContent, unPriority); }
private static extern SteamAPICall_t _AttachLeaderboardUGC(IntPtr self, SteamLeaderboard_t hSteamLeaderboard, UGCHandle_t hUGC);
public static int UGCRead(UGCHandle_t hContent, byte[] pvData, int cubDataToRead, uint cOffset, EUGCReadAction eAction) { InteropHelp.TestIfAvailableClient(); return NativeMethods.ISteamRemoteStorage_UGCRead(hContent, pvData, cubDataToRead, cOffset, eAction); }
private static extern SteamAPICall_t _UGCDownload(IntPtr self, UGCHandle_t hContent, uint unPriority);