Beispiel #1
0
 // UGCUpdateHandle_t
 public UGCUpdateHandle_t StartItemUpdate(AppId_t nConsumerAppId /*AppId_t*/, PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/)
 {
     return(platform.ISteamUGC_StartItemUpdate(nConsumerAppId.Value, nPublishedFileID.Value));
 }
Beispiel #2
0
 // UGCQueryHandle_t
 public UGCQueryHandle_t CreateQueryUserUGCRequest(AccountID_t unAccountID /*AccountID_t*/, UserUGCList eListType /*EUserUGCList*/, UGCMatchingUGCType eMatchingUGCType /*EUGCMatchingUGCType*/, UserUGCListSortOrder eSortOrder /*EUserUGCListSortOrder*/, AppId_t nCreatorAppID /*AppId_t*/, AppId_t nConsumerAppID /*AppId_t*/, uint unPage /*uint32*/)
 {
     return(platform.ISteamUGC_CreateQueryUserUGCRequest(unAccountID.Value, eListType, eMatchingUGCType, eSortOrder, nCreatorAppID.Value, nConsumerAppID.Value, unPage));
 }
Beispiel #3
0
        // SteamAPICall_t
        public CallbackHandle AddAppDependency(PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/, AppId_t nAppID /*AppId_t*/, Action <AddAppDependencyResult_t, bool> CallbackFunction = null /*Action<AddAppDependencyResult_t, bool>*/)
        {
            SteamAPICall_t callback = 0;

            callback = platform.ISteamUGC_AddAppDependency(nPublishedFileID.Value, nAppID.Value);

            if (CallbackFunction == null)
            {
                return(null);
            }
            if (callback == 0)
            {
                return(null);
            }

            return(AddAppDependencyResult_t.CallResult(steamworks, callback, CallbackFunction));
        }
 // bool
 public bool BIsSubscribedApp(AppId_t appID /*AppId_t*/)
 {
     return(platform.ISteamApps_BIsSubscribedApp(appID.Value));
 }
Beispiel #5
0
 // UGCQueryHandle_t
 public UGCQueryHandle_t CreateQueryAllUGCRequest(UGCQuery eQueryType /*EUGCQuery*/, UGCMatchingUGCType eMatchingeMatchingUGCTypeFileType /*EUGCMatchingUGCType*/, AppId_t nCreatorAppID /*AppId_t*/, AppId_t nConsumerAppID /*AppId_t*/, uint unPage /*uint32*/)
 {
     return(platform.ISteamUGC_CreateQueryAllUGCRequest(eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID.Value, nConsumerAppID.Value, unPage));
 }
 // void
 public void GetOPFSettings(AppId_t unVideoAppID /*AppId_t*/)
 {
     platform.ISteamVideo_GetOPFSettings(unVideoAppID.Value);
 }
Beispiel #7
0
 // HServerListRequest
 public HServerListRequest RequestLANServerList(AppId_t iApp /*AppId_t*/, IntPtr pRequestServersResponse /*class ISteamMatchmakingServerListResponse **/)
 {
     return(platform.ISteamMatchmakingServers_RequestLANServerList(iApp.Value, (IntPtr)pRequestServersResponse));
 }
 // bool
 public bool BIsDlcInstalled(AppId_t appID /*AppId_t*/)
 {
     return(platform.ISteamApps_BIsDlcInstalled(appID.Value));
 }
 // bool
 public bool GetFavoriteGame(int iGame /*int*/, ref AppId_t pnAppID /*AppId_t **/, out uint pnIP /*uint32 **/, out ushort pnConnPort /*uint16 **/, out ushort pnQueryPort /*uint16 **/, out uint punFlags /*uint32 **/, out uint pRTime32LastPlayedOnServer /*uint32 **/)
 {
     return(platform.ISteamMatchmaking_GetFavoriteGame(iGame, ref pnAppID.Value, out pnIP, out pnConnPort, out pnQueryPort, out punFlags, out pRTime32LastPlayedOnServer));
 }
 // void
 public void RequestAppProofOfPurchaseKey(AppId_t nAppID /*AppId_t*/)
 {
     platform.ISteamApps_RequestAppProofOfPurchaseKey(nAppID.Value);
 }
 // void
 public void UninstallDLC(AppId_t nAppID /*AppId_t*/)
 {
     platform.ISteamApps_UninstallDLC(nAppID.Value);
 }
 // uint
 public uint GetInstalledDepots(AppId_t appID /*AppId_t*/, IntPtr pvecDepots /*DepotId_t **/, uint cMaxDepots /*uint32*/)
 {
     return(platform.ISteamApps_GetInstalledDepots(appID.Value, (IntPtr)pvecDepots, cMaxDepots));
 }
 // uint
 public uint GetEarliestPurchaseUnixTime(AppId_t nAppID /*AppId_t*/)
 {
     return(platform.ISteamApps_GetEarliestPurchaseUnixTime(nAppID.Value));
 }
 // bool
 public bool GetDlcDownloadProgress(AppId_t nAppID /*AppId_t*/, out ulong punBytesDownloaded /*uint64 **/, out ulong punBytesTotal /*uint64 **/)
 {
     return(platform.ISteamApps_GetDlcDownloadProgress(nAppID.Value, out punBytesDownloaded, out punBytesTotal));
 }
 // bool
 public bool InitGameServer(uint unIP /*uint32*/, ushort usGamePort /*uint16*/, ushort usQueryPort /*uint16*/, uint unFlags /*uint32*/, AppId_t nGameAppId /*AppId_t*/, string pchVersionString /*const char **/)
 {
     return(platform.ISteamGameServer_InitGameServer(unIP, usGamePort, usQueryPort, unFlags, nGameAppId.Value, pchVersionString));
 }
 // bool
 public bool RemoveFavoriteGame(AppId_t nAppID /*AppId_t*/, uint nIP /*uint32*/, ushort nConnPort /*uint16*/, ushort nQueryPort /*uint16*/, uint unFlags /*uint32*/)
 {
     return(platform.ISteamMatchmaking_RemoveFavoriteGame(nAppID.Value, nIP, nConnPort, nQueryPort, unFlags));
 }
