From 0633bae5825090ee2d730188421490c9b46b548b Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Tue, 23 Jan 2018 10:48:36 +0000 Subject: [PATCH] Updated Steamworks SDK to 1.42 --- Generator/steam_sdk/isteamclient.h | 12 +- Generator/steam_sdk/isteamcontroller.h | 23 +- Generator/steam_sdk/isteamfriends.h | 3 + Generator/steam_sdk/isteamhtmlsurface.h | 15 +- Generator/steam_sdk/isteaminventory.h | 69 +- Generator/steam_sdk/isteamparentalsettings.h | 57 ++ Generator/steam_sdk/isteamugc.h | 61 ++ Generator/steam_sdk/isteamunifiedmessages.h | 63 -- Generator/steam_sdk/steam_api.h | 8 +- Generator/steam_sdk/steam_api.json | 418 ++++++++++-- Generator/steam_sdk/steam_api_flat.h | 44 +- Generator/steam_sdk/steam_api_internal.h | 13 +- Generator/steam_sdk/steam_api_interop.cs | 660 ++++++++++++++++--- Generator/steam_sdk/steamclientpublic.h | 35 + Generator/steam_sdk/steamtypes.h | 5 +- 15 files changed, 1217 insertions(+), 269 deletions(-) create mode 100644 Generator/steam_sdk/isteamparentalsettings.h delete mode 100644 Generator/steam_sdk/isteamunifiedmessages.h diff --git a/Generator/steam_sdk/isteamclient.h b/Generator/steam_sdk/isteamclient.h index f007c63..af8828d 100644 --- a/Generator/steam_sdk/isteamclient.h +++ b/Generator/steam_sdk/isteamclient.h @@ -100,13 +100,13 @@ class ISteamMusicRemote; class ISteamGameServerStats; class ISteamPS3OverlayRender; class ISteamHTTP; -class ISteamUnifiedMessages; class ISteamController; class ISteamUGC; class ISteamAppList; class ISteamHTMLSurface; class ISteamInventory; class ISteamVideo; +class ISteamParentalSettings; //----------------------------------------------------------------------------- // Purpose: Interface to creating a new steam instance, or to @@ -206,8 +206,8 @@ public: // Expose HTTP interface virtual ISteamHTTP *GetISteamHTTP( HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char *pchVersion ) = 0; - // Exposes the ISteamUnifiedMessages interface - virtual ISteamUnifiedMessages *GetISteamUnifiedMessages( HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char *pchVersion ) = 0; + // Deprecated - the ISteamUnifiedMessages interface is no longer intended for public consumption. + STEAM_PRIVATE_API( virtual void *DEPRECATED_GetISteamUnifiedMessages( HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char *pchVersion ) = 0 ; ) // Exposes the ISteamController interface virtual ISteamController *GetISteamController( HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char *pchVersion ) = 0; @@ -237,6 +237,9 @@ public: // Video virtual ISteamVideo *GetISteamVideo( HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char *pchVersion ) = 0; + + // Parental controls + virtual ISteamParentalSettings *GetISteamParentalSettings( HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char *pchVersion ) = 0; }; @@ -294,6 +297,9 @@ enum { k_iSteamHTMLSurfaceCallbacks = 4500 }; enum { k_iClientVideoCallbacks = 4600 }; enum { k_iClientInventoryCallbacks = 4700 }; enum { k_iClientBluetoothManagerCallbacks = 4800 }; +enum { k_iClientSharedConnectionCallbacks = 4900 }; +enum { k_ISteamParentalSettingsCallbacks = 5000 }; +enum { k_iClientShaderCallbacks = 5100 }; //----------------------------------------------------------------------------- // The CALLBACK macros are for client side callback logging enabled with diff --git a/Generator/steam_sdk/isteamcontroller.h b/Generator/steam_sdk/isteamcontroller.h index c39a48b..6f31b75 100644 --- a/Generator/steam_sdk/isteamcontroller.h +++ b/Generator/steam_sdk/isteamcontroller.h @@ -46,6 +46,8 @@ enum EControllerSource k_EControllerSource_CenterTrackpad, // PS4 k_EControllerSource_RightJoystick, // Traditional Controllers k_EControllerSource_DPad, // Traditional Controllers + k_EControllerSource_Key, // Keyboards with scan codes + k_EControllerSource_Mouse, // Traditional mouse k_EControllerSource_Count }; @@ -287,6 +289,16 @@ enum ESteamControllerLEDFlag k_ESteamControllerLEDFlag_RestoreUserDefault }; +enum ESteamInputType +{ + k_ESteamInputType_Unknown, + k_ESteamInputType_SteamController, + k_ESteamInputType_XBox360Controller, + k_ESteamInputType_XBoxOneController, + k_ESteamInputType_GenericXInput, + k_ESteamInputType_PS4Controller, +}; + // ControllerHandle_t is used to refer to a specific controller. // This handle will consistently identify a controller, even if it is disconnected and re-connected typedef uint64 ControllerHandle_t; @@ -377,6 +389,12 @@ public: // your state loops, instead of trying to place it in all of your state transitions. virtual void ActivateActionSet( ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle ) = 0; virtual ControllerActionSetHandle_t GetCurrentActionSet( ControllerHandle_t controllerHandle ) = 0; + + virtual void ActivateActionSetLayer( ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetLayerHandle ) = 0; + virtual void DeactivateActionSetLayer( ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetLayerHandle ) = 0; + virtual void DeactivateAllActionSetLayers( ControllerHandle_t controllerHandle ) = 0; + virtual int GetActiveActionSetLayers( ControllerHandle_t controllerHandle, ControllerActionSetHandle_t *handlesOut ) = 0; + // ACTIONS // Lookup the handle for a digital action. Best to do this once on startup, and store the handles for all future API calls. @@ -433,8 +451,11 @@ public: // Get a local path to art for on-screen glyph for a particular origin virtual const char *GetGlyphForActionOrigin( EControllerActionOrigin eOrigin ) = 0; + + // Returns the input type for a particular handle + virtual ESteamInputType GetInputTypeForHandle( ControllerHandle_t controllerHandle ) = 0; }; -#define STEAMCONTROLLER_INTERFACE_VERSION "SteamController005" +#define STEAMCONTROLLER_INTERFACE_VERSION "SteamController006" #endif // ISTEAMCONTROLLER_H diff --git a/Generator/steam_sdk/isteamfriends.h b/Generator/steam_sdk/isteamfriends.h index 29827b6..c1754c2 100644 --- a/Generator/steam_sdk/isteamfriends.h +++ b/Generator/steam_sdk/isteamfriends.h @@ -388,6 +388,9 @@ public: virtual SteamAPICall_t IsFollowing( CSteamID steamID ) = 0; CALL_RESULT( FriendsEnumerateFollowingList_t ) virtual SteamAPICall_t EnumerateFollowingList( uint32 unStartIndex ) = 0; + + virtual bool IsClanPublic( CSteamID steamIDClan ) = 0; + virtual bool IsClanOfficialGameGroup( CSteamID steamIDClan ) = 0; }; #define STEAMFRIENDS_INTERFACE_VERSION "SteamFriends015" diff --git a/Generator/steam_sdk/isteamhtmlsurface.h b/Generator/steam_sdk/isteamhtmlsurface.h index ccfc6af..117599c 100644 --- a/Generator/steam_sdk/isteamhtmlsurface.h +++ b/Generator/steam_sdk/isteamhtmlsurface.h @@ -177,6 +177,10 @@ public: // When background mode is disabled, any video or audio objects with that property will resume with ".play()". virtual void SetBackgroundMode( HHTMLBrowser unBrowserHandle, bool bBackgroundMode ) = 0; + // Scale the output display space by this factor, this is useful when displaying content on high dpi devices. + // Specifies the ratio between physical and logical pixels. + virtual void SetDPIScalingFactor( HHTMLBrowser unBrowserHandle, float flDPIScaling ) = 0; + // CALLBACKS // // These set of functions are used as responses to callback requests @@ -197,7 +201,7 @@ public: virtual void FileLoadDialogResponse( HHTMLBrowser unBrowserHandle, const char **pchSelectedFiles ) = 0; }; -#define STEAMHTMLSURFACE_INTERFACE_VERSION "STEAMHTMLSURFACE_INTERFACE_VERSION_003" +#define STEAMHTMLSURFACE_INTERFACE_VERSION "STEAMHTMLSURFACE_INTERFACE_VERSION_004" // callbacks #if defined( VALVE_CALLBACK_PACK_SMALL ) @@ -447,6 +451,15 @@ CALLBACK_MEMBER( 0, HHTMLBrowser, unBrowserHandle ) // the handle of the surface END_DEFINE_CALLBACK_1() +//----------------------------------------------------------------------------- +// Purpose: The browser has restarted due to an internal failure, use this new handle value +//----------------------------------------------------------------------------- +DEFINE_CALLBACK( HTML_BrowserRestarted_t, k_iSteamHTMLSurfaceCallbacks + 27 ) +CALLBACK_MEMBER( 0, HHTMLBrowser, unBrowserHandle ) // this is the new browser handle after the restart +CALLBACK_MEMBER( 1, HHTMLBrowser, unOldBrowserHandle ) // the handle for the browser before the restart, if your handle was this then switch to using unBrowserHandle for API calls +END_DEFINE_CALLBACK_2() + + #pragma pack( pop ) diff --git a/Generator/steam_sdk/isteaminventory.h b/Generator/steam_sdk/isteaminventory.h index 692c62d..85090a2 100644 --- a/Generator/steam_sdk/isteaminventory.h +++ b/Generator/steam_sdk/isteaminventory.h @@ -61,6 +61,8 @@ typedef int32 SteamInventoryResult_t; static const SteamInventoryResult_t k_SteamInventoryResultInvalid = -1; +typedef uint64 SteamInventoryUpdateHandle_t; +const SteamInventoryUpdateHandle_t k_SteamInventoryUpdateHandleInvalid = 0xffffffffffffffffull; //----------------------------------------------------------------------------- // Purpose: Steam Inventory query and manipulation API @@ -259,17 +261,7 @@ public: virtual bool TriggerItemDrop( SteamInventoryResult_t *pResultHandle, SteamItemDef_t dropListDefinition ) = 0; - // IN-GAME TRADING - // - // TradeItems() implements limited in-game trading of items, if you prefer not to use - // the overlay or an in-game web browser to perform Steam Trading through the website. - // You should implement a UI where both players can see and agree to a trade, and then - // each client should call TradeItems simultaneously (+/- 5 seconds) with matching - // (but reversed) parameters. The result is the same as if both players performed a - // Steam Trading transaction through the web. Each player will get an inventory result - // confirming the removal or quantity changes of the items given away, and the new - // item instance id numbers and quantities of the received items. - // (Note: new item instance IDs are generated whenever an item changes ownership.) + // Deprecated. This method is not supported. virtual bool TradeItems( SteamInventoryResult_t *pResultHandle, CSteamID steamIDTradePartner, ARRAY_COUNT(nArrayGiveLength) const SteamItemInstanceID_t *pArrayGive, ARRAY_COUNT(nArrayGiveLength) const uint32 *pArrayGiveQuantity, uint32 nArrayGiveLength, ARRAY_COUNT(nArrayGetLength) const SteamItemInstanceID_t *pArrayGet, ARRAY_COUNT(nArrayGetLength) const uint32 *pArrayGetQuantity, uint32 nArrayGetLength ) = 0; @@ -326,6 +318,44 @@ public: CSteamID steamID, OUT_ARRAY_COUNT(punItemDefIDsArraySize,List of item definition IDs) SteamItemDef_t *pItemDefIDs, DESC(Size of array is passed in and actual size used is returned in this param) uint32 *punItemDefIDsArraySize ) = 0; + + // Starts the purchase process for the given item definitions. The callback SteamInventoryStartPurchaseResult_t + // will be posted if Steam was able to initialize the transaction. + // + // Once the purchase has been authorized and completed by the user, the callback SteamInventoryResultReady_t + // will be posted. + CALL_RESULT( SteamInventoryStartPurchaseResult_t ) + virtual SteamAPICall_t StartPurchase( ARRAY_COUNT(unArrayLength) const SteamItemDef_t *pArrayItemDefs, ARRAY_COUNT(unArrayLength) const uint32 *punArrayQuantity, uint32 unArrayLength ) = 0; + + // Request current prices for all applicable item definitions + CALL_RESULT( SteamInventoryRequestPricesResult_t ) + virtual SteamAPICall_t RequestPrices() = 0; + + // Returns the number of items with prices. Need to call RequestPrices() first. + virtual uint32 GetNumItemsWithPrices() = 0; + + // Returns item definition ids and their prices in the user's local currency. + // Need to call RequestPrices() first. + virtual bool GetItemsWithPrices( ARRAY_COUNT(unArrayLength) OUT_ARRAY_COUNT(pArrayItemDefs, Items with prices) SteamItemDef_t *pArrayItemDefs, + ARRAY_COUNT(unArrayLength) OUT_ARRAY_COUNT(pPrices, List of prices for the given item defs) uint64 *pPrices, + uint32 unArrayLength ) = 0; + + // Retrieves the price for the item definition id + // Returns false if there is no price stored for the item definition. + virtual bool GetItemPrice( SteamItemDef_t iDefinition, uint64 *pPrice ) = 0; + + // Create a request to update properties on items + virtual SteamInventoryUpdateHandle_t StartUpdateProperties() = 0; + // Remove the property on the item + virtual bool RemoveProperty( SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char *pchPropertyName ) = 0; + // Accessor methods to set properties on items + virtual bool SetProperty( SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char *pchPropertyName, const char *pchPropertyValue ) = 0; + virtual bool SetProperty( SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char *pchPropertyName, bool bValue ) = 0; + virtual bool SetProperty( SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char *pchPropertyName, int64 nValue ) = 0; + virtual bool SetProperty( SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char *pchPropertyName, float flValue ) = 0; + // Submit the update request by handle + virtual bool SubmitUpdateProperties( SteamInventoryUpdateHandle_t handle, SteamInventoryResult_t * pResultHandle ) = 0; + }; #define STEAMINVENTORY_INTERFACE_VERSION "STEAMINVENTORY_INTERFACE_V002" @@ -375,6 +405,23 @@ struct SteamInventoryEligiblePromoItemDefIDs_t bool m_bCachedData; // indicates that the data was retrieved from the cache and not the server }; +// Triggered from StartPurchase call +struct SteamInventoryStartPurchaseResult_t +{ + enum { k_iCallback = k_iClientInventoryCallbacks + 4 }; + EResult m_result; + uint64 m_ulOrderID; + uint64 m_ulTransID; +}; + + +// Triggered from RequestPrices +struct SteamInventoryRequestPricesResult_t +{ + enum { k_iCallback = k_iClientInventoryCallbacks + 5 }; + EResult m_result; + char m_rgchCurrency[4]; +}; #pragma pack( pop ) diff --git a/Generator/steam_sdk/isteamparentalsettings.h b/Generator/steam_sdk/isteamparentalsettings.h new file mode 100644 index 0000000..1b6ba9f --- /dev/null +++ b/Generator/steam_sdk/isteamparentalsettings.h @@ -0,0 +1,57 @@ +//====== Copyright � 2013-, Valve Corporation, All rights reserved. ======= +// +// Purpose: Interface to Steam parental settings (Family View) +// +//============================================================================= + +#ifndef ISTEAMPARENTALSETTINGS_H +#define ISTEAMPARENTALSETTINGS_H +#ifdef _WIN32 +#pragma once +#endif + +// Feature types for parental settings +enum EParentalFeature +{ + k_EFeatureInvalid = 0, + k_EFeatureStore = 1, + k_EFeatureCommunity = 2, + k_EFeatureProfile = 3, + k_EFeatureFriends = 4, + k_EFeatureNews = 5, + k_EFeatureTrading = 6, + k_EFeatureSettings = 7, + k_EFeatureConsole = 8, + k_EFeatureBrowser = 9, + k_EFeatureParentalSetup = 10, + k_EFeatureLibrary = 11, + k_EFeatureTest = 12, + k_EFeatureMax +}; + +class ISteamParentalSettings +{ +public: + virtual bool BIsParentalLockEnabled() = 0; + virtual bool BIsParentalLockLocked() = 0; + + virtual bool BIsAppBlocked( AppId_t nAppID ) = 0; + virtual bool BIsAppInBlockList( AppId_t nAppID ) = 0; + + virtual bool BIsFeatureBlocked( EParentalFeature eFeature ) = 0; + virtual bool BIsFeatureInBlockList( EParentalFeature eFeature ) = 0; +}; + +#define STEAMPARENTALSETTINGS_INTERFACE_VERSION "STEAMPARENTALSETTINGS_INTERFACE_VERSION001" + + +//----------------------------------------------------------------------------- +// Purpose: Callback for querying UGC +//----------------------------------------------------------------------------- +struct SteamParentalSettingsChanged_t +{ + enum { k_iCallback = k_ISteamParentalSettingsCallbacks + 1 }; +}; + + +#endif // ISTEAMPARENTALSETTINGS_H diff --git a/Generator/steam_sdk/isteamugc.h b/Generator/steam_sdk/isteamugc.h index 3d973f4..4a7d296 100644 --- a/Generator/steam_sdk/isteamugc.h +++ b/Generator/steam_sdk/isteamugc.h @@ -329,6 +329,20 @@ public: virtual SteamAPICall_t AddDependency( PublishedFileId_t nParentPublishedFileID, PublishedFileId_t nChildPublishedFileID ) = 0; CALL_RESULT( RemoveUGCDependencyResult_t ) virtual SteamAPICall_t RemoveDependency( PublishedFileId_t nParentPublishedFileID, PublishedFileId_t nChildPublishedFileID ) = 0; + + // add/remove app dependence/requirements (usually DLC) + CALL_RESULT( AddAppDependencyResult_t ) + virtual SteamAPICall_t AddAppDependency( PublishedFileId_t nPublishedFileID, AppId_t nAppID ) = 0; + CALL_RESULT( RemoveAppDependencyResult_t ) + virtual SteamAPICall_t RemoveAppDependency( PublishedFileId_t nPublishedFileID, AppId_t nAppID ) = 0; + // request app dependencies. note that whatever callback you register for GetAppDependenciesResult_t may be called multiple times + // until all app dependencies have been returned + CALL_RESULT( GetAppDependenciesResult_t ) + virtual SteamAPICall_t GetAppDependencies( PublishedFileId_t nPublishedFileID ) = 0; + + // delete the item without prompting the user + CALL_RESULT( DeleteItemResult_t ) + virtual SteamAPICall_t DeleteItem( PublishedFileId_t nPublishedFileID ) = 0; }; #define STEAMUGC_INTERFACE_VERSION "STEAMUGC_INTERFACE_VERSION010" @@ -378,6 +392,7 @@ struct SubmitItemUpdateResult_t enum { k_iCallback = k_iClientUGCCallbacks + 4 }; EResult m_eResult; bool m_bUserNeedsToAcceptWorkshopLegalAgreement; + PublishedFileId_t m_nPublishedFileId; }; @@ -479,6 +494,52 @@ struct RemoveUGCDependencyResult_t }; +//----------------------------------------------------------------------------- +// Purpose: The result of a call to AddAppDependency +//----------------------------------------------------------------------------- +struct AddAppDependencyResult_t +{ + enum { k_iCallback = k_iClientUGCCallbacks + 14 }; + EResult m_eResult; + PublishedFileId_t m_nPublishedFileId; + AppId_t m_nAppID; +}; + +//----------------------------------------------------------------------------- +// Purpose: The result of a call to RemoveAppDependency +//----------------------------------------------------------------------------- +struct RemoveAppDependencyResult_t +{ + enum { k_iCallback = k_iClientUGCCallbacks + 15 }; + EResult m_eResult; + PublishedFileId_t m_nPublishedFileId; + AppId_t m_nAppID; +}; + +//----------------------------------------------------------------------------- +// Purpose: The result of a call to GetAppDependencies. Callback may be called +// multiple times until all app dependencies have been returned. +//----------------------------------------------------------------------------- +struct GetAppDependenciesResult_t +{ + enum { k_iCallback = k_iClientUGCCallbacks + 16 }; + EResult m_eResult; + PublishedFileId_t m_nPublishedFileId; + AppId_t m_rgAppIDs[32]; + uint32 m_nNumAppDependencies; // number returned in this struct + uint32 m_nTotalNumAppDependencies; // total found +}; + +//----------------------------------------------------------------------------- +// Purpose: The result of a call to DeleteItem +//----------------------------------------------------------------------------- +struct DeleteItemResult_t +{ + enum { k_iCallback = k_iClientUGCCallbacks + 17 }; + EResult m_eResult; + PublishedFileId_t m_nPublishedFileId; +}; + #pragma pack( pop ) #endif // ISTEAMUGC_H diff --git a/Generator/steam_sdk/isteamunifiedmessages.h b/Generator/steam_sdk/isteamunifiedmessages.h deleted file mode 100644 index 684f4e8..0000000 --- a/Generator/steam_sdk/isteamunifiedmessages.h +++ /dev/null @@ -1,63 +0,0 @@ -//====== Copyright � 1996-2007, Valve Corporation, All rights reserved. ======= -// -// Purpose: Interface to unified messages client -// -// You should not need to use this interface except if your product is using a language other than C++. -// Contact your Steam Tech contact for more details. -// -//============================================================================= - -#ifndef ISTEAMUNIFIEDMESSAGES_H -#define ISTEAMUNIFIEDMESSAGES_H -#ifdef _WIN32 -#pragma once -#endif - -typedef uint64 ClientUnifiedMessageHandle; - -class ISteamUnifiedMessages -{ -public: - static const ClientUnifiedMessageHandle k_InvalidUnifiedMessageHandle = 0; - - // Sends a service method (in binary serialized form) using the Steam Client. - // Returns a unified message handle (k_InvalidUnifiedMessageHandle if could not send the message). - virtual ClientUnifiedMessageHandle SendMethod( const char *pchServiceMethod, const void *pRequestBuffer, uint32 unRequestBufferSize, uint64 unContext ) = 0; - - // Gets the size of the response and the EResult. Returns false if the response is not ready yet. - virtual bool GetMethodResponseInfo( ClientUnifiedMessageHandle hHandle, uint32 *punResponseSize, EResult *peResult ) = 0; - - // Gets a response in binary serialized form (and optionally release the corresponding allocated memory). - virtual bool GetMethodResponseData( ClientUnifiedMessageHandle hHandle, void *pResponseBuffer, uint32 unResponseBufferSize, bool bAutoRelease ) = 0; - - // Releases the message and its corresponding allocated memory. - virtual bool ReleaseMethod( ClientUnifiedMessageHandle hHandle ) = 0; - - // Sends a service notification (in binary serialized form) using the Steam Client. - // Returns true if the notification was sent successfully. - virtual bool SendNotification( const char *pchServiceNotification, const void *pNotificationBuffer, uint32 unNotificationBufferSize ) = 0; -}; - -#define STEAMUNIFIEDMESSAGES_INTERFACE_VERSION "STEAMUNIFIEDMESSAGES_INTERFACE_VERSION001" - -// callbacks -#if defined( VALVE_CALLBACK_PACK_SMALL ) -#pragma pack( push, 4 ) -#elif defined( VALVE_CALLBACK_PACK_LARGE ) -#pragma pack( push, 8 ) -#else -#error isteamclient.h must be included -#endif - -struct SteamUnifiedMessagesSendMethodResult_t -{ - enum { k_iCallback = k_iClientUnifiedMessagesCallbacks + 1 }; - ClientUnifiedMessageHandle m_hHandle; // The handle returned by SendMethod(). - uint64 m_unContext; // Context provided when calling SendMethod(). - EResult m_eResult; // The result of the method call. - uint32 m_unResponseSize; // The size of the response. -}; - -#pragma pack( pop ) - -#endif // ISTEAMUNIFIEDMESSAGES_H diff --git a/Generator/steam_sdk/steam_api.h b/Generator/steam_sdk/steam_api.h index e3a31ae..010a548 100644 --- a/Generator/steam_sdk/steam_api.h +++ b/Generator/steam_sdk/steam_api.h @@ -23,13 +23,13 @@ #include "isteammusic.h" #include "isteammusicremote.h" #include "isteamhttp.h" -#include "isteamunifiedmessages.h" #include "isteamcontroller.h" #include "isteamugc.h" #include "isteamapplist.h" #include "isteamhtmlsurface.h" #include "isteaminventory.h" #include "isteamvideo.h" +#include "isteamparentalsettings.h" // Steam API export macro @@ -114,7 +114,6 @@ inline ISteamMatchmakingServers *SteamMatchmakingServers(); inline ISteamRemoteStorage *SteamRemoteStorage(); inline ISteamScreenshots *SteamScreenshots(); inline ISteamHTTP *SteamHTTP(); -inline ISteamUnifiedMessages *SteamUnifiedMessages(); inline ISteamController *SteamController(); inline ISteamUGC *SteamUGC(); inline ISteamAppList *SteamAppList(); @@ -123,6 +122,7 @@ inline ISteamMusicRemote *SteamMusicRemote(); inline ISteamHTMLSurface *SteamHTMLSurface(); inline ISteamInventory *SteamInventory(); inline ISteamVideo *SteamVideo(); +inline ISteamParentalSettings *SteamParentalSettings(); #endif // VERSION_SAFE_STEAM_API_INTERFACES @@ -147,7 +147,6 @@ public: ISteamRemoteStorage* SteamRemoteStorage() const { return m_pSteamRemoteStorage; } ISteamScreenshots* SteamScreenshots() const { return m_pSteamScreenshots; } ISteamHTTP* SteamHTTP() const { return m_pSteamHTTP; } - ISteamUnifiedMessages* SteamUnifiedMessages() const { return m_pSteamUnifiedMessages; } ISteamController* SteamController() const { return m_pController; } ISteamUGC* SteamUGC() const { return m_pSteamUGC; } ISteamAppList* SteamAppList() const { return m_pSteamAppList; } @@ -156,6 +155,7 @@ public: ISteamHTMLSurface* SteamHTMLSurface() const { return m_pSteamHTMLSurface; } ISteamInventory* SteamInventory() const { return m_pSteamInventory; } ISteamVideo* SteamVideo() const { return m_pSteamVideo; } + ISteamParentalSettings* SteamParentalSettings() const { return m_pSteamParentalSettings; } // DEPRECATED - there is no benefit to using this over the global accessors private: ISteamClient *m_pSteamClient; @@ -170,7 +170,6 @@ private: ISteamRemoteStorage *m_pSteamRemoteStorage; ISteamScreenshots *m_pSteamScreenshots; ISteamHTTP *m_pSteamHTTP; - ISteamUnifiedMessages *m_pSteamUnifiedMessages; ISteamController *m_pController; ISteamUGC *m_pSteamUGC; ISteamAppList *m_pSteamAppList; @@ -179,6 +178,7 @@ private: ISteamHTMLSurface *m_pSteamHTMLSurface; ISteamInventory *m_pSteamInventory; ISteamVideo *m_pSteamVideo; + ISteamParentalSettings *m_pSteamParentalSettings; }; diff --git a/Generator/steam_sdk/steam_api.json b/Generator/steam_sdk/steam_api.json index 9250a54..02bc811 100644 --- a/Generator/steam_sdk/steam_api.json +++ b/Generator/steam_sdk/steam_api.json @@ -27,6 +27,7 @@ ,{"typedef": "AccountID_t","type": "uint32"} ,{"typedef": "PartnerId_t","type": "uint32"} ,{"typedef": "ManifestId_t","type": "uint64"} +,{"typedef": "SiteId_t","type": "uint64"} ,{"typedef": "HAuthTicket","type": "uint32"} ,{"typedef": "PFNLegacyKeyRegistration","type": "void (*)(const char *, const char *)"} ,{"typedef": "PFNLegacyKeyInstalled","type": "_Bool (*)(void)"} @@ -70,7 +71,6 @@ ,{"typedef": "MusicPlayerWantsPlayingRepeatStatus_t::SteamCallback_t","type": "struct MusicPlayerWantsPlayingRepeatStatus_t"} ,{"typedef": "HTTPRequestHandle","type": "uint32"} ,{"typedef": "HTTPCookieContainerHandle","type": "uint32"} -,{"typedef": "ClientUnifiedMessageHandle","type": "uint64"} ,{"typedef": "ControllerHandle_t","type": "uint64"} ,{"typedef": "ControllerActionSetHandle_t","type": "uint64"} ,{"typedef": "ControllerDigitalActionHandle_t","type": "uint64"} @@ -102,9 +102,11 @@ ,{"typedef": "HTML_ShowToolTip_t::SteamCallback_t","type": "struct HTML_ShowToolTip_t"} ,{"typedef": "HTML_UpdateToolTip_t::SteamCallback_t","type": "struct HTML_UpdateToolTip_t"} ,{"typedef": "HTML_HideToolTip_t::SteamCallback_t","type": "struct HTML_HideToolTip_t"} +,{"typedef": "HTML_BrowserRestarted_t::SteamCallback_t","type": "struct HTML_BrowserRestarted_t"} ,{"typedef": "SteamItemInstanceID_t","type": "uint64"} ,{"typedef": "SteamItemDef_t","type": "int32"} ,{"typedef": "SteamInventoryResult_t","type": "int32"} +,{"typedef": "SteamInventoryUpdateHandle_t","type": "uint64"} ,{"typedef": "BroadcastUploadStart_t::SteamCallback_t","type": "struct BroadcastUploadStart_t"} ,{"typedef": "BroadcastUploadStop_t::SteamCallback_t","type": "struct BroadcastUploadStop_t"} ,{"typedef": "GetVideoURLResult_t::SteamCallback_t","type": "struct GetVideoURLResult_t"} @@ -229,6 +231,10 @@ ,{"name": "k_EResultGSLTExpired","value": "106"} ,{"name": "k_EResultInsufficientFunds","value": "107"} ,{"name": "k_EResultTooManyPending","value": "108"} + ,{"name": "k_EResultNoSiteLicensesFound","value": "109"} + ,{"name": "k_EResultWGNetworkSendExceeded","value": "110"} + ,{"name": "k_EResultAccountNotFriends","value": "111"} + ,{"name": "k_EResultLimitedUserAccount","value": "112"} ]} , {"enumname": "EVoiceResult","values": [ {"name": "k_EVoiceResultOK","value": "0"} @@ -345,6 +351,7 @@ ,{"name": "k_EAppType_Plugin","value": "4096"} ,{"name": "k_EAppType_Music","value": "8192"} ,{"name": "k_EAppType_Series","value": "16384"} + ,{"name": "k_EAppType_Comic","value": "32768"} ,{"name": "k_EAppType_Shortcut","value": "1073741824"} ,{"name": "k_EAppType_DepotOnly","value": "-2147483648"} ]} @@ -383,6 +390,7 @@ ,{"name": "k_EChatRoomEnterResponseCommunityBan","value": "9"} ,{"name": "k_EChatRoomEnterResponseMemberBlockedYou","value": "10"} ,{"name": "k_EChatRoomEnterResponseYouBlockedMember","value": "11"} + ,{"name": "k_EChatRoomEnterResponseRatelimitExceeded","value": "15"} ]} , {"enumname": "EChatSteamIDInstanceFlags","values": [ {"name": "k_EChatAccountInstanceMask","value": "4095"} @@ -450,6 +458,18 @@ ,{"name": "k_eEVRHMDType_Oculus_DK2","value": "22"} ,{"name": "k_eEVRHMDType_Oculus_Rift","value": "23"} ,{"name": "k_eEVRHMDType_Oculus_Unknown","value": "40"} + ,{"name": "k_eEVRHMDType_Acer_Unknown","value": "50"} + ,{"name": "k_eEVRHMDType_Acer_WindowsMR","value": "51"} + ,{"name": "k_eEVRHMDType_Dell_Unknown","value": "60"} + ,{"name": "k_eEVRHMDType_Dell_Visor","value": "61"} + ,{"name": "k_eEVRHMDType_Lenovo_Unknown","value": "70"} + ,{"name": "k_eEVRHMDType_Lenovo_Explorer","value": "71"} + ,{"name": "k_eEVRHMDType_HP_Unknown","value": "80"} + ,{"name": "k_eEVRHMDType_HP_WindowsMR","value": "81"} + ,{"name": "k_eEVRHMDType_Samsung_Unknown","value": "90"} + ,{"name": "k_eEVRHMDType_Samsung_Odyssey","value": "91"} + ,{"name": "k_eEVRHMDType_Unannounced_Unknown","value": "100"} + ,{"name": "k_eEVRHMDType_Unannounced_WindowsMR","value": "101"} ]} , {"enumname": "CGameID::EGameIDType","values": [ {"name": "k_EGameIDTypeApp","value": "0"} @@ -791,7 +811,9 @@ ,{"name": "k_EControllerSource_CenterTrackpad","value": "9"} ,{"name": "k_EControllerSource_RightJoystick","value": "10"} ,{"name": "k_EControllerSource_DPad","value": "11"} - ,{"name": "k_EControllerSource_Count","value": "12"} + ,{"name": "k_EControllerSource_Key","value": "12"} + ,{"name": "k_EControllerSource_Mouse","value": "13"} + ,{"name": "k_EControllerSource_Count","value": "14"} ]} , {"enumname": "EControllerSourceMode","values": [ {"name": "k_EControllerSourceMode_None","value": "0"} @@ -1015,6 +1037,14 @@ {"name": "k_ESteamControllerLEDFlag_SetColor","value": "0"} ,{"name": "k_ESteamControllerLEDFlag_RestoreUserDefault","value": "1"} ]} +, {"enumname": "ESteamInputType","values": [ + {"name": "k_ESteamInputType_Unknown","value": "0"} + ,{"name": "k_ESteamInputType_SteamController","value": "1"} + ,{"name": "k_ESteamInputType_XBox360Controller","value": "2"} + ,{"name": "k_ESteamInputType_XBoxOneController","value": "3"} + ,{"name": "k_ESteamInputType_GenericXInput","value": "4"} + ,{"name": "k_ESteamInputType_PS4Controller","value": "5"} +]} , {"enumname": "EUGCMatchingUGCType","values": [ {"name": "k_EUGCMatchingUGCType_Items","value": "0"} ,{"name": "k_EUGCMatchingUGCType_Items_Mtx","value": "1"} @@ -1172,6 +1202,22 @@ ,{"name": "k_ESteamItemRemoved","value": "256"} ,{"name": "k_ESteamItemConsumed","value": "512"} ]} +, {"enumname": "EParentalFeature","values": [ + {"name": "k_EFeatureInvalid","value": "0"} + ,{"name": "k_EFeatureStore","value": "1"} + ,{"name": "k_EFeatureCommunity","value": "2"} + ,{"name": "k_EFeatureProfile","value": "3"} + ,{"name": "k_EFeatureFriends","value": "4"} + ,{"name": "k_EFeatureNews","value": "5"} + ,{"name": "k_EFeatureTrading","value": "6"} + ,{"name": "k_EFeatureSettings","value": "7"} + ,{"name": "k_EFeatureConsole","value": "8"} + ,{"name": "k_EFeatureBrowser","value": "9"} + ,{"name": "k_EFeatureParentalSetup","value": "10"} + ,{"name": "k_EFeatureLibrary","value": "11"} + ,{"name": "k_EFeatureTest","value": "12"} + ,{"name": "k_EFeatureMax","value": "13"} +]} ], "consts":[{ "constname": "k_iSteamUserCallbacks","consttype": "int", "constval": "100"} @@ -1269,6 +1315,12 @@ "constname": "k_iClientInventoryCallbacks","consttype": "int", "constval": "4700"} ,{ "constname": "k_iClientBluetoothManagerCallbacks","consttype": "int", "constval": "4800"} +,{ + "constname": "k_iClientSharedConnectionCallbacks","consttype": "int", "constval": "4900"} +,{ + "constname": "k_ISteamParentalSettingsCallbacks","consttype": "int", "constval": "5000"} +,{ + "constname": "k_iClientShaderCallbacks","consttype": "int", "constval": "5100"} ,{ "constname": "k_cchPersonaNameMax","consttype": "int", "constval": "128"} ,{ @@ -1285,8 +1337,6 @@ "constname": "k_cchLeaderboardNameMax","consttype": "int", "constval": "128"} ,{ "constname": "k_cLeaderboardDetailsMax","consttype": "int", "constval": "64"} -,{ - "constname": "k_InvalidUnifiedMessageHandle","consttype": "const ClientUnifiedMessageHandle", "constval": "0"} ,{ "constname": "k_SteamItemInstanceIDInvalid","consttype": "const SteamItemInstanceID_t", "constval": "18446744073709551615"} ,{ @@ -1769,11 +1819,6 @@ { "fieldname": "m_ulContextValue", "fieldtype": "uint64"}, { "fieldname": "m_cOffset", "fieldtype": "uint32"}, { "fieldname": "m_cBytesReceived", "fieldtype": "uint32"}]} -,{"struct": "SteamUnifiedMessagesSendMethodResult_t","fields": [ -{ "fieldname": "m_hHandle", "fieldtype": "ClientUnifiedMessageHandle"}, -{ "fieldname": "m_unContext", "fieldtype": "uint64"}, -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_unResponseSize", "fieldtype": "uint32"}]} ,{"struct": "ControllerAnalogActionData_t","fields": [ { "fieldname": "eMode", "fieldtype": "enum EControllerSourceMode"}, { "fieldname": "x", "fieldtype": "float"}, @@ -1835,7 +1880,8 @@ { "fieldname": "m_bUserNeedsToAcceptWorkshopLegalAgreement", "fieldtype": "_Bool"}]} ,{"struct": "SubmitItemUpdateResult_t","fields": [ { "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_bUserNeedsToAcceptWorkshopLegalAgreement", "fieldtype": "_Bool"}]} +{ "fieldname": "m_bUserNeedsToAcceptWorkshopLegalAgreement", "fieldtype": "_Bool"}, +{ "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}]} ,{"struct": "DownloadItemResult_t","fields": [ { "fieldname": "m_unAppID", "fieldtype": "AppId_t"}, { "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}, @@ -1866,6 +1912,23 @@ { "fieldname": "m_eResult", "fieldtype": "enum EResult"}, { "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}, { "fieldname": "m_nChildPublishedFileId", "fieldtype": "PublishedFileId_t"}]} +,{"struct": "AddAppDependencyResult_t","fields": [ +{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, +{ "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}, +{ "fieldname": "m_nAppID", "fieldtype": "AppId_t"}]} +,{"struct": "RemoveAppDependencyResult_t","fields": [ +{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, +{ "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}, +{ "fieldname": "m_nAppID", "fieldtype": "AppId_t"}]} +,{"struct": "GetAppDependenciesResult_t","fields": [ +{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, +{ "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}, +{ "fieldname": "m_rgAppIDs", "fieldtype": "AppId_t [32]"}, +{ "fieldname": "m_nNumAppDependencies", "fieldtype": "uint32"}, +{ "fieldname": "m_nTotalNumAppDependencies", "fieldtype": "uint32"}]} +,{"struct": "DeleteItemResult_t","fields": [ +{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, +{ "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}]} ,{"struct": "SteamAppInstalled_t","fields": [ { "fieldname": "m_nAppID", "fieldtype": "AppId_t"}]} ,{"struct": "SteamAppUninstalled_t","fields": [ @@ -1971,6 +2034,9 @@ { "fieldname": "pchMsg", "fieldtype": "const char *"}]} ,{"struct": "HTML_HideToolTip_t","fields": [ { "fieldname": "unBrowserHandle", "fieldtype": "HHTMLBrowser"}]} +,{"struct": "HTML_BrowserRestarted_t","fields": [ +{ "fieldname": "unBrowserHandle", "fieldtype": "HHTMLBrowser"}, +{ "fieldname": "unOldBrowserHandle", "fieldtype": "HHTMLBrowser"}]} ,{"struct": "SteamItemDetails_t","fields": [ { "fieldname": "m_itemId", "fieldtype": "SteamItemInstanceID_t"}, { "fieldname": "m_iDefinition", "fieldtype": "SteamItemDef_t"}, @@ -1986,6 +2052,13 @@ { "fieldname": "m_steamID", "fieldtype": "class CSteamID"}, { "fieldname": "m_numEligiblePromoItemDefs", "fieldtype": "int"}, { "fieldname": "m_bCachedData", "fieldtype": "_Bool"}]} +,{"struct": "SteamInventoryStartPurchaseResult_t","fields": [ +{ "fieldname": "m_result", "fieldtype": "enum EResult"}, +{ "fieldname": "m_ulOrderID", "fieldtype": "uint64"}, +{ "fieldname": "m_ulTransID", "fieldtype": "uint64"}]} +,{"struct": "SteamInventoryRequestPricesResult_t","fields": [ +{ "fieldname": "m_result", "fieldtype": "enum EResult"}, +{ "fieldname": "m_rgchCurrency", "fieldtype": "char [4]"}]} ,{"struct": "BroadcastUploadStop_t","fields": [ { "fieldname": "m_eResult", "fieldtype": "enum EBroadcastUploadResult"}]} ,{"struct": "GetVideoURLResult_t","fields": [ @@ -2008,7 +2081,6 @@ { "fieldname": "m_pSteamRemoteStorage", "fieldtype": "class ISteamRemoteStorage *"}, { "fieldname": "m_pSteamScreenshots", "fieldtype": "class ISteamScreenshots *"}, { "fieldname": "m_pSteamHTTP", "fieldtype": "class ISteamHTTP *"}, -{ "fieldname": "m_pSteamUnifiedMessages", "fieldtype": "class ISteamUnifiedMessages *"}, { "fieldname": "m_pController", "fieldtype": "class ISteamController *"}, { "fieldname": "m_pSteamUGC", "fieldtype": "class ISteamUGC *"}, { "fieldname": "m_pSteamAppList", "fieldtype": "class ISteamAppList *"}, @@ -2016,7 +2088,8 @@ { "fieldname": "m_pSteamMusicRemote", "fieldtype": "class ISteamMusicRemote *"}, { "fieldname": "m_pSteamHTMLSurface", "fieldtype": "class ISteamHTMLSurface *"}, { "fieldname": "m_pSteamInventory", "fieldtype": "class ISteamInventory *"}, -{ "fieldname": "m_pSteamVideo", "fieldtype": "class ISteamVideo *"}]} +{ "fieldname": "m_pSteamVideo", "fieldtype": "class ISteamVideo *"}, +{ "fieldname": "m_pSteamParentalSettings", "fieldtype": "class ISteamParentalSettings *"}]} ,{"struct": "CCallbackBase","fields": [ { "fieldname": "m_nCallbackFlags", "fieldtype": "uint8"}, { "fieldname": "m_iCallback", "fieldtype": "int"}]} @@ -2283,16 +2356,6 @@ { "paramname": "pchVersion" ,"paramtype": "const char *"} ] } -,{ - "classname": "ISteamClient", - "methodname": "GetISteamUnifiedMessages", - "returntype": "class ISteamUnifiedMessages *", - "params": [ -{ "paramname": "hSteamuser" ,"paramtype": "HSteamUser"}, -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"}, -{ "paramname": "pchVersion" ,"paramtype": "const char *"} - ] -} ,{ "classname": "ISteamClient", "methodname": "GetISteamController", @@ -2373,6 +2436,16 @@ { "paramname": "pchVersion" ,"paramtype": "const char *"} ] } +,{ + "classname": "ISteamClient", + "methodname": "GetISteamParentalSettings", + "returntype": "class ISteamParentalSettings *", + "params": [ +{ "paramname": "hSteamuser" ,"paramtype": "HSteamUser"}, +{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"}, +{ "paramname": "pchVersion" ,"paramtype": "const char *"} + ] +} ,{ "classname": "ISteamUser", "methodname": "GetHSteamUser", @@ -3177,6 +3250,22 @@ { "paramname": "unStartIndex" ,"paramtype": "uint32"} ] } +,{ + "classname": "ISteamFriends", + "methodname": "IsClanPublic", + "returntype": "bool", + "params": [ +{ "paramname": "steamIDClan" ,"paramtype": "class CSteamID"} + ] +} +,{ + "classname": "ISteamFriends", + "methodname": "IsClanOfficialGameGroup", + "returntype": "bool", + "params": [ +{ "paramname": "steamIDClan" ,"paramtype": "class CSteamID"} + ] +} ,{ "classname": "ISteamUtils", "methodname": "GetSecondsSinceAppActive", @@ -5829,56 +5918,6 @@ { "paramname": "pbWasTimedOut" ,"paramtype": "bool *"} ] } -,{ - "classname": "ISteamUnifiedMessages", - "methodname": "SendMethod", - "returntype": "ClientUnifiedMessageHandle", - "params": [ -{ "paramname": "pchServiceMethod" ,"paramtype": "const char *"}, -{ "paramname": "pRequestBuffer" ,"paramtype": "const void *"}, -{ "paramname": "unRequestBufferSize" ,"paramtype": "uint32"}, -{ "paramname": "unContext" ,"paramtype": "uint64"} - ] -} -,{ - "classname": "ISteamUnifiedMessages", - "methodname": "GetMethodResponseInfo", - "returntype": "bool", - "params": [ -{ "paramname": "hHandle" ,"paramtype": "ClientUnifiedMessageHandle"}, -{ "paramname": "punResponseSize" ,"paramtype": "uint32 *"}, -{ "paramname": "peResult" ,"paramtype": "EResult *"} - ] -} -,{ - "classname": "ISteamUnifiedMessages", - "methodname": "GetMethodResponseData", - "returntype": "bool", - "params": [ -{ "paramname": "hHandle" ,"paramtype": "ClientUnifiedMessageHandle"}, -{ "paramname": "pResponseBuffer" ,"paramtype": "void *"}, -{ "paramname": "unResponseBufferSize" ,"paramtype": "uint32"}, -{ "paramname": "bAutoRelease" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamUnifiedMessages", - "methodname": "ReleaseMethod", - "returntype": "bool", - "params": [ -{ "paramname": "hHandle" ,"paramtype": "ClientUnifiedMessageHandle"} - ] -} -,{ - "classname": "ISteamUnifiedMessages", - "methodname": "SendNotification", - "returntype": "bool", - "params": [ -{ "paramname": "pchServiceNotification" ,"paramtype": "const char *"}, -{ "paramname": "pNotificationBuffer" ,"paramtype": "const void *"}, -{ "paramname": "unNotificationBufferSize" ,"paramtype": "uint32"} - ] -} ,{ "classname": "ISteamController", "methodname": "Init", @@ -5935,6 +5974,41 @@ { "paramname": "controllerHandle" ,"paramtype": "ControllerHandle_t"} ] } +,{ + "classname": "ISteamController", + "methodname": "ActivateActionSetLayer", + "returntype": "void", + "params": [ +{ "paramname": "controllerHandle" ,"paramtype": "ControllerHandle_t"}, +{ "paramname": "actionSetLayerHandle" ,"paramtype": "ControllerActionSetHandle_t"} + ] +} +,{ + "classname": "ISteamController", + "methodname": "DeactivateActionSetLayer", + "returntype": "void", + "params": [ +{ "paramname": "controllerHandle" ,"paramtype": "ControllerHandle_t"}, +{ "paramname": "actionSetLayerHandle" ,"paramtype": "ControllerActionSetHandle_t"} + ] +} +,{ + "classname": "ISteamController", + "methodname": "DeactivateAllActionSetLayers", + "returntype": "void", + "params": [ +{ "paramname": "controllerHandle" ,"paramtype": "ControllerHandle_t"} + ] +} +,{ + "classname": "ISteamController", + "methodname": "GetActiveActionSetLayers", + "returntype": "int", + "params": [ +{ "paramname": "controllerHandle" ,"paramtype": "ControllerHandle_t"}, +{ "paramname": "handlesOut" ,"paramtype": "ControllerActionSetHandle_t *"} + ] +} ,{ "classname": "ISteamController", "methodname": "GetDigitalActionHandle", @@ -6109,6 +6183,14 @@ { "paramname": "eOrigin" ,"paramtype": "EControllerActionOrigin"} ] } +,{ + "classname": "ISteamController", + "methodname": "GetInputTypeForHandle", + "returntype": "ESteamInputType", + "params": [ +{ "paramname": "controllerHandle" ,"paramtype": "ControllerHandle_t"} + ] +} ,{ "classname": "ISteamUGC", "methodname": "CreateQueryUserUGCRequest", @@ -6762,6 +6844,40 @@ { "paramname": "nChildPublishedFileID" ,"paramtype": "PublishedFileId_t"} ] } +,{ + "classname": "ISteamUGC", + "methodname": "AddAppDependency", "callresult": "AddAppDependencyResult_t", + "returntype": "SteamAPICall_t", + "params": [ +{ "paramname": "nPublishedFileID" ,"paramtype": "PublishedFileId_t"}, +{ "paramname": "nAppID" ,"paramtype": "AppId_t"} + ] +} +,{ + "classname": "ISteamUGC", + "methodname": "RemoveAppDependency", "callresult": "RemoveAppDependencyResult_t", + "returntype": "SteamAPICall_t", + "params": [ +{ "paramname": "nPublishedFileID" ,"paramtype": "PublishedFileId_t"}, +{ "paramname": "nAppID" ,"paramtype": "AppId_t"} + ] +} +,{ + "classname": "ISteamUGC", + "methodname": "GetAppDependencies", "callresult": "GetAppDependenciesResult_t", + "returntype": "SteamAPICall_t", + "params": [ +{ "paramname": "nPublishedFileID" ,"paramtype": "PublishedFileId_t"} + ] +} +,{ + "classname": "ISteamUGC", + "methodname": "DeleteItem", "callresult": "DeleteItemResult_t", + "returntype": "SteamAPICall_t", + "params": [ +{ "paramname": "nPublishedFileID" ,"paramtype": "PublishedFileId_t"} + ] +} ,{ "classname": "ISteamAppList", "methodname": "GetNumInstalledApps", @@ -7097,6 +7213,15 @@ { "paramname": "bBackgroundMode" ,"paramtype": "bool"} ] } +,{ + "classname": "ISteamHTMLSurface", + "methodname": "SetDPIScalingFactor", + "returntype": "void", + "params": [ +{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"}, +{ "paramname": "flDPIScaling" ,"paramtype": "float"} + ] +} ,{ "classname": "ISteamHTMLSurface", "methodname": "AllowStartRequest", @@ -7354,6 +7479,113 @@ { "paramname": "punItemDefIDsArraySize" ,"desc": "Size of array is passed in and actual size used is returned in this param" ,"paramtype": "uint32 *"} ] } +,{ + "classname": "ISteamInventory", + "methodname": "StartPurchase", "callresult": "SteamInventoryStartPurchaseResult_t", + "returntype": "SteamAPICall_t", + "params": [ +{ "paramname": "pArrayItemDefs" ,"array_count": "unArrayLength" ,"paramtype": "const SteamItemDef_t *"}, +{ "paramname": "punArrayQuantity" ,"array_count": "unArrayLength" ,"paramtype": "const uint32 *"}, +{ "paramname": "unArrayLength" ,"paramtype": "uint32"} + ] +} +,{ + "classname": "ISteamInventory", + "methodname": "RequestPrices", "callresult": "SteamInventoryRequestPricesResult_t", + "returntype": "SteamAPICall_t" +} +,{ + "classname": "ISteamInventory", + "methodname": "GetNumItemsWithPrices", + "returntype": "uint32" +} +,{ + "classname": "ISteamInventory", + "methodname": "GetItemsWithPrices", + "returntype": "bool", + "params": [ +{ "paramname": "pArrayItemDefs" ,"out_array_count": "pArrayItemDefs" ,"desc": "Items with prices" ,"paramtype": "SteamItemDef_t *"}, +{ "paramname": "pPrices" ,"out_array_count": "pPrices" ,"desc": "List of prices for the given item defs" ,"paramtype": "uint64 *"}, +{ "paramname": "unArrayLength" ,"paramtype": "uint32"} + ] +} +,{ + "classname": "ISteamInventory", + "methodname": "GetItemPrice", + "returntype": "bool", + "params": [ +{ "paramname": "iDefinition" ,"paramtype": "SteamItemDef_t"}, +{ "paramname": "pPrice" ,"paramtype": "uint64 *"} + ] +} +,{ + "classname": "ISteamInventory", + "methodname": "StartUpdateProperties", + "returntype": "SteamInventoryUpdateHandle_t" +} +,{ + "classname": "ISteamInventory", + "methodname": "RemoveProperty", + "returntype": "bool", + "params": [ +{ "paramname": "handle" ,"paramtype": "SteamInventoryUpdateHandle_t"}, +{ "paramname": "nItemID" ,"paramtype": "SteamItemInstanceID_t"}, +{ "paramname": "pchPropertyName" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "ISteamInventory", + "methodname": "SetProperty", + "returntype": "bool", + "params": [ +{ "paramname": "handle" ,"paramtype": "SteamInventoryUpdateHandle_t"}, +{ "paramname": "nItemID" ,"paramtype": "SteamItemInstanceID_t"}, +{ "paramname": "pchPropertyName" ,"paramtype": "const char *"}, +{ "paramname": "pchPropertyValue" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "ISteamInventory", + "methodname": "SetProperty", + "returntype": "bool", + "params": [ +{ "paramname": "handle" ,"paramtype": "SteamInventoryUpdateHandle_t"}, +{ "paramname": "nItemID" ,"paramtype": "SteamItemInstanceID_t"}, +{ "paramname": "pchPropertyName" ,"paramtype": "const char *"}, +{ "paramname": "bValue" ,"paramtype": "bool"} + ] +} +,{ + "classname": "ISteamInventory", + "methodname": "SetProperty", + "returntype": "bool", + "params": [ +{ "paramname": "handle" ,"paramtype": "SteamInventoryUpdateHandle_t"}, +{ "paramname": "nItemID" ,"paramtype": "SteamItemInstanceID_t"}, +{ "paramname": "pchPropertyName" ,"paramtype": "const char *"}, +{ "paramname": "nValue" ,"paramtype": "int64"} + ] +} +,{ + "classname": "ISteamInventory", + "methodname": "SetProperty", + "returntype": "bool", + "params": [ +{ "paramname": "handle" ,"paramtype": "SteamInventoryUpdateHandle_t"}, +{ "paramname": "nItemID" ,"paramtype": "SteamItemInstanceID_t"}, +{ "paramname": "pchPropertyName" ,"paramtype": "const char *"}, +{ "paramname": "flValue" ,"paramtype": "float"} + ] +} +,{ + "classname": "ISteamInventory", + "methodname": "SubmitUpdateProperties", + "returntype": "bool", + "params": [ +{ "paramname": "handle" ,"paramtype": "SteamInventoryUpdateHandle_t"}, +{ "paramname": "pResultHandle" ,"paramtype": "SteamInventoryResult_t *"} + ] +} ,{ "classname": "ISteamVideo", "methodname": "GetVideoURL", @@ -7388,6 +7620,48 @@ { "paramname": "pnBufferSize" ,"paramtype": "int32 *"} ] } +,{ + "classname": "ISteamParentalSettings", + "methodname": "BIsParentalLockEnabled", + "returntype": "bool" +} +,{ + "classname": "ISteamParentalSettings", + "methodname": "BIsParentalLockLocked", + "returntype": "bool" +} +,{ + "classname": "ISteamParentalSettings", + "methodname": "BIsAppBlocked", + "returntype": "bool", + "params": [ +{ "paramname": "nAppID" ,"paramtype": "AppId_t"} + ] +} +,{ + "classname": "ISteamParentalSettings", + "methodname": "BIsAppInBlockList", + "returntype": "bool", + "params": [ +{ "paramname": "nAppID" ,"paramtype": "AppId_t"} + ] +} +,{ + "classname": "ISteamParentalSettings", + "methodname": "BIsFeatureBlocked", + "returntype": "bool", + "params": [ +{ "paramname": "eFeature" ,"paramtype": "EParentalFeature"} + ] +} +,{ + "classname": "ISteamParentalSettings", + "methodname": "BIsFeatureInBlockList", + "returntype": "bool", + "params": [ +{ "paramname": "eFeature" ,"paramtype": "EParentalFeature"} + ] +} ,{ "classname": "ISteamGameServer", "methodname": "InitGameServer", diff --git a/Generator/steam_sdk/steam_api_flat.h b/Generator/steam_sdk/steam_api_flat.h index 7d35cfe..45ba7c3 100644 --- a/Generator/steam_sdk/steam_api_flat.h +++ b/Generator/steam_sdk/steam_api_flat.h @@ -41,6 +41,7 @@ typedef uint64 SteamAPICall_t; typedef uint32 AccountID_t; typedef uint32 PartnerId_t; typedef uint64 ManifestId_t; +typedef uint64 SiteId_t; typedef uint32 HAuthTicket; typedef void * BREAKPAD_HANDLE; typedef char compile_time_assert_type[1]; @@ -61,7 +62,6 @@ typedef uint32 SNetListenSocket_t; typedef uint32 ScreenshotHandle; typedef uint32 HTTPRequestHandle; typedef uint32 HTTPCookieContainerHandle; -typedef uint64 ClientUnifiedMessageHandle; typedef uint64 ControllerHandle_t; typedef uint64 ControllerActionSetHandle_t; typedef uint64 ControllerDigitalActionHandle_t; @@ -72,6 +72,7 @@ typedef uint32 HHTMLBrowser; typedef uint64 SteamItemInstanceID_t; typedef int32 SteamItemDef_t; typedef int32 SteamInventoryResult_t; +typedef uint64 SteamInventoryUpdateHandle_t; // OpenVR Constants int const_k_iSteamUserCallbacks = 100; int const_k_iSteamGameServerCallbacks = 200; @@ -121,6 +122,9 @@ int const_k_iSteamHTMLSurfaceCallbacks = 4500; int const_k_iClientVideoCallbacks = 4600; int const_k_iClientInventoryCallbacks = 4700; int const_k_iClientBluetoothManagerCallbacks = 4800; +int const_k_iClientSharedConnectionCallbacks = 4900; +int const_k_ISteamParentalSettingsCallbacks = 5000; +int const_k_iClientShaderCallbacks = 5100; int const_k_cchPersonaNameMax = 128; int const_k_cwchPersonaNameMax = 32; int const_k_cchMaxRichPresenceKeys = 20; @@ -129,7 +133,6 @@ int const_k_cchMaxRichPresenceValueLength = 256; int const_k_cchStatNameMax = 128; int const_k_cchLeaderboardNameMax = 128; int const_k_cLeaderboardDetailsMax = 64; -unsigned long const_k_InvalidUnifiedMessageHandle = 0; unsigned long const_k_SteamItemInstanceIDInvalid = 0xffffffff; int const_k_SteamInventoryResultInvalid = -1; @@ -163,7 +166,6 @@ S_API uint32 SteamAPI_ISteamClient_GetIPCCallCount(intptr_t instancePtr); S_API void SteamAPI_ISteamClient_SetWarningMessageHook(intptr_t instancePtr, SteamAPIWarningMessageHook_t pFunction); S_API bool SteamAPI_ISteamClient_BShutdownIfAllPipesClosed(intptr_t instancePtr); S_API class ISteamHTTP * SteamAPI_ISteamClient_GetISteamHTTP(intptr_t instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion); -S_API class ISteamUnifiedMessages * SteamAPI_ISteamClient_GetISteamUnifiedMessages(intptr_t instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion); S_API class ISteamController * SteamAPI_ISteamClient_GetISteamController(intptr_t instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion); S_API class ISteamUGC * SteamAPI_ISteamClient_GetISteamUGC(intptr_t instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion); S_API class ISteamAppList * SteamAPI_ISteamClient_GetISteamAppList(intptr_t instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion); @@ -172,6 +174,7 @@ S_API class ISteamMusicRemote * SteamAPI_ISteamClient_GetISteamMusicRemote(intpt S_API class ISteamHTMLSurface * SteamAPI_ISteamClient_GetISteamHTMLSurface(intptr_t instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion); S_API class ISteamInventory * SteamAPI_ISteamClient_GetISteamInventory(intptr_t instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion); S_API class ISteamVideo * SteamAPI_ISteamClient_GetISteamVideo(intptr_t instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion); +S_API class ISteamParentalSettings * SteamAPI_ISteamClient_GetISteamParentalSettings(intptr_t instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion); S_API HSteamUser SteamAPI_ISteamUser_GetHSteamUser(intptr_t instancePtr); S_API bool SteamAPI_ISteamUser_BLoggedOn(intptr_t instancePtr); S_API uint64 SteamAPI_ISteamUser_GetSteamID(intptr_t instancePtr); @@ -271,6 +274,8 @@ S_API int SteamAPI_ISteamFriends_GetFriendMessage(intptr_t instancePtr, class CS S_API SteamAPICall_t SteamAPI_ISteamFriends_GetFollowerCount(intptr_t instancePtr, class CSteamID steamID); S_API SteamAPICall_t SteamAPI_ISteamFriends_IsFollowing(intptr_t instancePtr, class CSteamID steamID); S_API SteamAPICall_t SteamAPI_ISteamFriends_EnumerateFollowingList(intptr_t instancePtr, uint32 unStartIndex); +S_API bool SteamAPI_ISteamFriends_IsClanPublic(intptr_t instancePtr, class CSteamID steamIDClan); +S_API bool SteamAPI_ISteamFriends_IsClanOfficialGameGroup(intptr_t instancePtr, class CSteamID steamIDClan); S_API uint32 SteamAPI_ISteamUtils_GetSecondsSinceAppActive(intptr_t instancePtr); S_API uint32 SteamAPI_ISteamUtils_GetSecondsSinceComputerActive(intptr_t instancePtr); S_API EUniverse SteamAPI_ISteamUtils_GetConnectedUniverse(intptr_t instancePtr); @@ -587,11 +592,6 @@ S_API bool SteamAPI_ISteamHTTP_SetHTTPRequestUserAgentInfo(intptr_t instancePtr, S_API bool SteamAPI_ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate(intptr_t instancePtr, HTTPRequestHandle hRequest, bool bRequireVerifiedCertificate); S_API bool SteamAPI_ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS(intptr_t instancePtr, HTTPRequestHandle hRequest, uint32 unMilliseconds); S_API bool SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut(intptr_t instancePtr, HTTPRequestHandle hRequest, bool * pbWasTimedOut); -S_API ClientUnifiedMessageHandle SteamAPI_ISteamUnifiedMessages_SendMethod(intptr_t instancePtr, const char * pchServiceMethod, const void * pRequestBuffer, uint32 unRequestBufferSize, uint64 unContext); -S_API bool SteamAPI_ISteamUnifiedMessages_GetMethodResponseInfo(intptr_t instancePtr, ClientUnifiedMessageHandle hHandle, uint32 * punResponseSize, EResult * peResult); -S_API bool SteamAPI_ISteamUnifiedMessages_GetMethodResponseData(intptr_t instancePtr, ClientUnifiedMessageHandle hHandle, void * pResponseBuffer, uint32 unResponseBufferSize, bool bAutoRelease); -S_API bool SteamAPI_ISteamUnifiedMessages_ReleaseMethod(intptr_t instancePtr, ClientUnifiedMessageHandle hHandle); -S_API bool SteamAPI_ISteamUnifiedMessages_SendNotification(intptr_t instancePtr, const char * pchServiceNotification, const void * pNotificationBuffer, uint32 unNotificationBufferSize); S_API bool SteamAPI_ISteamController_Init(intptr_t instancePtr); S_API bool SteamAPI_ISteamController_Shutdown(intptr_t instancePtr); S_API void SteamAPI_ISteamController_RunFrame(intptr_t instancePtr); @@ -600,6 +600,10 @@ S_API bool SteamAPI_ISteamController_ShowBindingPanel(intptr_t instancePtr, Cont S_API ControllerActionSetHandle_t SteamAPI_ISteamController_GetActionSetHandle(intptr_t instancePtr, const char * pszActionSetName); S_API void SteamAPI_ISteamController_ActivateActionSet(intptr_t instancePtr, ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle); S_API ControllerActionSetHandle_t SteamAPI_ISteamController_GetCurrentActionSet(intptr_t instancePtr, ControllerHandle_t controllerHandle); +S_API void SteamAPI_ISteamController_ActivateActionSetLayer(intptr_t instancePtr, ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetLayerHandle); +S_API void SteamAPI_ISteamController_DeactivateActionSetLayer(intptr_t instancePtr, ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetLayerHandle); +S_API void SteamAPI_ISteamController_DeactivateAllActionSetLayers(intptr_t instancePtr, ControllerHandle_t controllerHandle); +S_API int SteamAPI_ISteamController_GetActiveActionSetLayers(intptr_t instancePtr, ControllerHandle_t controllerHandle, ControllerActionSetHandle_t * handlesOut); S_API ControllerDigitalActionHandle_t SteamAPI_ISteamController_GetDigitalActionHandle(intptr_t instancePtr, const char * pszActionName); S_API struct ControllerDigitalActionData_t SteamAPI_ISteamController_GetDigitalActionData(intptr_t instancePtr, ControllerHandle_t controllerHandle, ControllerDigitalActionHandle_t digitalActionHandle); S_API int SteamAPI_ISteamController_GetDigitalActionOrigins(intptr_t instancePtr, ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle, ControllerDigitalActionHandle_t digitalActionHandle, EControllerActionOrigin * originsOut); @@ -618,6 +622,7 @@ S_API bool SteamAPI_ISteamController_ShowDigitalActionOrigins(intptr_t instanceP S_API bool SteamAPI_ISteamController_ShowAnalogActionOrigins(intptr_t instancePtr, ControllerHandle_t controllerHandle, ControllerAnalogActionHandle_t analogActionHandle, float flScale, float flXPosition, float flYPosition); S_API const char * SteamAPI_ISteamController_GetStringForActionOrigin(intptr_t instancePtr, EControllerActionOrigin eOrigin); S_API const char * SteamAPI_ISteamController_GetGlyphForActionOrigin(intptr_t instancePtr, EControllerActionOrigin eOrigin); +S_API ESteamInputType SteamAPI_ISteamController_GetInputTypeForHandle(intptr_t instancePtr, ControllerHandle_t controllerHandle); S_API UGCQueryHandle_t SteamAPI_ISteamUGC_CreateQueryUserUGCRequest(intptr_t instancePtr, AccountID_t unAccountID, EUserUGCList eListType, EUGCMatchingUGCType eMatchingUGCType, EUserUGCListSortOrder eSortOrder, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint32 unPage); S_API UGCQueryHandle_t SteamAPI_ISteamUGC_CreateQueryAllUGCRequest(intptr_t instancePtr, EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint32 unPage); S_API UGCQueryHandle_t SteamAPI_ISteamUGC_CreateQueryUGCDetailsRequest(intptr_t instancePtr, PublishedFileId_t * pvecPublishedFileID, uint32 unNumPublishedFileIDs); @@ -688,6 +693,10 @@ S_API SteamAPICall_t SteamAPI_ISteamUGC_StopPlaytimeTracking(intptr_t instancePt S_API SteamAPICall_t SteamAPI_ISteamUGC_StopPlaytimeTrackingForAllItems(intptr_t instancePtr); S_API SteamAPICall_t SteamAPI_ISteamUGC_AddDependency(intptr_t instancePtr, PublishedFileId_t nParentPublishedFileID, PublishedFileId_t nChildPublishedFileID); S_API SteamAPICall_t SteamAPI_ISteamUGC_RemoveDependency(intptr_t instancePtr, PublishedFileId_t nParentPublishedFileID, PublishedFileId_t nChildPublishedFileID); +S_API SteamAPICall_t SteamAPI_ISteamUGC_AddAppDependency(intptr_t instancePtr, PublishedFileId_t nPublishedFileID, AppId_t nAppID); +S_API SteamAPICall_t SteamAPI_ISteamUGC_RemoveAppDependency(intptr_t instancePtr, PublishedFileId_t nPublishedFileID, AppId_t nAppID); +S_API SteamAPICall_t SteamAPI_ISteamUGC_GetAppDependencies(intptr_t instancePtr, PublishedFileId_t nPublishedFileID); +S_API SteamAPICall_t SteamAPI_ISteamUGC_DeleteItem(intptr_t instancePtr, PublishedFileId_t nPublishedFileID); S_API uint32 SteamAPI_ISteamAppList_GetNumInstalledApps(intptr_t instancePtr); S_API uint32 SteamAPI_ISteamAppList_GetInstalledApps(intptr_t instancePtr, AppId_t * pvecAppID, uint32 unMaxAppIDs); S_API int SteamAPI_ISteamAppList_GetAppName(intptr_t instancePtr, AppId_t nAppID, char * pchName, int cchNameMax); @@ -726,6 +735,7 @@ S_API void SteamAPI_ISteamHTMLSurface_GetLinkAtPosition(intptr_t instancePtr, HH S_API void SteamAPI_ISteamHTMLSurface_SetCookie(intptr_t instancePtr, const char * pchHostname, const char * pchKey, const char * pchValue, const char * pchPath, RTime32 nExpires, bool bSecure, bool bHTTPOnly); S_API void SteamAPI_ISteamHTMLSurface_SetPageScaleFactor(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, float flZoom, int nPointX, int nPointY); S_API void SteamAPI_ISteamHTMLSurface_SetBackgroundMode(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, bool bBackgroundMode); +S_API void SteamAPI_ISteamHTMLSurface_SetDPIScalingFactor(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, float flDPIScaling); S_API void SteamAPI_ISteamHTMLSurface_AllowStartRequest(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, bool bAllowed); S_API void SteamAPI_ISteamHTMLSurface_JSDialogResponse(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, bool bResult); S_API EResult SteamAPI_ISteamInventory_GetResultStatus(intptr_t instancePtr, SteamInventoryResult_t resultHandle); @@ -753,10 +763,28 @@ S_API bool SteamAPI_ISteamInventory_GetItemDefinitionIDs(intptr_t instancePtr, S S_API bool SteamAPI_ISteamInventory_GetItemDefinitionProperty(intptr_t instancePtr, SteamItemDef_t iDefinition, const char * pchPropertyName, char * pchValueBuffer, uint32 * punValueBufferSizeOut); S_API SteamAPICall_t SteamAPI_ISteamInventory_RequestEligiblePromoItemDefinitionsIDs(intptr_t instancePtr, class CSteamID steamID); S_API bool SteamAPI_ISteamInventory_GetEligiblePromoItemDefinitionIDs(intptr_t instancePtr, class CSteamID steamID, SteamItemDef_t * pItemDefIDs, uint32 * punItemDefIDsArraySize); +S_API SteamAPICall_t SteamAPI_ISteamInventory_StartPurchase(intptr_t instancePtr, const SteamItemDef_t * pArrayItemDefs, const uint32 * punArrayQuantity, uint32 unArrayLength); +S_API SteamAPICall_t SteamAPI_ISteamInventory_RequestPrices(intptr_t instancePtr); +S_API uint32 SteamAPI_ISteamInventory_GetNumItemsWithPrices(intptr_t instancePtr); +S_API bool SteamAPI_ISteamInventory_GetItemsWithPrices(intptr_t instancePtr, SteamItemDef_t * pArrayItemDefs, uint64 * pPrices, uint32 unArrayLength); +S_API bool SteamAPI_ISteamInventory_GetItemPrice(intptr_t instancePtr, SteamItemDef_t iDefinition, uint64 * pPrice); +S_API SteamInventoryUpdateHandle_t SteamAPI_ISteamInventory_StartUpdateProperties(intptr_t instancePtr); +S_API bool SteamAPI_ISteamInventory_RemoveProperty(intptr_t instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName); +S_API bool SteamAPI_ISteamInventory_SetProperty(intptr_t instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName, const char * pchPropertyValue); +S_API bool SteamAPI_ISteamInventory_SetProperty0(intptr_t instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName, bool bValue); +S_API bool SteamAPI_ISteamInventory_SetProperty1(intptr_t instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName, int64 nValue); +S_API bool SteamAPI_ISteamInventory_SetProperty2(intptr_t instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName, float flValue); +S_API bool SteamAPI_ISteamInventory_SubmitUpdateProperties(intptr_t instancePtr, SteamInventoryUpdateHandle_t handle, SteamInventoryResult_t * pResultHandle); S_API void SteamAPI_ISteamVideo_GetVideoURL(intptr_t instancePtr, AppId_t unVideoAppID); S_API bool SteamAPI_ISteamVideo_IsBroadcasting(intptr_t instancePtr, int * pnNumViewers); S_API void SteamAPI_ISteamVideo_GetOPFSettings(intptr_t instancePtr, AppId_t unVideoAppID); S_API bool SteamAPI_ISteamVideo_GetOPFStringForApp(intptr_t instancePtr, AppId_t unVideoAppID, char * pchBuffer, int32 * pnBufferSize); +S_API bool SteamAPI_ISteamParentalSettings_BIsParentalLockEnabled(intptr_t instancePtr); +S_API bool SteamAPI_ISteamParentalSettings_BIsParentalLockLocked(intptr_t instancePtr); +S_API bool SteamAPI_ISteamParentalSettings_BIsAppBlocked(intptr_t instancePtr, AppId_t nAppID); +S_API bool SteamAPI_ISteamParentalSettings_BIsAppInBlockList(intptr_t instancePtr, AppId_t nAppID); +S_API bool SteamAPI_ISteamParentalSettings_BIsFeatureBlocked(intptr_t instancePtr, EParentalFeature eFeature); +S_API bool SteamAPI_ISteamParentalSettings_BIsFeatureInBlockList(intptr_t instancePtr, EParentalFeature eFeature); S_API bool SteamAPI_ISteamGameServer_InitGameServer(intptr_t instancePtr, uint32 unIP, uint16 usGamePort, uint16 usQueryPort, uint32 unFlags, AppId_t nGameAppId, const char * pchVersionString); S_API void SteamAPI_ISteamGameServer_SetProduct(intptr_t instancePtr, const char * pszProduct); S_API void SteamAPI_ISteamGameServer_SetGameDescription(intptr_t instancePtr, const char * pszGameDescription); diff --git a/Generator/steam_sdk/steam_api_internal.h b/Generator/steam_sdk/steam_api_internal.h index ed0423b..f5e5721 100644 --- a/Generator/steam_sdk/steam_api_internal.h +++ b/Generator/steam_sdk/steam_api_internal.h @@ -44,7 +44,6 @@ inline ISteamNetworking *SteamNetworking() { return SteamInternal_ModuleCont inline ISteamRemoteStorage *SteamRemoteStorage() { return SteamInternal_ModuleContext().SteamRemoteStorage(); } inline ISteamScreenshots *SteamScreenshots() { return SteamInternal_ModuleContext().SteamScreenshots(); } inline ISteamHTTP *SteamHTTP() { return SteamInternal_ModuleContext().SteamHTTP(); } -inline ISteamUnifiedMessages *SteamUnifiedMessages() { return SteamInternal_ModuleContext().SteamUnifiedMessages(); } inline ISteamController *SteamController() { return SteamInternal_ModuleContext().SteamController(); } inline ISteamUGC *SteamUGC() { return SteamInternal_ModuleContext().SteamUGC(); } inline ISteamAppList *SteamAppList() { return SteamInternal_ModuleContext().SteamAppList(); } @@ -53,6 +52,7 @@ inline ISteamMusicRemote *SteamMusicRemote() { return SteamInternal_ModuleCon inline ISteamHTMLSurface *SteamHTMLSurface() { return SteamInternal_ModuleContext().SteamHTMLSurface(); } inline ISteamInventory *SteamInventory() { return SteamInternal_ModuleContext().SteamInventory(); } inline ISteamVideo *SteamVideo() { return SteamInternal_ModuleContext().SteamVideo(); } +inline ISteamParentalSettings *SteamParentalSettings() { return SteamInternal_ModuleContext().SteamParentalSettings(); } #endif // !defined( STEAM_API_EXPORTS ) @@ -72,7 +72,6 @@ inline void CSteamAPIContext::Clear() m_pSteamHTTP = NULL; m_pSteamScreenshots = NULL; m_pSteamMusic = NULL; - m_pSteamUnifiedMessages = NULL; m_pController = NULL; m_pSteamUGC = NULL; m_pSteamAppList = NULL; @@ -80,6 +79,8 @@ inline void CSteamAPIContext::Clear() m_pSteamMusicRemote = NULL; m_pSteamHTMLSurface = NULL; m_pSteamInventory = NULL; + m_pSteamVideo = NULL; + m_pSteamParentalSettings = NULL; } @@ -139,10 +140,6 @@ inline bool CSteamAPIContext::Init() if ( !m_pSteamHTTP ) return false; - m_pSteamUnifiedMessages = m_pSteamClient->GetISteamUnifiedMessages( hSteamUser, hSteamPipe, STEAMUNIFIEDMESSAGES_INTERFACE_VERSION ); - if ( !m_pSteamUnifiedMessages ) - return false; - m_pController = m_pSteamClient->GetISteamController( hSteamUser, hSteamPipe, STEAMCONTROLLER_INTERFACE_VERSION ); if ( !m_pController ) return false; @@ -175,6 +172,10 @@ inline bool CSteamAPIContext::Init() if ( !m_pSteamVideo ) return false; + m_pSteamParentalSettings = m_pSteamClient->GetISteamParentalSettings( hSteamUser, hSteamPipe, STEAMPARENTALSETTINGS_INTERFACE_VERSION ); + if ( !m_pSteamParentalSettings ) + return false; + return true; } diff --git a/Generator/steam_sdk/steam_api_interop.cs b/Generator/steam_sdk/steam_api_interop.cs index 37403a7..eb8721c 100644 --- a/Generator/steam_sdk/steam_api_interop.cs +++ b/Generator/steam_sdk/steam_api_interop.cs @@ -63,8 +63,6 @@ public class NativeEntrypoints internal static extern bool SteamAPI_ISteamClient_BShutdownIfAllPipesClosed(IntPtr instancePtr); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamHTTP")] internal static extern IntPtr SteamAPI_ISteamClient_GetISteamHTTP(IntPtr instancePtr, uint hSteamuser, uint hSteamPipe, string pchVersion); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamUnifiedMessages")] -internal static extern IntPtr SteamAPI_ISteamClient_GetISteamUnifiedMessages(IntPtr instancePtr, uint hSteamuser, uint hSteamPipe, string pchVersion); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamController")] internal static extern IntPtr SteamAPI_ISteamClient_GetISteamController(IntPtr instancePtr, uint hSteamUser, uint hSteamPipe, string pchVersion); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamUGC")] @@ -81,6 +79,8 @@ public class NativeEntrypoints internal static extern IntPtr SteamAPI_ISteamClient_GetISteamInventory(IntPtr instancePtr, uint hSteamuser, uint hSteamPipe, string pchVersion); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamVideo")] internal static extern IntPtr SteamAPI_ISteamClient_GetISteamVideo(IntPtr instancePtr, uint hSteamuser, uint hSteamPipe, string pchVersion); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamParentalSettings")] +internal static extern IntPtr SteamAPI_ISteamClient_GetISteamParentalSettings(IntPtr instancePtr, uint hSteamuser, uint hSteamPipe, string pchVersion); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_GetHSteamUser")] internal static extern uint SteamAPI_ISteamUser_GetHSteamUser(IntPtr instancePtr); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_BLoggedOn")] @@ -279,6 +279,10 @@ public class NativeEntrypoints internal static extern ulong SteamAPI_ISteamFriends_IsFollowing(IntPtr instancePtr, ulong steamID); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_EnumerateFollowingList")] internal static extern ulong SteamAPI_ISteamFriends_EnumerateFollowingList(IntPtr instancePtr, uint unStartIndex); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_IsClanPublic")] +internal static extern bool SteamAPI_ISteamFriends_IsClanPublic(IntPtr instancePtr, ulong steamIDClan); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_IsClanOfficialGameGroup")] +internal static extern bool SteamAPI_ISteamFriends_IsClanOfficialGameGroup(IntPtr instancePtr, ulong steamIDClan); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetSecondsSinceAppActive")] internal static extern uint SteamAPI_ISteamUtils_GetSecondsSinceAppActive(IntPtr instancePtr); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetSecondsSinceComputerActive")] @@ -911,16 +915,6 @@ public class NativeEntrypoints internal static extern bool SteamAPI_ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS(IntPtr instancePtr, uint hRequest, uint unMilliseconds); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut")] internal static extern bool SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut(IntPtr instancePtr, uint hRequest, ref bool pbWasTimedOut); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUnifiedMessages_SendMethod")] -internal static extern ulong SteamAPI_ISteamUnifiedMessages_SendMethod(IntPtr instancePtr, string pchServiceMethod, IntPtr pRequestBuffer, uint unRequestBufferSize, ulong unContext); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUnifiedMessages_GetMethodResponseInfo")] -internal static extern bool SteamAPI_ISteamUnifiedMessages_GetMethodResponseInfo(IntPtr instancePtr, ulong hHandle, ref uint punResponseSize, ref uint peResult); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUnifiedMessages_GetMethodResponseData")] -internal static extern bool SteamAPI_ISteamUnifiedMessages_GetMethodResponseData(IntPtr instancePtr, ulong hHandle, IntPtr pResponseBuffer, uint unResponseBufferSize, bool bAutoRelease); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUnifiedMessages_ReleaseMethod")] -internal static extern bool SteamAPI_ISteamUnifiedMessages_ReleaseMethod(IntPtr instancePtr, ulong hHandle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUnifiedMessages_SendNotification")] -internal static extern bool SteamAPI_ISteamUnifiedMessages_SendNotification(IntPtr instancePtr, string pchServiceNotification, IntPtr pNotificationBuffer, uint unNotificationBufferSize); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_Init")] internal static extern bool SteamAPI_ISteamController_Init(IntPtr instancePtr); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_Shutdown")] @@ -937,6 +931,14 @@ public class NativeEntrypoints internal static extern void SteamAPI_ISteamController_ActivateActionSet(IntPtr instancePtr, ulong controllerHandle, ulong actionSetHandle); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_GetCurrentActionSet")] internal static extern ulong SteamAPI_ISteamController_GetCurrentActionSet(IntPtr instancePtr, ulong controllerHandle); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_ActivateActionSetLayer")] +internal static extern void SteamAPI_ISteamController_ActivateActionSetLayer(IntPtr instancePtr, ulong controllerHandle, ulong actionSetLayerHandle); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_DeactivateActionSetLayer")] +internal static extern void SteamAPI_ISteamController_DeactivateActionSetLayer(IntPtr instancePtr, ulong controllerHandle, ulong actionSetLayerHandle); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_DeactivateAllActionSetLayers")] +internal static extern void SteamAPI_ISteamController_DeactivateAllActionSetLayers(IntPtr instancePtr, ulong controllerHandle); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_GetActiveActionSetLayers")] +internal static extern int SteamAPI_ISteamController_GetActiveActionSetLayers(IntPtr instancePtr, ulong controllerHandle, ref ulong handlesOut); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_GetDigitalActionHandle")] internal static extern ulong SteamAPI_ISteamController_GetDigitalActionHandle(IntPtr instancePtr, string pszActionName); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_GetDigitalActionData")] @@ -973,6 +975,8 @@ public class NativeEntrypoints internal static extern IntPtr SteamAPI_ISteamController_GetStringForActionOrigin(IntPtr instancePtr, uint eOrigin); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_GetGlyphForActionOrigin")] internal static extern IntPtr SteamAPI_ISteamController_GetGlyphForActionOrigin(IntPtr instancePtr, uint eOrigin); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_GetInputTypeForHandle")] +internal static extern uint SteamAPI_ISteamController_GetInputTypeForHandle(IntPtr instancePtr, ulong controllerHandle); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_CreateQueryUserUGCRequest")] internal static extern ulong SteamAPI_ISteamUGC_CreateQueryUserUGCRequest(IntPtr instancePtr, uint unAccountID, uint eListType, uint eMatchingUGCType, uint eSortOrder, uint nCreatorAppID, uint nConsumerAppID, uint unPage); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_CreateQueryAllUGCRequest")] @@ -1113,6 +1117,14 @@ public class NativeEntrypoints internal static extern ulong SteamAPI_ISteamUGC_AddDependency(IntPtr instancePtr, ulong nParentPublishedFileID, ulong nChildPublishedFileID); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_RemoveDependency")] internal static extern ulong SteamAPI_ISteamUGC_RemoveDependency(IntPtr instancePtr, ulong nParentPublishedFileID, ulong nChildPublishedFileID); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_AddAppDependency")] +internal static extern ulong SteamAPI_ISteamUGC_AddAppDependency(IntPtr instancePtr, ulong nPublishedFileID, uint nAppID); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_RemoveAppDependency")] +internal static extern ulong SteamAPI_ISteamUGC_RemoveAppDependency(IntPtr instancePtr, ulong nPublishedFileID, uint nAppID); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetAppDependencies")] +internal static extern ulong SteamAPI_ISteamUGC_GetAppDependencies(IntPtr instancePtr, ulong nPublishedFileID); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_DeleteItem")] +internal static extern ulong SteamAPI_ISteamUGC_DeleteItem(IntPtr instancePtr, ulong nPublishedFileID); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamAppList_GetNumInstalledApps")] internal static extern uint SteamAPI_ISteamAppList_GetNumInstalledApps(IntPtr instancePtr); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamAppList_GetInstalledApps")] @@ -1189,6 +1201,8 @@ public class NativeEntrypoints internal static extern void SteamAPI_ISteamHTMLSurface_SetPageScaleFactor(IntPtr instancePtr, uint unBrowserHandle, float flZoom, int nPointX, int nPointY); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_SetBackgroundMode")] internal static extern void SteamAPI_ISteamHTMLSurface_SetBackgroundMode(IntPtr instancePtr, uint unBrowserHandle, bool bBackgroundMode); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_SetDPIScalingFactor")] +internal static extern void SteamAPI_ISteamHTMLSurface_SetDPIScalingFactor(IntPtr instancePtr, uint unBrowserHandle, float flDPIScaling); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_AllowStartRequest")] internal static extern void SteamAPI_ISteamHTMLSurface_AllowStartRequest(IntPtr instancePtr, uint unBrowserHandle, bool bAllowed); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_JSDialogResponse")] @@ -1243,6 +1257,30 @@ public class NativeEntrypoints internal static extern ulong SteamAPI_ISteamInventory_RequestEligiblePromoItemDefinitionsIDs(IntPtr instancePtr, ulong steamID); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_GetEligiblePromoItemDefinitionIDs")] internal static extern bool SteamAPI_ISteamInventory_GetEligiblePromoItemDefinitionIDs(IntPtr instancePtr, ulong steamID, [In, Out] int[] pItemDefIDs, ref uint punItemDefIDsArraySize); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_StartPurchase")] +internal static extern ulong SteamAPI_ISteamInventory_StartPurchase(IntPtr instancePtr, [In, Out] int[] pArrayItemDefs, [In, Out] uint[] punArrayQuantity, uint unArrayLength); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_RequestPrices")] +internal static extern ulong SteamAPI_ISteamInventory_RequestPrices(IntPtr instancePtr); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_GetNumItemsWithPrices")] +internal static extern uint SteamAPI_ISteamInventory_GetNumItemsWithPrices(IntPtr instancePtr); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_GetItemsWithPrices")] +internal static extern bool SteamAPI_ISteamInventory_GetItemsWithPrices(IntPtr instancePtr, [In, Out] int[] pArrayItemDefs, [In, Out] ulong[] pPrices, uint unArrayLength); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_GetItemPrice")] +internal static extern bool SteamAPI_ISteamInventory_GetItemPrice(IntPtr instancePtr, int iDefinition, ref ulong pPrice); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_StartUpdateProperties")] +internal static extern ulong SteamAPI_ISteamInventory_StartUpdateProperties(IntPtr instancePtr); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_RemoveProperty")] +internal static extern bool SteamAPI_ISteamInventory_RemoveProperty(IntPtr instancePtr, ulong handle, ulong nItemID, string pchPropertyName); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_SetProperty")] +internal static extern bool SteamAPI_ISteamInventory_SetProperty(IntPtr instancePtr, ulong handle, ulong nItemID, string pchPropertyName, string pchPropertyValue); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_SetProperty0")] +internal static extern bool SteamAPI_ISteamInventory_SetProperty0(IntPtr instancePtr, ulong handle, ulong nItemID, string pchPropertyName, bool bValue); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_SetProperty1")] +internal static extern bool SteamAPI_ISteamInventory_SetProperty1(IntPtr instancePtr, ulong handle, ulong nItemID, string pchPropertyName, long nValue); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_SetProperty2")] +internal static extern bool SteamAPI_ISteamInventory_SetProperty2(IntPtr instancePtr, ulong handle, ulong nItemID, string pchPropertyName, float flValue); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_SubmitUpdateProperties")] +internal static extern bool SteamAPI_ISteamInventory_SubmitUpdateProperties(IntPtr instancePtr, ulong handle, ref int pResultHandle); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamVideo_GetVideoURL")] internal static extern void SteamAPI_ISteamVideo_GetVideoURL(IntPtr instancePtr, uint unVideoAppID); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamVideo_IsBroadcasting")] @@ -1251,6 +1289,18 @@ public class NativeEntrypoints internal static extern void SteamAPI_ISteamVideo_GetOPFSettings(IntPtr instancePtr, uint unVideoAppID); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamVideo_GetOPFStringForApp")] internal static extern bool SteamAPI_ISteamVideo_GetOPFStringForApp(IntPtr instancePtr, uint unVideoAppID, string pchBuffer, ref int pnBufferSize); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamParentalSettings_BIsParentalLockEnabled")] +internal static extern bool SteamAPI_ISteamParentalSettings_BIsParentalLockEnabled(IntPtr instancePtr); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamParentalSettings_BIsParentalLockLocked")] +internal static extern bool SteamAPI_ISteamParentalSettings_BIsParentalLockLocked(IntPtr instancePtr); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamParentalSettings_BIsAppBlocked")] +internal static extern bool SteamAPI_ISteamParentalSettings_BIsAppBlocked(IntPtr instancePtr, uint nAppID); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamParentalSettings_BIsAppInBlockList")] +internal static extern bool SteamAPI_ISteamParentalSettings_BIsAppInBlockList(IntPtr instancePtr, uint nAppID); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamParentalSettings_BIsFeatureBlocked")] +internal static extern bool SteamAPI_ISteamParentalSettings_BIsFeatureBlocked(IntPtr instancePtr, uint eFeature); +[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamParentalSettings_BIsFeatureInBlockList")] +internal static extern bool SteamAPI_ISteamParentalSettings_BIsFeatureInBlockList(IntPtr instancePtr, uint eFeature); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_InitGameServer")] internal static extern bool SteamAPI_ISteamGameServer_InitGameServer(IntPtr instancePtr, uint unIP, char usGamePort, char usQueryPort, uint unFlags, uint nGameAppId, string pchVersionString); [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetProduct")] @@ -1369,6 +1419,11 @@ public class NativeEntrypoints public static extern ulong CGetOPFSettingsResult_t_SetCallback(SteamAPI_GetOPFSettingsResult_t_Callback func); [DllImportAttribute("Steam_api", EntryPoint = "CGetOPFSettingsResult_t_RemoveCallback")] public static extern ulong CGetOPFSettingsResult_t_RemoveCallback(ulong handle); +public delegate void SteamAPI_SteamInventoryStartPurchaseResult_t_CallResult(SteamInventoryStartPurchaseResult_t pSteamInventoryStartPurchaseResult_t, bool bIOFailure); +[DllImportAttribute("Steam_api", EntryPoint = "CSteamInventoryStartPurchaseResult_t_SetCallResult")] +public static extern ulong CSteamInventoryStartPurchaseResult_t_SetCallResult(ulong hAPICall, SteamAPI_SteamInventoryStartPurchaseResult_t_CallResult func); +[DllImportAttribute("Steam_api", EntryPoint = "CSteamInventoryStartPurchaseResult_t_RemoveCallResult")] +public static extern ulong CSteamInventoryStartPurchaseResult_t_RemoveCallResult(ulong handle); public delegate void SteamAPI_RemoteStorageFileReadAsyncComplete_t_CallResult(RemoteStorageFileReadAsyncComplete_t pRemoteStorageFileReadAsyncComplete_t, bool bIOFailure); [DllImportAttribute("Steam_api", EntryPoint = "CRemoteStorageFileReadAsyncComplete_t_SetCallResult")] public static extern ulong CRemoteStorageFileReadAsyncComplete_t_SetCallResult(ulong hAPICall, SteamAPI_RemoteStorageFileReadAsyncComplete_t_CallResult func); @@ -1504,11 +1559,21 @@ public class NativeEntrypoints public static extern ulong CCreateItemResult_t_SetCallResult(ulong hAPICall, SteamAPI_CreateItemResult_t_CallResult func); [DllImportAttribute("Steam_api", EntryPoint = "CCreateItemResult_t_RemoveCallResult")] public static extern ulong CCreateItemResult_t_RemoveCallResult(ulong handle); +public delegate void SteamAPI_DeleteItemResult_t_CallResult(DeleteItemResult_t pDeleteItemResult_t, bool bIOFailure); +[DllImportAttribute("Steam_api", EntryPoint = "CDeleteItemResult_t_SetCallResult")] +public static extern ulong CDeleteItemResult_t_SetCallResult(ulong hAPICall, SteamAPI_DeleteItemResult_t_CallResult func); +[DllImportAttribute("Steam_api", EntryPoint = "CDeleteItemResult_t_RemoveCallResult")] +public static extern ulong CDeleteItemResult_t_RemoveCallResult(ulong handle); public delegate void SteamAPI_SetUserItemVoteResult_t_CallResult(SetUserItemVoteResult_t pSetUserItemVoteResult_t, bool bIOFailure); [DllImportAttribute("Steam_api", EntryPoint = "CSetUserItemVoteResult_t_SetCallResult")] public static extern ulong CSetUserItemVoteResult_t_SetCallResult(ulong hAPICall, SteamAPI_SetUserItemVoteResult_t_CallResult func); [DllImportAttribute("Steam_api", EntryPoint = "CSetUserItemVoteResult_t_RemoveCallResult")] public static extern ulong CSetUserItemVoteResult_t_RemoveCallResult(ulong handle); +public delegate void SteamAPI_SteamInventoryRequestPricesResult_t_CallResult(SteamInventoryRequestPricesResult_t pSteamInventoryRequestPricesResult_t, bool bIOFailure); +[DllImportAttribute("Steam_api", EntryPoint = "CSteamInventoryRequestPricesResult_t_SetCallResult")] +public static extern ulong CSteamInventoryRequestPricesResult_t_SetCallResult(ulong hAPICall, SteamAPI_SteamInventoryRequestPricesResult_t_CallResult func); +[DllImportAttribute("Steam_api", EntryPoint = "CSteamInventoryRequestPricesResult_t_RemoveCallResult")] +public static extern ulong CSteamInventoryRequestPricesResult_t_RemoveCallResult(ulong handle); public delegate void SteamAPI_ComputeNewPlayerCompatibilityResult_t_CallResult(ComputeNewPlayerCompatibilityResult_t pComputeNewPlayerCompatibilityResult_t, bool bIOFailure); [DllImportAttribute("Steam_api", EntryPoint = "CComputeNewPlayerCompatibilityResult_t_SetCallResult")] public static extern ulong CComputeNewPlayerCompatibilityResult_t_SetCallResult(ulong hAPICall, SteamAPI_ComputeNewPlayerCompatibilityResult_t_CallResult func); @@ -1564,6 +1629,11 @@ public class NativeEntrypoints public static extern ulong CUserFavoriteItemsListChanged_t_SetCallResult(ulong hAPICall, SteamAPI_UserFavoriteItemsListChanged_t_CallResult func); [DllImportAttribute("Steam_api", EntryPoint = "CUserFavoriteItemsListChanged_t_RemoveCallResult")] public static extern ulong CUserFavoriteItemsListChanged_t_RemoveCallResult(ulong handle); +public delegate void SteamAPI_AddAppDependencyResult_t_CallResult(AddAppDependencyResult_t pAddAppDependencyResult_t, bool bIOFailure); +[DllImportAttribute("Steam_api", EntryPoint = "CAddAppDependencyResult_t_SetCallResult")] +public static extern ulong CAddAppDependencyResult_t_SetCallResult(ulong hAPICall, SteamAPI_AddAppDependencyResult_t_CallResult func); +[DllImportAttribute("Steam_api", EntryPoint = "CAddAppDependencyResult_t_RemoveCallResult")] +public static extern ulong CAddAppDependencyResult_t_RemoveCallResult(ulong handle); public delegate void SteamAPI_EncryptedAppTicketResponse_t_CallResult(EncryptedAppTicketResponse_t pEncryptedAppTicketResponse_t, bool bIOFailure); [DllImportAttribute("Steam_api", EntryPoint = "CEncryptedAppTicketResponse_t_SetCallResult")] public static extern ulong CEncryptedAppTicketResponse_t_SetCallResult(ulong hAPICall, SteamAPI_EncryptedAppTicketResponse_t_CallResult func); @@ -1614,6 +1684,11 @@ public class NativeEntrypoints public static extern ulong CCheckFileSignature_t_SetCallResult(ulong hAPICall, SteamAPI_CheckFileSignature_t_CallResult func); [DllImportAttribute("Steam_api", EntryPoint = "CCheckFileSignature_t_RemoveCallResult")] public static extern ulong CCheckFileSignature_t_RemoveCallResult(ulong handle); +public delegate void SteamAPI_GetAppDependenciesResult_t_CallResult(GetAppDependenciesResult_t pGetAppDependenciesResult_t, bool bIOFailure); +[DllImportAttribute("Steam_api", EntryPoint = "CGetAppDependenciesResult_t_SetCallResult")] +public static extern ulong CGetAppDependenciesResult_t_SetCallResult(ulong hAPICall, SteamAPI_GetAppDependenciesResult_t_CallResult func); +[DllImportAttribute("Steam_api", EntryPoint = "CGetAppDependenciesResult_t_RemoveCallResult")] +public static extern ulong CGetAppDependenciesResult_t_RemoveCallResult(ulong handle); public delegate void SteamAPI_RemoteStorageUnsubscribePublishedFileResult_t_CallResult(RemoteStorageUnsubscribePublishedFileResult_t pRemoteStorageUnsubscribePublishedFileResult_t, bool bIOFailure); [DllImportAttribute("Steam_api", EntryPoint = "CRemoteStorageUnsubscribePublishedFileResult_t_SetCallResult")] public static extern ulong CRemoteStorageUnsubscribePublishedFileResult_t_SetCallResult(ulong hAPICall, SteamAPI_RemoteStorageUnsubscribePublishedFileResult_t_CallResult func); @@ -1624,6 +1699,11 @@ public class NativeEntrypoints public static extern ulong CSetPersonaNameResponse_t_SetCallResult(ulong hAPICall, SteamAPI_SetPersonaNameResponse_t_CallResult func); [DllImportAttribute("Steam_api", EntryPoint = "CSetPersonaNameResponse_t_RemoveCallResult")] public static extern ulong CSetPersonaNameResponse_t_RemoveCallResult(ulong handle); +public delegate void SteamAPI_RemoveAppDependencyResult_t_CallResult(RemoveAppDependencyResult_t pRemoveAppDependencyResult_t, bool bIOFailure); +[DllImportAttribute("Steam_api", EntryPoint = "CRemoveAppDependencyResult_t_SetCallResult")] +public static extern ulong CRemoveAppDependencyResult_t_SetCallResult(ulong hAPICall, SteamAPI_RemoveAppDependencyResult_t_CallResult func); +[DllImportAttribute("Steam_api", EntryPoint = "CRemoveAppDependencyResult_t_RemoveCallResult")] +public static extern ulong CRemoveAppDependencyResult_t_RemoveCallResult(ulong handle); public delegate void SteamAPI_UserStatsReceived_t_CallResult(UserStatsReceived_t pUserStatsReceived_t, bool bIOFailure); [DllImportAttribute("Steam_api", EntryPoint = "CUserStatsReceived_t_SetCallResult")] public static extern ulong CUserStatsReceived_t_SetCallResult(ulong hAPICall, SteamAPI_UserStatsReceived_t_CallResult func); @@ -1678,7 +1758,6 @@ public abstract class ISteamClient public abstract void SetWarningMessageHook(IntPtr pFunction); public abstract bool BShutdownIfAllPipesClosed(); public abstract ISteamHTTP GetISteamHTTP(uint hSteamuser,uint hSteamPipe,string pchVersion); - public abstract ISteamUnifiedMessages GetISteamUnifiedMessages(uint hSteamuser,uint hSteamPipe,string pchVersion); public abstract ISteamController GetISteamController(uint hSteamUser,uint hSteamPipe,string pchVersion); public abstract ISteamUGC GetISteamUGC(uint hSteamUser,uint hSteamPipe,string pchVersion); public abstract ISteamAppList GetISteamAppList(uint hSteamUser,uint hSteamPipe,string pchVersion); @@ -1687,6 +1766,7 @@ public abstract class ISteamClient public abstract ISteamHTMLSurface GetISteamHTMLSurface(uint hSteamuser,uint hSteamPipe,string pchVersion); public abstract ISteamInventory GetISteamInventory(uint hSteamuser,uint hSteamPipe,string pchVersion); public abstract ISteamVideo GetISteamVideo(uint hSteamuser,uint hSteamPipe,string pchVersion); + public abstract ISteamParentalSettings GetISteamParentalSettings(uint hSteamuser,uint hSteamPipe,string pchVersion); } @@ -1798,6 +1878,8 @@ public abstract class ISteamFriends public abstract ulong GetFollowerCount(ulong steamID); public abstract ulong IsFollowing(ulong steamID); public abstract ulong EnumerateFollowingList(uint unStartIndex); + public abstract bool IsClanPublic(ulong steamIDClan); + public abstract bool IsClanOfficialGameGroup(ulong steamIDClan); } @@ -2207,17 +2289,6 @@ public abstract class ISteamHTTP } - public abstract class ISteamUnifiedMessages - { - public abstract IntPtr GetIntPtr(); - public abstract ulong SendMethod(string pchServiceMethod,IntPtr pRequestBuffer,uint unRequestBufferSize,ulong unContext); - public abstract bool GetMethodResponseInfo(ulong hHandle,ref uint punResponseSize,ref uint peResult); - public abstract bool GetMethodResponseData(ulong hHandle,IntPtr pResponseBuffer,uint unResponseBufferSize,bool bAutoRelease); - public abstract bool ReleaseMethod(ulong hHandle); - public abstract bool SendNotification(string pchServiceNotification,IntPtr pNotificationBuffer,uint unNotificationBufferSize); - } - - public abstract class ISteamController { public abstract IntPtr GetIntPtr(); @@ -2229,6 +2300,10 @@ public abstract class ISteamController public abstract ulong GetActionSetHandle(string pszActionSetName); public abstract void ActivateActionSet(ulong controllerHandle,ulong actionSetHandle); public abstract ulong GetCurrentActionSet(ulong controllerHandle); + public abstract void ActivateActionSetLayer(ulong controllerHandle,ulong actionSetLayerHandle); + public abstract void DeactivateActionSetLayer(ulong controllerHandle,ulong actionSetLayerHandle); + public abstract void DeactivateAllActionSetLayers(ulong controllerHandle); + public abstract int GetActiveActionSetLayers(ulong controllerHandle,ref ulong handlesOut); public abstract ulong GetDigitalActionHandle(string pszActionName); public abstract ControllerDigitalActionData_t GetDigitalActionData(ulong controllerHandle,ulong digitalActionHandle); public abstract int GetDigitalActionOrigins(ulong controllerHandle,ulong actionSetHandle,ulong digitalActionHandle,ref uint originsOut); @@ -2247,6 +2322,7 @@ public abstract class ISteamController public abstract bool ShowAnalogActionOrigins(ulong controllerHandle,ulong analogActionHandle,float flScale,float flXPosition,float flYPosition); public abstract string GetStringForActionOrigin(uint eOrigin); public abstract string GetGlyphForActionOrigin(uint eOrigin); + public abstract uint GetInputTypeForHandle(ulong controllerHandle); } @@ -2323,6 +2399,10 @@ public abstract class ISteamUGC public abstract ulong StopPlaytimeTrackingForAllItems(); public abstract ulong AddDependency(ulong nParentPublishedFileID,ulong nChildPublishedFileID); public abstract ulong RemoveDependency(ulong nParentPublishedFileID,ulong nChildPublishedFileID); + public abstract ulong AddAppDependency(ulong nPublishedFileID,uint nAppID); + public abstract ulong RemoveAppDependency(ulong nPublishedFileID,uint nAppID); + public abstract ulong GetAppDependencies(ulong nPublishedFileID); + public abstract ulong DeleteItem(ulong nPublishedFileID); } @@ -2373,6 +2453,7 @@ public abstract class ISteamHTMLSurface public abstract void SetCookie(string pchHostname,string pchKey,string pchValue,string pchPath,ulong nExpires,bool bSecure,bool bHTTPOnly); public abstract void SetPageScaleFactor(uint unBrowserHandle,float flZoom,int nPointX,int nPointY); public abstract void SetBackgroundMode(uint unBrowserHandle,bool bBackgroundMode); + public abstract void SetDPIScalingFactor(uint unBrowserHandle,float flDPIScaling); public abstract void AllowStartRequest(uint unBrowserHandle,bool bAllowed); public abstract void JSDialogResponse(uint unBrowserHandle,bool bResult); } @@ -2406,6 +2487,18 @@ public abstract class ISteamInventory public abstract bool GetItemDefinitionProperty(int iDefinition,string pchPropertyName,out string pchValueBuffer); public abstract ulong RequestEligiblePromoItemDefinitionsIDs(ulong steamID); public abstract bool GetEligiblePromoItemDefinitionIDs(ulong steamID,out int [] pItemDefIDs); + public abstract ulong StartPurchase(int [] pArrayItemDefs,uint [] punArrayQuantity); + public abstract ulong RequestPrices(); + public abstract uint GetNumItemsWithPrices(); + public abstract bool GetItemsWithPrices(out int [] pArrayItemDefs,out ulong [] pPrices,uint unArrayLength); + public abstract bool GetItemPrice(int iDefinition,ref ulong pPrice); + public abstract ulong StartUpdateProperties(); + public abstract bool RemoveProperty(ulong handle,ulong nItemID,string pchPropertyName); + public abstract bool SetProperty(ulong handle,ulong nItemID,string pchPropertyName,string pchPropertyValue); + public abstract bool SetProperty0(ulong handle,ulong nItemID,string pchPropertyName,bool bValue); + public abstract bool SetProperty1(ulong handle,ulong nItemID,string pchPropertyName,long nValue); + public abstract bool SetProperty2(ulong handle,ulong nItemID,string pchPropertyName,float flValue); + public abstract bool SubmitUpdateProperties(ulong handle,ref int pResultHandle); } @@ -2419,6 +2512,18 @@ public abstract class ISteamVideo } + public abstract class ISteamParentalSettings + { + public abstract IntPtr GetIntPtr(); + public abstract bool BIsParentalLockEnabled(); + public abstract bool BIsParentalLockLocked(); + public abstract bool BIsAppBlocked(uint nAppID); + public abstract bool BIsAppInBlockList(uint nAppID); + public abstract bool BIsFeatureBlocked(uint eFeature); + public abstract bool BIsFeatureInBlockList(uint eFeature); + } + + public abstract class ISteamGameServer { public abstract IntPtr GetIntPtr(); @@ -2638,12 +2743,6 @@ public override ISteamHTTP GetISteamHTTP(uint hSteamuser,uint hSteamPipe,string IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamHTTP(m_pSteamClient,hSteamuser,hSteamPipe,pchVersion); return (ISteamHTTP) Marshal.PtrToStructure(result, typeof(ISteamHTTP)); } -public override ISteamUnifiedMessages GetISteamUnifiedMessages(uint hSteamuser,uint hSteamPipe,string pchVersion) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamUnifiedMessages(m_pSteamClient,hSteamuser,hSteamPipe,pchVersion); - return (ISteamUnifiedMessages) Marshal.PtrToStructure(result, typeof(ISteamUnifiedMessages)); -} public override ISteamController GetISteamController(uint hSteamUser,uint hSteamPipe,string pchVersion) { CheckIfUsable(); @@ -2692,6 +2791,12 @@ public override ISteamVideo GetISteamVideo(uint hSteamuser,uint hSteamPipe,strin IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamVideo(m_pSteamClient,hSteamuser,hSteamPipe,pchVersion); return (ISteamVideo) Marshal.PtrToStructure(result, typeof(ISteamVideo)); } +public override ISteamParentalSettings GetISteamParentalSettings(uint hSteamuser,uint hSteamPipe,string pchVersion) +{ + CheckIfUsable(); + IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamParentalSettings(m_pSteamClient,hSteamuser,hSteamPipe,pchVersion); + return (ISteamParentalSettings) Marshal.PtrToStructure(result, typeof(ISteamParentalSettings)); +} } @@ -3325,6 +3430,18 @@ public override ulong EnumerateFollowingList(uint unStartIndex) ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_EnumerateFollowingList(m_pSteamFriends,unStartIndex); return result; } +public override bool IsClanPublic(ulong steamIDClan) +{ + CheckIfUsable(); + bool result = NativeEntrypoints.SteamAPI_ISteamFriends_IsClanPublic(m_pSteamFriends,steamIDClan); + return result; +} +public override bool IsClanOfficialGameGroup(ulong steamIDClan) +{ + CheckIfUsable(); + bool result = NativeEntrypoints.SteamAPI_ISteamFriends_IsClanOfficialGameGroup(m_pSteamFriends,steamIDClan); + return result; +} } @@ -5549,58 +5666,6 @@ public override bool GetHTTPRequestWasTimedOut(uint hRequest,ref bool pbWasTimed } -public class CSteamUnifiedMessages : ISteamUnifiedMessages -{ -public CSteamUnifiedMessages(IntPtr SteamUnifiedMessages) -{ - m_pSteamUnifiedMessages = SteamUnifiedMessages; -} -IntPtr m_pSteamUnifiedMessages; - -public override IntPtr GetIntPtr() { return m_pSteamUnifiedMessages; } - -private void CheckIfUsable() -{ - if (m_pSteamUnifiedMessages == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override ulong SendMethod(string pchServiceMethod,IntPtr pRequestBuffer,uint unRequestBufferSize,ulong unContext) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUnifiedMessages_SendMethod(m_pSteamUnifiedMessages,pchServiceMethod,pRequestBuffer,unRequestBufferSize,unContext); - return result; -} -public override bool GetMethodResponseInfo(ulong hHandle,ref uint punResponseSize,ref uint peResult) -{ - CheckIfUsable(); - punResponseSize = 0; - peResult = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamUnifiedMessages_GetMethodResponseInfo(m_pSteamUnifiedMessages,hHandle,ref punResponseSize,ref peResult); - return result; -} -public override bool GetMethodResponseData(ulong hHandle,IntPtr pResponseBuffer,uint unResponseBufferSize,bool bAutoRelease) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUnifiedMessages_GetMethodResponseData(m_pSteamUnifiedMessages,hHandle,pResponseBuffer,unResponseBufferSize,bAutoRelease); - return result; -} -public override bool ReleaseMethod(ulong hHandle) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUnifiedMessages_ReleaseMethod(m_pSteamUnifiedMessages,hHandle); - return result; -} -public override bool SendNotification(string pchServiceNotification,IntPtr pNotificationBuffer,uint unNotificationBufferSize) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUnifiedMessages_SendNotification(m_pSteamUnifiedMessages,pchServiceNotification,pNotificationBuffer,unNotificationBufferSize); - return result; -} -} - - public class CSteamController : ISteamController { public CSteamController(IntPtr SteamController) @@ -5665,6 +5730,28 @@ public override ulong GetCurrentActionSet(ulong controllerHandle) ulong result = NativeEntrypoints.SteamAPI_ISteamController_GetCurrentActionSet(m_pSteamController,controllerHandle); return result; } +public override void ActivateActionSetLayer(ulong controllerHandle,ulong actionSetLayerHandle) +{ + CheckIfUsable(); + NativeEntrypoints.SteamAPI_ISteamController_ActivateActionSetLayer(m_pSteamController,controllerHandle,actionSetLayerHandle); +} +public override void DeactivateActionSetLayer(ulong controllerHandle,ulong actionSetLayerHandle) +{ + CheckIfUsable(); + NativeEntrypoints.SteamAPI_ISteamController_DeactivateActionSetLayer(m_pSteamController,controllerHandle,actionSetLayerHandle); +} +public override void DeactivateAllActionSetLayers(ulong controllerHandle) +{ + CheckIfUsable(); + NativeEntrypoints.SteamAPI_ISteamController_DeactivateAllActionSetLayers(m_pSteamController,controllerHandle); +} +public override int GetActiveActionSetLayers(ulong controllerHandle,ref ulong handlesOut) +{ + CheckIfUsable(); + handlesOut = 0; + int result = NativeEntrypoints.SteamAPI_ISteamController_GetActiveActionSetLayers(m_pSteamController,controllerHandle,ref handlesOut); + return result; +} public override ulong GetDigitalActionHandle(string pszActionName) { CheckIfUsable(); @@ -5770,6 +5857,12 @@ public override string GetGlyphForActionOrigin(uint eOrigin) IntPtr result = NativeEntrypoints.SteamAPI_ISteamController_GetGlyphForActionOrigin(m_pSteamController,eOrigin); return Marshal.PtrToStringAnsi(result); } +public override uint GetInputTypeForHandle(ulong controllerHandle) +{ + CheckIfUsable(); + uint result = NativeEntrypoints.SteamAPI_ISteamController_GetInputTypeForHandle(m_pSteamController,controllerHandle); + return result; +} } @@ -6236,6 +6329,30 @@ public override ulong RemoveDependency(ulong nParentPublishedFileID,ulong nChild ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_RemoveDependency(m_pSteamUGC,nParentPublishedFileID,nChildPublishedFileID); return result; } +public override ulong AddAppDependency(ulong nPublishedFileID,uint nAppID) +{ + CheckIfUsable(); + ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_AddAppDependency(m_pSteamUGC,nPublishedFileID,nAppID); + return result; +} +public override ulong RemoveAppDependency(ulong nPublishedFileID,uint nAppID) +{ + CheckIfUsable(); + ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_RemoveAppDependency(m_pSteamUGC,nPublishedFileID,nAppID); + return result; +} +public override ulong GetAppDependencies(ulong nPublishedFileID) +{ + CheckIfUsable(); + ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_GetAppDependencies(m_pSteamUGC,nPublishedFileID); + return result; +} +public override ulong DeleteItem(ulong nPublishedFileID) +{ + CheckIfUsable(); + ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_DeleteItem(m_pSteamUGC,nPublishedFileID); + return result; +} } @@ -6475,6 +6592,11 @@ public override void SetBackgroundMode(uint unBrowserHandle,bool bBackgroundMode CheckIfUsable(); NativeEntrypoints.SteamAPI_ISteamHTMLSurface_SetBackgroundMode(m_pSteamHTMLSurface,unBrowserHandle,bBackgroundMode); } +public override void SetDPIScalingFactor(uint unBrowserHandle,float flDPIScaling) +{ + CheckIfUsable(); + NativeEntrypoints.SteamAPI_ISteamHTMLSurface_SetDPIScalingFactor(m_pSteamHTMLSurface,unBrowserHandle,flDPIScaling); +} public override void AllowStartRequest(uint unBrowserHandle,bool bAllowed) { CheckIfUsable(); @@ -6683,6 +6805,85 @@ public override bool GetEligiblePromoItemDefinitionIDs(ulong steamID,out int [] result = NativeEntrypoints.SteamAPI_ISteamInventory_GetEligiblePromoItemDefinitionIDs(m_pSteamInventory,steamID,pItemDefIDs,ref punItemDefIDsArraySize); return result; } +public override ulong StartPurchase(int [] pArrayItemDefs,uint [] punArrayQuantity) +{ + CheckIfUsable(); + ulong result = NativeEntrypoints.SteamAPI_ISteamInventory_StartPurchase(m_pSteamInventory,pArrayItemDefs,punArrayQuantity,(uint) punArrayQuantity.Length); + return result; +} +public override ulong RequestPrices() +{ + CheckIfUsable(); + ulong result = NativeEntrypoints.SteamAPI_ISteamInventory_RequestPrices(m_pSteamInventory); + return result; +} +public override uint GetNumItemsWithPrices() +{ + CheckIfUsable(); + uint result = NativeEntrypoints.SteamAPI_ISteamInventory_GetNumItemsWithPrices(m_pSteamInventory); + return result; +} +public override bool GetItemsWithPrices(out int [] pArrayItemDefs,out ulong [] pPrices,uint unArrayLength) +{ + CheckIfUsable(); + pArrayItemDefs = 0; + pPrices = 0; + bool result = NativeEntrypoints.SteamAPI_ISteamInventory_GetItemsWithPrices(m_pSteamInventory,pArrayItemDefs,null,unArrayLength); + pArrayItemDefs= new int[pArrayItemDefs]; + pPrices= new ulong[pPrices]; + result = NativeEntrypoints.SteamAPI_ISteamInventory_GetItemsWithPrices(m_pSteamInventory,pArrayItemDefs,pPrices,unArrayLength); + return result; +} +public override bool GetItemPrice(int iDefinition,ref ulong pPrice) +{ + CheckIfUsable(); + pPrice = 0; + bool result = NativeEntrypoints.SteamAPI_ISteamInventory_GetItemPrice(m_pSteamInventory,iDefinition,ref pPrice); + return result; +} +public override ulong StartUpdateProperties() +{ + CheckIfUsable(); + ulong result = NativeEntrypoints.SteamAPI_ISteamInventory_StartUpdateProperties(m_pSteamInventory); + return result; +} +public override bool RemoveProperty(ulong handle,ulong nItemID,string pchPropertyName) +{ + CheckIfUsable(); + bool result = NativeEntrypoints.SteamAPI_ISteamInventory_RemoveProperty(m_pSteamInventory,handle,nItemID,pchPropertyName); + return result; +} +public override bool SetProperty(ulong handle,ulong nItemID,string pchPropertyName,string pchPropertyValue) +{ + CheckIfUsable(); + bool result = NativeEntrypoints.SteamAPI_ISteamInventory_SetProperty(m_pSteamInventory,handle,nItemID,pchPropertyName,pchPropertyValue); + return result; +} +public override bool SetProperty0(ulong handle,ulong nItemID,string pchPropertyName,bool bValue) +{ + CheckIfUsable(); + bool result = NativeEntrypoints.SteamAPI_ISteamInventory_SetProperty0(m_pSteamInventory,handle,nItemID,pchPropertyName,bValue); + return result; +} +public override bool SetProperty1(ulong handle,ulong nItemID,string pchPropertyName,long nValue) +{ + CheckIfUsable(); + bool result = NativeEntrypoints.SteamAPI_ISteamInventory_SetProperty1(m_pSteamInventory,handle,nItemID,pchPropertyName,nValue); + return result; +} +public override bool SetProperty2(ulong handle,ulong nItemID,string pchPropertyName,float flValue) +{ + CheckIfUsable(); + bool result = NativeEntrypoints.SteamAPI_ISteamInventory_SetProperty2(m_pSteamInventory,handle,nItemID,pchPropertyName,flValue); + return result; +} +public override bool SubmitUpdateProperties(ulong handle,ref int pResultHandle) +{ + CheckIfUsable(); + pResultHandle = 0; + bool result = NativeEntrypoints.SteamAPI_ISteamInventory_SubmitUpdateProperties(m_pSteamInventory,handle,ref pResultHandle); + return result; +} } @@ -6730,6 +6931,62 @@ public override bool GetOPFStringForApp(uint unVideoAppID,string pchBuffer,ref i } +public class CSteamParentalSettings : ISteamParentalSettings +{ +public CSteamParentalSettings(IntPtr SteamParentalSettings) +{ + m_pSteamParentalSettings = SteamParentalSettings; +} +IntPtr m_pSteamParentalSettings; + +public override IntPtr GetIntPtr() { return m_pSteamParentalSettings; } + +private void CheckIfUsable() +{ + if (m_pSteamParentalSettings == IntPtr.Zero) + { + throw new Exception("Steam Pointer not configured"); + } +} +public override bool BIsParentalLockEnabled() +{ + CheckIfUsable(); + bool result = NativeEntrypoints.SteamAPI_ISteamParentalSettings_BIsParentalLockEnabled(m_pSteamParentalSettings); + return result; +} +public override bool BIsParentalLockLocked() +{ + CheckIfUsable(); + bool result = NativeEntrypoints.SteamAPI_ISteamParentalSettings_BIsParentalLockLocked(m_pSteamParentalSettings); + return result; +} +public override bool BIsAppBlocked(uint nAppID) +{ + CheckIfUsable(); + bool result = NativeEntrypoints.SteamAPI_ISteamParentalSettings_BIsAppBlocked(m_pSteamParentalSettings,nAppID); + return result; +} +public override bool BIsAppInBlockList(uint nAppID) +{ + CheckIfUsable(); + bool result = NativeEntrypoints.SteamAPI_ISteamParentalSettings_BIsAppInBlockList(m_pSteamParentalSettings,nAppID); + return result; +} +public override bool BIsFeatureBlocked(uint eFeature) +{ + CheckIfUsable(); + bool result = NativeEntrypoints.SteamAPI_ISteamParentalSettings_BIsFeatureBlocked(m_pSteamParentalSettings,eFeature); + return result; +} +public override bool BIsFeatureInBlockList(uint eFeature) +{ + CheckIfUsable(); + bool result = NativeEntrypoints.SteamAPI_ISteamParentalSettings_BIsFeatureInBlockList(m_pSteamParentalSettings,eFeature); + return result; +} +} + + public class CSteamGameServer : ISteamGameServer { public CSteamGameServer(IntPtr SteamGameServer) @@ -7114,6 +7371,26 @@ public void Set(Valve.Interop.NativeEntrypoints.SteamAPI_GetOPFSettingsResult_t_ m_Handle = Valve.Interop.NativeEntrypoints.CGetOPFSettingsResult_t_SetCallback(func); } } +public class CSteamInventoryStartPurchaseResult_t_CallResult +{ + public CSteamInventoryStartPurchaseResult_t_CallResult() { } + ~CSteamInventoryStartPurchaseResult_t_CallResult() + { + if(m_Handle != 0) + { + Valve.Interop.NativeEntrypoints.CSteamInventoryStartPurchaseResult_t_RemoveCallResult(m_Handle); + } + } + ulong m_Handle = 0; + public void Set(ulong hAPICall, Valve.Interop.NativeEntrypoints.SteamAPI_SteamInventoryStartPurchaseResult_t_CallResult func) + { + if (m_Handle != 0) + { + Valve.Interop.NativeEntrypoints.CSteamInventoryStartPurchaseResult_t_RemoveCallResult(m_Handle); + } + m_Handle = Valve.Interop.NativeEntrypoints.CSteamInventoryStartPurchaseResult_t_SetCallResult(hAPICall, func); + } +} public class CRemoteStorageFileReadAsyncComplete_t_CallResult { public CRemoteStorageFileReadAsyncComplete_t_CallResult() { } @@ -7654,6 +7931,26 @@ public void Set(ulong hAPICall, Valve.Interop.NativeEntrypoints.SteamAPI_CreateI m_Handle = Valve.Interop.NativeEntrypoints.CCreateItemResult_t_SetCallResult(hAPICall, func); } } +public class CDeleteItemResult_t_CallResult +{ + public CDeleteItemResult_t_CallResult() { } + ~CDeleteItemResult_t_CallResult() + { + if(m_Handle != 0) + { + Valve.Interop.NativeEntrypoints.CDeleteItemResult_t_RemoveCallResult(m_Handle); + } + } + ulong m_Handle = 0; + public void Set(ulong hAPICall, Valve.Interop.NativeEntrypoints.SteamAPI_DeleteItemResult_t_CallResult func) + { + if (m_Handle != 0) + { + Valve.Interop.NativeEntrypoints.CDeleteItemResult_t_RemoveCallResult(m_Handle); + } + m_Handle = Valve.Interop.NativeEntrypoints.CDeleteItemResult_t_SetCallResult(hAPICall, func); + } +} public class CSetUserItemVoteResult_t_CallResult { public CSetUserItemVoteResult_t_CallResult() { } @@ -7674,6 +7971,26 @@ public void Set(ulong hAPICall, Valve.Interop.NativeEntrypoints.SteamAPI_SetUser m_Handle = Valve.Interop.NativeEntrypoints.CSetUserItemVoteResult_t_SetCallResult(hAPICall, func); } } +public class CSteamInventoryRequestPricesResult_t_CallResult +{ + public CSteamInventoryRequestPricesResult_t_CallResult() { } + ~CSteamInventoryRequestPricesResult_t_CallResult() + { + if(m_Handle != 0) + { + Valve.Interop.NativeEntrypoints.CSteamInventoryRequestPricesResult_t_RemoveCallResult(m_Handle); + } + } + ulong m_Handle = 0; + public void Set(ulong hAPICall, Valve.Interop.NativeEntrypoints.SteamAPI_SteamInventoryRequestPricesResult_t_CallResult func) + { + if (m_Handle != 0) + { + Valve.Interop.NativeEntrypoints.CSteamInventoryRequestPricesResult_t_RemoveCallResult(m_Handle); + } + m_Handle = Valve.Interop.NativeEntrypoints.CSteamInventoryRequestPricesResult_t_SetCallResult(hAPICall, func); + } +} public class CComputeNewPlayerCompatibilityResult_t_CallResult { public CComputeNewPlayerCompatibilityResult_t_CallResult() { } @@ -7894,6 +8211,26 @@ public void Set(ulong hAPICall, Valve.Interop.NativeEntrypoints.SteamAPI_UserFav m_Handle = Valve.Interop.NativeEntrypoints.CUserFavoriteItemsListChanged_t_SetCallResult(hAPICall, func); } } +public class CAddAppDependencyResult_t_CallResult +{ + public CAddAppDependencyResult_t_CallResult() { } + ~CAddAppDependencyResult_t_CallResult() + { + if(m_Handle != 0) + { + Valve.Interop.NativeEntrypoints.CAddAppDependencyResult_t_RemoveCallResult(m_Handle); + } + } + ulong m_Handle = 0; + public void Set(ulong hAPICall, Valve.Interop.NativeEntrypoints.SteamAPI_AddAppDependencyResult_t_CallResult func) + { + if (m_Handle != 0) + { + Valve.Interop.NativeEntrypoints.CAddAppDependencyResult_t_RemoveCallResult(m_Handle); + } + m_Handle = Valve.Interop.NativeEntrypoints.CAddAppDependencyResult_t_SetCallResult(hAPICall, func); + } +} public class CEncryptedAppTicketResponse_t_CallResult { public CEncryptedAppTicketResponse_t_CallResult() { } @@ -8094,6 +8431,26 @@ public void Set(ulong hAPICall, Valve.Interop.NativeEntrypoints.SteamAPI_CheckFi m_Handle = Valve.Interop.NativeEntrypoints.CCheckFileSignature_t_SetCallResult(hAPICall, func); } } +public class CGetAppDependenciesResult_t_CallResult +{ + public CGetAppDependenciesResult_t_CallResult() { } + ~CGetAppDependenciesResult_t_CallResult() + { + if(m_Handle != 0) + { + Valve.Interop.NativeEntrypoints.CGetAppDependenciesResult_t_RemoveCallResult(m_Handle); + } + } + ulong m_Handle = 0; + public void Set(ulong hAPICall, Valve.Interop.NativeEntrypoints.SteamAPI_GetAppDependenciesResult_t_CallResult func) + { + if (m_Handle != 0) + { + Valve.Interop.NativeEntrypoints.CGetAppDependenciesResult_t_RemoveCallResult(m_Handle); + } + m_Handle = Valve.Interop.NativeEntrypoints.CGetAppDependenciesResult_t_SetCallResult(hAPICall, func); + } +} public class CRemoteStorageUnsubscribePublishedFileResult_t_CallResult { public CRemoteStorageUnsubscribePublishedFileResult_t_CallResult() { } @@ -8134,6 +8491,26 @@ public void Set(ulong hAPICall, Valve.Interop.NativeEntrypoints.SteamAPI_SetPers m_Handle = Valve.Interop.NativeEntrypoints.CSetPersonaNameResponse_t_SetCallResult(hAPICall, func); } } +public class CRemoveAppDependencyResult_t_CallResult +{ + public CRemoveAppDependencyResult_t_CallResult() { } + ~CRemoveAppDependencyResult_t_CallResult() + { + if(m_Handle != 0) + { + Valve.Interop.NativeEntrypoints.CRemoveAppDependencyResult_t_RemoveCallResult(m_Handle); + } + } + ulong m_Handle = 0; + public void Set(ulong hAPICall, Valve.Interop.NativeEntrypoints.SteamAPI_RemoveAppDependencyResult_t_CallResult func) + { + if (m_Handle != 0) + { + Valve.Interop.NativeEntrypoints.CRemoveAppDependencyResult_t_RemoveCallResult(m_Handle); + } + m_Handle = Valve.Interop.NativeEntrypoints.CRemoveAppDependencyResult_t_SetCallResult(hAPICall, func); + } +} public class CUserStatsReceived_t_CallResult { public CUserStatsReceived_t_CallResult() { } @@ -8262,8 +8639,6 @@ public class SteamAPIInterop internal static extern IntPtr SteamMusicRemote(); [DllImportAttribute("Steam_api", EntryPoint = "SteamHTTP")] internal static extern IntPtr SteamHTTP(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamUnifiedMessages")] -internal static extern IntPtr SteamUnifiedMessages(); [DllImportAttribute("Steam_api", EntryPoint = "SteamController")] internal static extern IntPtr SteamController(); [DllImportAttribute("Steam_api", EntryPoint = "SteamUGC")] @@ -8276,6 +8651,8 @@ public class SteamAPIInterop internal static extern IntPtr SteamInventory(); [DllImportAttribute("Steam_api", EntryPoint = "SteamVideo")] internal static extern IntPtr SteamVideo(); +[DllImportAttribute("Steam_api", EntryPoint = "SteamParentalSettings")] +internal static extern IntPtr SteamParentalSettings(); [DllImportAttribute("Steam_api", EntryPoint = "SteamGameServer")] internal static extern IntPtr SteamGameServer(); [DllImportAttribute("Steam_api", EntryPoint = "SteamGameServerStats")] @@ -8401,6 +8778,10 @@ public enum EResult k_EResultGSLTExpired = 106, k_EResultInsufficientFunds = 107, k_EResultTooManyPending = 108, + k_EResultNoSiteLicensesFound = 109, + k_EResultWGNetworkSendExceeded = 110, + k_EResultAccountNotFriends = 111, + k_EResultLimitedUserAccount = 112, } public enum EVoiceResult { @@ -8526,6 +8907,7 @@ public enum EAppType k_EAppType_Plugin = 4096, k_EAppType_Music = 8192, k_EAppType_Series = 16384, + k_EAppType_Comic = 32768, k_EAppType_Shortcut = 1073741824, k_EAppType_DepotOnly = -2147483648, } @@ -8567,6 +8949,7 @@ public enum EChatRoomEnterResponse k_EChatRoomEnterResponseCommunityBan = 9, k_EChatRoomEnterResponseMemberBlockedYou = 10, k_EChatRoomEnterResponseYouBlockedMember = 11, + k_EChatRoomEnterResponseRatelimitExceeded = 15, } public enum EChatSteamIDInstanceFlags { @@ -8640,6 +9023,18 @@ public enum EVRHMDType k_eEVRHMDType_Oculus_DK2 = 22, k_eEVRHMDType_Oculus_Rift = 23, k_eEVRHMDType_Oculus_Unknown = 40, + k_eEVRHMDType_Acer_Unknown = 50, + k_eEVRHMDType_Acer_WindowsMR = 51, + k_eEVRHMDType_Dell_Unknown = 60, + k_eEVRHMDType_Dell_Visor = 61, + k_eEVRHMDType_Lenovo_Unknown = 70, + k_eEVRHMDType_Lenovo_Explorer = 71, + k_eEVRHMDType_HP_Unknown = 80, + k_eEVRHMDType_HP_WindowsMR = 81, + k_eEVRHMDType_Samsung_Unknown = 90, + k_eEVRHMDType_Samsung_Odyssey = 91, + k_eEVRHMDType_Unannounced_Unknown = 100, + k_eEVRHMDType_Unannounced_WindowsMR = 101, } public enum EFailureType { @@ -9014,7 +9409,9 @@ public enum EControllerSource k_EControllerSource_CenterTrackpad = 9, k_EControllerSource_RightJoystick = 10, k_EControllerSource_DPad = 11, - k_EControllerSource_Count = 12, + k_EControllerSource_Key = 12, + k_EControllerSource_Mouse = 13, + k_EControllerSource_Count = 14, } public enum EControllerSourceMode { @@ -9241,6 +9638,15 @@ public enum ESteamControllerLEDFlag k_ESteamControllerLEDFlag_SetColor = 0, k_ESteamControllerLEDFlag_RestoreUserDefault = 1, } +public enum ESteamInputType +{ + k_ESteamInputType_Unknown = 0, + k_ESteamInputType_SteamController = 1, + k_ESteamInputType_XBox360Controller = 2, + k_ESteamInputType_XBoxOneController = 3, + k_ESteamInputType_GenericXInput = 4, + k_ESteamInputType_PS4Controller = 5, +} public enum EUGCMatchingUGCType { k_EUGCMatchingUGCType_Items = 0, @@ -9410,6 +9816,23 @@ public enum ESteamItemFlags k_ESteamItemRemoved = 256, k_ESteamItemConsumed = 512, } +public enum EParentalFeature +{ + k_EFeatureInvalid = 0, + k_EFeatureStore = 1, + k_EFeatureCommunity = 2, + k_EFeatureProfile = 3, + k_EFeatureFriends = 4, + k_EFeatureNews = 5, + k_EFeatureTrading = 6, + k_EFeatureSettings = 7, + k_EFeatureConsole = 8, + k_EFeatureBrowser = 9, + k_EFeatureParentalSetup = 10, + k_EFeatureLibrary = 11, + k_EFeatureTest = 12, + k_EFeatureMax = 13, +} [StructLayout(LayoutKind.Sequential)] public struct CSteamID { public SteamID_t m_steamid; @@ -10176,13 +10599,6 @@ public enum ESteamItemFlags public uint m_cOffset; public uint m_cBytesReceived; } -[StructLayout(LayoutKind.Sequential)] public struct SteamUnifiedMessagesSendMethodResult_t -{ - public ulong m_hHandle; - public ulong m_unContext; - public EResult m_eResult; - public uint m_unResponseSize; -} [StructLayout(LayoutKind.Sequential)] public struct ControllerAnalogActionData_t { public EControllerSourceMode eMode; @@ -10275,6 +10691,7 @@ public enum ESteamItemFlags public EResult m_eResult; [MarshalAs(UnmanagedType.I1)] public bool m_bUserNeedsToAcceptWorkshopLegalAgreement; + public ulong m_nPublishedFileId; } [StructLayout(LayoutKind.Sequential)] public struct DownloadItemResult_t { @@ -10327,6 +10744,32 @@ public enum ESteamItemFlags public ulong m_nPublishedFileId; public ulong m_nChildPublishedFileId; } +[StructLayout(LayoutKind.Sequential)] public struct AddAppDependencyResult_t +{ + public EResult m_eResult; + public ulong m_nPublishedFileId; + public uint m_nAppID; +} +[StructLayout(LayoutKind.Sequential)] public struct RemoveAppDependencyResult_t +{ + public EResult m_eResult; + public ulong m_nPublishedFileId; + public uint m_nAppID; +} +[StructLayout(LayoutKind.Sequential)] public struct GetAppDependenciesResult_t +{ + public EResult m_eResult; + public ulong m_nPublishedFileId; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 32, ArraySubType = UnmanagedType.U4)] + public uint[] m_rgAppIDs; //uint[32] + public uint m_nNumAppDependencies; + public uint m_nTotalNumAppDependencies; +} +[StructLayout(LayoutKind.Sequential)] public struct DeleteItemResult_t +{ + public EResult m_eResult; + public ulong m_nPublishedFileId; +} [StructLayout(LayoutKind.Sequential)] public struct SteamCallback_t { public uint m_nAppID; @@ -10489,6 +10932,11 @@ public enum ESteamItemFlags { public uint unBrowserHandle; } +[StructLayout(LayoutKind.Sequential)] public struct HTML_BrowserRestarted_t +{ + public uint unBrowserHandle; + public uint unOldBrowserHandle; +} [StructLayout(LayoutKind.Sequential)] public struct SteamItemDetails_t { public ulong m_itemId; @@ -10513,6 +10961,18 @@ public enum ESteamItemFlags [MarshalAs(UnmanagedType.I1)] public bool m_bCachedData; } +[StructLayout(LayoutKind.Sequential)] public struct SteamInventoryStartPurchaseResult_t +{ + public EResult m_result; + public ulong m_ulOrderID; + public ulong m_ulTransID; +} +[StructLayout(LayoutKind.Sequential)] public struct SteamInventoryRequestPricesResult_t +{ + public EResult m_result; + [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 4)] + public string m_rgchCurrency; //char[4] +} [StructLayout(LayoutKind.Sequential)] public struct SteamCallback_t { public EBroadcastUploadResult m_eResult; @@ -10543,7 +11003,6 @@ public enum ESteamItemFlags public IntPtr m_pSteamRemoteStorage; // class ISteamRemoteStorage * public IntPtr m_pSteamScreenshots; // class ISteamScreenshots * public IntPtr m_pSteamHTTP; // class ISteamHTTP * - public IntPtr m_pSteamUnifiedMessages; // class ISteamUnifiedMessages * public IntPtr m_pController; // class ISteamController * public IntPtr m_pSteamUGC; // class ISteamUGC * public IntPtr m_pSteamAppList; // class ISteamAppList * @@ -10552,6 +11011,7 @@ public enum ESteamItemFlags public IntPtr m_pSteamHTMLSurface; // class ISteamHTMLSurface * public IntPtr m_pSteamInventory; // class ISteamInventory * public IntPtr m_pSteamVideo; // class ISteamVideo * + public IntPtr m_pSteamParentalSettings; // class ISteamParentalSettings * } [StructLayout(LayoutKind.Sequential)] public struct CCallbackBase { @@ -10723,6 +11183,9 @@ public static void UnregisterCallback(IntPtr pCallback) public const int k_iClientVideoCallbacks = 4600; public const int k_iClientInventoryCallbacks = 4700; public const int k_iClientBluetoothManagerCallbacks = 4800; +public const int k_iClientSharedConnectionCallbacks = 4900; +public const int k_ISteamParentalSettingsCallbacks = 5000; +public const int k_iClientShaderCallbacks = 5100; public const int k_cchPersonaNameMax = 128; public const int k_cwchPersonaNameMax = 32; public const int k_cchMaxRichPresenceKeys = 20; @@ -10731,7 +11194,6 @@ public static void UnregisterCallback(IntPtr pCallback) public const int k_cchStatNameMax = 128; public const int k_cchLeaderboardNameMax = 128; public const int k_cLeaderboardDetailsMax = 64; -public const ulong k_InvalidUnifiedMessageHandle = 0; public const ulong k_SteamItemInstanceIDInvalid = 0xffffffffffffffff; public const int k_SteamInventoryResultInvalid = -1; public static ISteamClient SteamClient() @@ -10824,11 +11286,6 @@ public static ISteamHTTP SteamHTTP() return new CSteamHTTP(SteamAPIInterop.SteamHTTP()); } -public static ISteamUnifiedMessages SteamUnifiedMessages() -{ -return new CSteamUnifiedMessages(SteamAPIInterop.SteamUnifiedMessages()); -} - public static ISteamController SteamController() { return new CSteamController(SteamAPIInterop.SteamController()); @@ -10859,6 +11316,11 @@ public static ISteamVideo SteamVideo() return new CSteamVideo(SteamAPIInterop.SteamVideo()); } +public static ISteamParentalSettings SteamParentalSettings() +{ +return new CSteamParentalSettings(SteamAPIInterop.SteamParentalSettings()); +} + public static ISteamGameServer SteamGameServer() { return new CSteamGameServer(SteamAPIInterop.SteamGameServer()); diff --git a/Generator/steam_sdk/steamclientpublic.h b/Generator/steam_sdk/steamclientpublic.h index 23b7581..7b89ba2 100644 --- a/Generator/steam_sdk/steamclientpublic.h +++ b/Generator/steam_sdk/steamclientpublic.h @@ -133,6 +133,10 @@ enum EResult k_EResultGSLTExpired = 106, // this token has expired from disuse; can be reset for use k_EResultInsufficientFunds = 107, // user doesn't have enough wallet funds to complete the action k_EResultTooManyPending = 108, // There are too many of this thing pending already + k_EResultNoSiteLicensesFound = 109, // No site licenses found + k_EResultWGNetworkSendExceeded = 110, // the WG couldn't send a response because we exceeded max network send size + k_EResultAccountNotFriends = 111, // the user is not mutually friends + k_EResultLimitedUserAccount = 112, // the user is limited }; // Error codes for use with the voice functions @@ -275,6 +279,7 @@ enum EAppOwnershipFlags //----------------------------------------------------------------------------- // Purpose: designed as flags to allow filters masks +// NOTE: If you add to this, please update PackageAppType (SteamConfig) as well as populatePackageAppType //----------------------------------------------------------------------------- enum EAppType { @@ -294,6 +299,7 @@ enum EAppType k_EAppType_Plugin = 0x1000, // Plug-in types for other Apps k_EAppType_Music = 0x2000, // Music files k_EAppType_Series = 0x4000, // Container app for video series + k_EAppType_Comic = 0x8000, // Comic Book k_EAppType_Shortcut = 0x40000000, // just a shortcut, client side only k_EAppType_DepotOnly = 0x80000000, // placeholder since depots and apps share the same namespace @@ -363,6 +369,7 @@ enum EChatRoomEnterResponse // k_EChatRoomEnterResponseNoRankingDataLobby = 12, // No longer used // k_EChatRoomEnterResponseNoRankingDataUser = 13, // No longer used // k_EChatRoomEnterResponseRankOutOfRange = 14, // No longer used + k_EChatRoomEnterResponseRatelimitExceeded = 15, // Join failed - to many join attempts in a very short period of time }; @@ -504,6 +511,25 @@ enum EVRHMDType k_eEVRHMDType_Oculus_Rift = 23, // Oculus rift k_eEVRHMDType_Oculus_Unknown = 40, // // Oculus unknown HMD + + k_eEVRHMDType_Acer_Unknown = 50, // Acer unknown HMD + k_eEVRHMDType_Acer_WindowsMR = 51, // Acer QHMD Windows MR headset + + k_eEVRHMDType_Dell_Unknown = 60, // Dell unknown HMD + k_eEVRHMDType_Dell_Visor = 61, // Dell Visor Windows MR headset + + k_eEVRHMDType_Lenovo_Unknown = 70, // Lenovo unknown HMD + k_eEVRHMDType_Lenovo_Explorer = 71, // Lenovo Explorer Windows MR headset + + k_eEVRHMDType_HP_Unknown = 80, // HP unknown HMD + k_eEVRHMDType_HP_WindowsMR = 81, // HP Windows MR headset + + k_eEVRHMDType_Samsung_Unknown = 90, // Samsung unknown HMD + k_eEVRHMDType_Samsung_Odyssey = 91, // Samsung Odyssey Windows MR headset + + k_eEVRHMDType_Unannounced_Unknown = 100, // Unannounced unknown HMD + k_eEVRHMDType_Unannounced_WindowsMR = 101, // Unannounced Windows MR headset + }; @@ -516,6 +542,15 @@ static inline bool BIsOculusHMD( EVRHMDType eType ) } +//----------------------------------------------------------------------------- +// Purpose: true if this is from a Windows MR HMD +//----------------------------------------------------------------------------- +static inline bool BIsWindowsMRHeadset( EVRHMDType eType ) +{ + return eType >= k_eEVRHMDType_Acer_WindowsMR && eType <= k_eEVRHMDType_Unannounced_WindowsMR; +} + + //----------------------------------------------------------------------------- // Purpose: true if this is from an Vive HMD //----------------------------------------------------------------------------- diff --git a/Generator/steam_sdk/steamtypes.h b/Generator/steam_sdk/steamtypes.h index f74df1a..45c195e 100644 --- a/Generator/steam_sdk/steamtypes.h +++ b/Generator/steam_sdk/steamtypes.h @@ -24,7 +24,7 @@ typedef unsigned char uint8; #define POSIX 1 #endif -#if defined(__x86_64__) || defined(_WIN64) +#if defined(__x86_64__) || defined(_WIN64) || defined(__aarch64__) #define X64BITS #endif @@ -176,6 +176,9 @@ const PartnerId_t k_uPartnerIdInvalid = 0; typedef uint64 ManifestId_t; const ManifestId_t k_uManifestIdInvalid = 0; +// ID for cafe sites +typedef uint64 SiteId_t; +const SiteId_t k_ulSiteIdInvalid = 0; #endif // STEAMTYPES_H