Beispiel #17
0
 // UserHasLicenseForAppResult
 public UserHasLicenseForAppResult UserHasLicenseForApp(CSteamID steamID /*class CSteamID*/, AppId_t appID /*AppId_t*/)
 {
     return(platform.ISteamUser_UserHasLicenseForApp(steamID.Value, appID.Value));
 }
 // int
 public int AddFavoriteGame(AppId_t nAppID /*AppId_t*/, uint nIP /*uint32*/, ushort nConnPort /*uint16*/, ushort nQueryPort /*uint16*/, uint unFlags /*uint32*/, uint rTime32LastPlayedOnServer /*uint32*/)
 {
     return(platform.ISteamMatchmaking_AddFavoriteGame(nAppID.Value, nIP, nConnPort, nQueryPort, unFlags, rTime32LastPlayedOnServer));
 }
 // void
 public void GetVideoURL(AppId_t unVideoAppID /*AppId_t*/)
 {
     platform.ISteamVideo_GetVideoURL(unVideoAppID.Value);
 }
Beispiel #20
0
        // SteamAPICall_t
        // using: Detect_StringArray
        public CallbackHandle PublishWorkshopFile(string pchFile /*const char **/, string pchPreviewFile /*const char **/, AppId_t nConsumerAppId /*AppId_t*/, string pchTitle /*const char **/, string pchDescription /*const char **/, RemoteStoragePublishedFileVisibility eVisibility /*ERemoteStoragePublishedFileVisibility*/, string[] pTags /*struct SteamParamStringArray_t **/, WorkshopFileType eWorkshopFileType /*EWorkshopFileType*/, Action <RemoteStoragePublishFileProgress_t, bool> CallbackFunction = null /*Action<RemoteStoragePublishFileProgress_t, bool>*/)
        {
            SteamAPICall_t callback = 0;
            // Create strings
            var nativeStrings = new IntPtr[pTags.Length];

            for (int i = 0; i < pTags.Length; i++)
            {
                nativeStrings[i] = Marshal.StringToHGlobalAnsi(pTags[i]);
            }
            try
            {
                // Create string array
                var size        = Marshal.SizeOf(typeof(IntPtr)) * nativeStrings.Length;
                var nativeArray = Marshal.AllocHGlobal(size);
                Marshal.Copy(nativeStrings, 0, nativeArray, nativeStrings.Length);

                // Create SteamParamStringArray_t
                var tags = new SteamParamStringArray_t();
                tags.Strings    = nativeArray;
                tags.NumStrings = pTags.Length;
                callback        = platform.ISteamRemoteStorage_PublishWorkshopFile(Utility.GetUtf8Bytes(pchFile), Utility.GetUtf8Bytes(pchPreviewFile), nConsumerAppId.Value, Utility.GetUtf8Bytes(pchTitle), Utility.GetUtf8Bytes(pchDescription), eVisibility, ref tags, eWorkshopFileType);
            }
            finally
            {
                foreach (var x in nativeStrings)
                {
                    Marshal.FreeHGlobal(x);
                }
            }

            if (CallbackFunction == null)
            {
                return(null);
            }
            if (callback == 0)
            {
                return(null);
            }

            return(RemoteStoragePublishFileProgress_t.CallResult(steamworks, callback, CallbackFunction));
        }
Beispiel #21
0
 // HServerListRequest
 // with: Detect_MatchmakingFilters
 public HServerListRequest RequestSpectatorServerList(AppId_t iApp /*AppId_t*/, IntPtr ppchFilters /*struct MatchMakingKeyValuePair_t ***/, uint nFilters /*uint32*/, IntPtr pRequestServersResponse /*class ISteamMatchmakingServerListResponse **/)
 {
     return(platform.ISteamMatchmakingServers_RequestSpectatorServerList(iApp.Value, (IntPtr)ppchFilters, nFilters, (IntPtr)pRequestServersResponse));
 }
 // void
 public void ActivateGameOverlayToStore(AppId_t nAppID /*AppId_t*/, OverlayToStoreFlag eFlag /*EOverlayToStoreFlag*/)
 {
     platform.ISteamFriends_ActivateGameOverlayToStore(nAppID.Value, eFlag);
 }