From b7cd3625c8badf3a15a6f1b49281ea3bbadf8523 Mon Sep 17 00:00:00 2001 From: nillerusr Date: Fri, 23 Oct 2020 16:12:04 +0300 Subject: [PATCH] change steam_api headers --- public/steam/isteamapplist.h | 2 +- public/steam/isteamapps.h | 56 +- public/steam/isteamappticket.h | 2 +- public/steam/isteamclient.h | 75 +- public/steam/isteamcontroller.h | 269 +- public/steam/isteamfriends.h | 16 +- public/steam/isteamgameserver.h | 5 +- public/steam/isteamgameserverstats.h | 4 +- public/steam/isteamgamestats.h | 75 - public/steam/isteamhtmlsurface.h | 24 +- public/steam/isteaminventory.h | 175 +- public/steam/isteammasterserverupdater.h | 1 - public/steam/isteammatchmaking.h | 4 + public/steam/isteamnetworking.h | 2 +- public/steam/isteamparentalsettings.h | 57 + public/steam/isteamps3overlayrenderer.h | 2 +- public/steam/isteamremotestorage.h | 46 +- public/steam/isteamscreenshots.h | 26 +- public/steam/isteamstreamlauncher.h | 85 - public/steam/isteamugc.h | 190 +- public/steam/isteamunifiedmessages.h | 63 - public/steam/isteamuser.h | 121 +- public/steam/isteamuserstats.h | 13 +- public/steam/isteamutils.h | 98 +- public/steam/isteamvideo.h | 17 +- public/steam/matchmakingtypes.h | 6 +- public/steam/steam_api.h | 526 +- public/steam/steam_api.json | 7241 ------------------ public/steam/steam_api_flat.h | 223 +- public/steam/steam_api_internal.h | 328 + public/steam/steam_api_interop.cs | 8803 ---------------------- public/steam/steam_gameserver.h | 206 +- public/steam/steamclientpublic.h | 123 +- public/steam/steamencryptedappticket.h | 2 +- public/steam/steamhttpenums.h | 3 +- public/steam/steamps3params.h | 2 +- public/steam/steamtypes.h | 13 +- public/steam/steamuniverse.h | 2 +- public/steam/steamvr_flat.h | 33 - public/steam/steamvr_interop.cs | 285 - 40 files changed, 1840 insertions(+), 17384 deletions(-) delete mode 100644 public/steam/isteamgamestats.h create mode 100644 public/steam/isteamparentalsettings.h delete mode 100644 public/steam/isteamstreamlauncher.h delete mode 100644 public/steam/isteamunifiedmessages.h delete mode 100644 public/steam/steam_api.json create mode 100644 public/steam/steam_api_internal.h delete mode 100644 public/steam/steam_api_interop.cs delete mode 100644 public/steam/steamvr_flat.h delete mode 100644 public/steam/steamvr_interop.cs diff --git a/public/steam/isteamapplist.h b/public/steam/isteamapplist.h index e6726c1a..d6789095 100644 --- a/public/steam/isteamapplist.h +++ b/public/steam/isteamapplist.h @@ -25,7 +25,7 @@ public: virtual uint32 GetNumInstalledApps() = 0; virtual uint32 GetInstalledApps( AppId_t *pvecAppID, uint32 unMaxAppIDs ) = 0; - virtual int GetAppName( AppId_t nAppID, char *pchName, int cchNameMax ) = 0; // returns -1 if no name was found + virtual int GetAppName( AppId_t nAppID, OUT_STRING() char *pchName, int cchNameMax ) = 0; // returns -1 if no name was found virtual int GetAppInstallDir( AppId_t nAppID, char *pchDirectory, int cchNameMax ) = 0; // returns -1 if no dir was found virtual int GetAppBuildId( AppId_t nAppID ) = 0; // return the buildid of this app, may change at any time based on backend updates to the game diff --git a/public/steam/isteamapps.h b/public/steam/isteamapps.h index 07005836..9a97b4a3 100644 --- a/public/steam/isteamapps.h +++ b/public/steam/isteamapps.h @@ -10,7 +10,7 @@ #pragma once #endif -const int k_cubAppProofOfPurchaseKeyMax = 64; // max bytes of a legacy cd key we support +const int k_cubAppProofOfPurchaseKeyMax = 240; // max supported length of a legacy cd key //----------------------------------------------------------------------------- @@ -50,7 +50,7 @@ public: virtual void InstallDLC( AppId_t nAppID ) = 0; virtual void UninstallDLC( AppId_t nAppID ) = 0; - // Request cd-key for yourself or owned DLC. If you are interested in this + // Request legacy cd-key for yourself or owned DLC. If you are interested in this // data then make sure you provide us with a list of valid keys to be distributed // to users when they purchase the game, before the game ships. // You'll receive an AppProofOfPurchaseKeyResponse_t callback when @@ -78,13 +78,18 @@ public: // return the buildid of this app, may change at any time based on backend updates to the game virtual int GetAppBuildId() = 0; -#ifdef _PS3 - // Result returned in a RegisterActivationCodeResponse_t callresult - virtual SteamAPICall_t RegisterActivationCode( const char *pchActivationCode ) = 0; -#endif + + // Request all proof of purchase keys for the calling appid and asociated DLC. + // A series of AppProofOfPurchaseKeyResponse_t callbacks will be sent with + // appropriate appid values, ending with a final callback where the m_nAppId + // member is k_uAppIdInvalid (zero). + virtual void RequestAllProofOfPurchaseKeys() = 0; + + CALL_RESULT( FileDetailsResult_t ) + virtual SteamAPICall_t GetFileDetails( const char* pszFileName ) = 0; }; -#define STEAMAPPS_INTERFACE_VERSION "STEAMAPPS_INTERFACE_VERSION007" +#define STEAMAPPS_INTERFACE_VERSION "STEAMAPPS_INTERFACE_VERSION008" // callbacks #if defined( VALVE_CALLBACK_PACK_SMALL ) @@ -127,16 +132,6 @@ struct RegisterActivationCodeResponse_t uint32 m_unPackageRegistered; // package that was registered. Only set on success }; -//----------------------------------------------------------------------------- -// Purpose: response to RegisterActivationCode() -//----------------------------------------------------------------------------- -struct AppProofOfPurchaseKeyResponse_t -{ - enum { k_iCallback = k_iSteamAppsCallbacks + 13 }; - EResult m_eResult; - uint32 m_nAppID; - char m_rgchKey[ k_cubAppProofOfPurchaseKeyMax ]; -}; //--------------------------------------------------------------------------------- // Purpose: posted after the user gains executes a steam url with query parameters @@ -150,5 +145,32 @@ struct NewLaunchQueryParameters_t }; +//----------------------------------------------------------------------------- +// Purpose: response to RequestAppProofOfPurchaseKey/RequestAllProofOfPurchaseKeys +// for supporting third-party CD keys, or other proof-of-purchase systems. +//----------------------------------------------------------------------------- +struct AppProofOfPurchaseKeyResponse_t +{ + enum { k_iCallback = k_iSteamAppsCallbacks + 21 }; + EResult m_eResult; + uint32 m_nAppID; + uint32 m_cchKeyLength; + char m_rgchKey[k_cubAppProofOfPurchaseKeyMax]; +}; + + +//----------------------------------------------------------------------------- +// Purpose: response to GetFileDetails +//----------------------------------------------------------------------------- +struct FileDetailsResult_t +{ + enum { k_iCallback = k_iSteamAppsCallbacks + 23 }; + EResult m_eResult; + uint64 m_ulFileSize; // original file size in bytes + uint8 m_FileSHA[20]; // original file SHA1 hash + uint32 m_unFlags; // +}; + + #pragma pack( pop ) #endif // ISTEAMAPPS_H diff --git a/public/steam/isteamappticket.h b/public/steam/isteamappticket.h index 2e39eb0b..21fb9e13 100644 --- a/public/steam/isteamappticket.h +++ b/public/steam/isteamappticket.h @@ -1,4 +1,4 @@ -//========= Copyright Valve Corporation, All rights reserved. ============// +//====== Copyright 1996-2008, Valve Corporation, All rights reserved. ======= // // Purpose: a private, but well versioned, interface to get at critical bits // of a steam3 appticket - consumed by the simple drm wrapper to let it diff --git a/public/steam/isteamclient.h b/public/steam/isteamclient.h index 796d72d6..af8828d0 100644 --- a/public/steam/isteamclient.h +++ b/public/steam/isteamclient.h @@ -21,6 +21,14 @@ #define REFERENCE(arg) ((void)arg) #endif +#if ( defined(STEAM_API_EXPORTS) || defined(STEAM_API_NODLL) ) && !defined(API_GEN) +#define STEAM_PRIVATE_API( ... ) __VA_ARGS__ +#elif defined(STEAM_API_EXPORTS) && defined(API_GEN) +#define STEAM_PRIVATE_API( ... ) +#else +#define STEAM_PRIVATE_API( ... ) protected: __VA_ARGS__ public: +#endif + #if defined(__linux__) || defined(__APPLE__) // The 32-bit version of gcc has the alignment requirement for uint64 and double set to // 4 meaning that even with #pragma pack(8) these types will only be four-byte aligned. @@ -69,7 +77,6 @@ typedef int32 HSteamUser; #define __cdecl #endif extern "C" typedef void (__cdecl *SteamAPIWarningMessageHook_t)(int, const char *); -extern "C" typedef void( *SteamAPI_PostAPIResultInProcess_t )(SteamAPICall_t callHandle, void *, uint32 unCallbackSize, int iCallbackNum); extern "C" typedef uint32 ( *SteamAPI_CheckCallbackRegistered_t )( int iCallbackNum ); #if defined( __SNC__ ) #pragma diag_suppress=1700 // warning 1700: class "%s" has virtual functions but non-virtual destructor @@ -93,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 @@ -107,26 +114,32 @@ class ISteamVideo; // different process or is local. // // For most scenarios this is all handled automatically via SteamAPI_Init(). -// You'll only need to use these interfaces if you have a more complex versioning scheme, -// where you want to get different versions of the same interface in different dll's in your project. +// You'll only need these APIs if you have a more complex versioning scheme, +// or if you want to implement a multiplexed gameserver where a single process +// is handling multiple games at once with independent gameserver SteamIDs. //----------------------------------------------------------------------------- class ISteamClient { public: - // Creates a communication pipe to the Steam client + // Creates a communication pipe to the Steam client. + // NOT THREADSAFE - ensure that no other threads are accessing Steamworks API when calling virtual HSteamPipe CreateSteamPipe() = 0; // Releases a previously created communications pipe + // NOT THREADSAFE - ensure that no other threads are accessing Steamworks API when calling virtual bool BReleaseSteamPipe( HSteamPipe hSteamPipe ) = 0; // connects to an existing global user, failing if none exists // used by the game to coordinate with the steamUI + // NOT THREADSAFE - ensure that no other threads are accessing Steamworks API when calling virtual HSteamUser ConnectToGlobalUser( HSteamPipe hSteamPipe ) = 0; // used by game servers, create a steam user that won't be shared with anyone else + // NOT THREADSAFE - ensure that no other threads are accessing Steamworks API when calling virtual HSteamUser CreateLocalUser( HSteamPipe *phSteamPipe, EAccountType eAccountType ) = 0; // removes an allocated user + // NOT THREADSAFE - ensure that no other threads are accessing Steamworks API when calling virtual void ReleaseUser( HSteamPipe hSteamPipe, HSteamUser hUser ) = 0; // retrieves the ISteamUser interface associated with the handle @@ -172,9 +185,8 @@ public: // user screenshots virtual ISteamScreenshots *GetISteamScreenshots( HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char *pchVersion ) = 0; - // this needs to be called every frame to process matchmaking results - // redundant if you're already calling SteamAPI_RunCallbacks() - virtual void RunFrame() = 0; + // Deprecated. Applications should use SteamAPI_RunCallbacks() or SteamGameServer_RunCallbacks() instead. + STEAM_PRIVATE_API( virtual void RunFrame() = 0; ) // returns the number of IPC calls made since the last time this function was called // Used for perf debugging so you can understand how many IPC calls your game makes per frame @@ -185,21 +197,17 @@ public: // API warning handling // 'int' is the severity; 0 for msg, 1 for warning // 'const char *' is the text of the message - // callbacks will occur directly after the API function is called that generated the warning or message + // callbacks will occur directly after the API function is called that generated the warning or message. virtual void SetWarningMessageHook( SteamAPIWarningMessageHook_t pFunction ) = 0; // Trigger global shutdown for the DLL virtual bool BShutdownIfAllPipesClosed() = 0; -#ifdef _PS3 - virtual ISteamPS3OverlayRender *GetISteamPS3OverlayRender() = 0; -#endif - // 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; @@ -220,15 +228,18 @@ public: virtual ISteamHTMLSurface *GetISteamHTMLSurface(HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char *pchVersion) = 0; // Helper functions for internal Steam usage - virtual void Set_SteamAPI_CPostAPIResultInProcess( SteamAPI_PostAPIResultInProcess_t func ) = 0; - virtual void Remove_SteamAPI_CPostAPIResultInProcess( SteamAPI_PostAPIResultInProcess_t func ) = 0; - virtual void Set_SteamAPI_CCheckCallbackRegisteredInProcess( SteamAPI_CheckCallbackRegistered_t func ) = 0; + STEAM_PRIVATE_API( virtual void DEPRECATED_Set_SteamAPI_CPostAPIResultInProcess( void (*)() ) = 0; ) + STEAM_PRIVATE_API( virtual void DEPRECATED_Remove_SteamAPI_CPostAPIResultInProcess( void (*)() ) = 0; ) + STEAM_PRIVATE_API( virtual void Set_SteamAPI_CCheckCallbackRegisteredInProcess( SteamAPI_CheckCallbackRegistered_t func ) = 0; ) // inventory virtual ISteamInventory *GetISteamInventory( HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char *pchVersion ) = 0; // 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; }; @@ -280,11 +291,15 @@ enum { k_iSteamAppListCallbacks = 3900 }; enum { k_iSteamMusicCallbacks = 4000 }; enum { k_iSteamMusicRemoteCallbacks = 4100 }; enum { k_iClientVRCallbacks = 4200 }; -enum { k_iClientReservedCallbacks = 4300 }; -enum { k_iSteamReservedCallbacks = 4400 }; +enum { k_iClientGameNotificationCallbacks = 4300 }; +enum { k_iSteamGameNotificationCallbacks = 4400 }; 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 @@ -292,14 +307,11 @@ enum { k_iClientInventoryCallbacks = 4700 }; // Do not change any of these. //----------------------------------------------------------------------------- -struct SteamCallback_t -{ -public: - SteamCallback_t() {} -}; +#ifdef STEAM_CALLBACK_INSPECTION_ENABLED #define DEFINE_CALLBACK( callbackname, callbackid ) \ -struct callbackname : SteamCallback_t { \ +struct callbackname { \ + typedef callbackname SteamCallback_t; \ enum { k_iCallback = callbackid }; \ static callbackname *GetNullPointer() { return 0; } \ static const char *GetCallbackName() { return #callbackname; } \ @@ -337,6 +349,17 @@ struct callbackname : SteamCallback_t { \ static bool GetMemberVariable( uint32 index, uint32 &varOffset, uint32 &varSize, uint32 &varCount, const char **pszName, const char **pszType ) { REFERENCE( pszType ); REFERENCE( pszName ); REFERENCE( varCount ); REFERENCE( varSize ); REFERENCE( varOffset ); REFERENCE( index ); return false; } \ }; +#else + +#define DEFINE_CALLBACK( callbackname, callbackid ) struct callbackname { typedef callbackname SteamCallback_t; enum { k_iCallback = callbackid }; +#define CALLBACK_MEMBER( varidx, vartype, varname ) public: vartype varname ; +#define CALLBACK_ARRAY( varidx, vartype, varname, varcount ) public: vartype varname [ varcount ]; +#define END_CALLBACK_INTERNAL_BEGIN( numvars ) +#define END_CALLBACK_INTERNAL_SWITCH( varidx ) +#define END_CALLBACK_INTERNAL_END() }; +#define END_DEFINE_CALLBACK_0() }; + +#endif #define END_DEFINE_CALLBACK_1() \ END_CALLBACK_INTERNAL_BEGIN( 1 ) \ diff --git a/public/steam/isteamcontroller.h b/public/steam/isteamcontroller.h index a973696c..6f31b750 100644 --- a/public/steam/isteamcontroller.h +++ b/public/steam/isteamcontroller.h @@ -16,7 +16,7 @@ #define STEAM_CONTROLLER_MAX_ANALOG_ACTIONS 16 -#define STEAM_CONTROLLER_MAX_DIGITAL_ACTIONS 32 +#define STEAM_CONTROLLER_MAX_DIGITAL_ACTIONS 128 #define STEAM_CONTROLLER_MAX_ORIGINS 8 @@ -42,7 +42,13 @@ enum EControllerSource k_EControllerSource_Switch, k_EControllerSource_LeftTrigger, k_EControllerSource_RightTrigger, - k_EControllerSource_Gyro + k_EControllerSource_Gyro, + 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 }; enum EControllerSourceMode @@ -54,14 +60,21 @@ enum EControllerSourceMode k_EControllerSourceMode_AbsoluteMouse, k_EControllerSourceMode_RelativeMouse, k_EControllerSourceMode_JoystickMove, + k_EControllerSourceMode_JoystickMouse, k_EControllerSourceMode_JoystickCamera, k_EControllerSourceMode_ScrollWheel, k_EControllerSourceMode_Trigger, - k_EControllerSourceMode_TouchMenu + k_EControllerSourceMode_TouchMenu, + k_EControllerSourceMode_MouseJoystick, + k_EControllerSourceMode_MouseRegion, + k_EControllerSourceMode_RadialMenu, + k_EControllerSourceMode_SingleButton, + k_EControllerSourceMode_Switches }; enum EControllerActionOrigin { + // Steam Controller k_EControllerActionOrigin_None, k_EControllerActionOrigin_A, k_EControllerActionOrigin_B, @@ -102,9 +115,190 @@ enum EControllerActionOrigin k_EControllerActionOrigin_Gyro_Yaw, k_EControllerActionOrigin_Gyro_Roll, + // PS4 Dual Shock + k_EControllerActionOrigin_PS4_X, + k_EControllerActionOrigin_PS4_Circle, + k_EControllerActionOrigin_PS4_Triangle, + k_EControllerActionOrigin_PS4_Square, + k_EControllerActionOrigin_PS4_LeftBumper, + k_EControllerActionOrigin_PS4_RightBumper, + k_EControllerActionOrigin_PS4_Options, //Start + k_EControllerActionOrigin_PS4_Share, //Back + k_EControllerActionOrigin_PS4_LeftPad_Touch, + k_EControllerActionOrigin_PS4_LeftPad_Swipe, + k_EControllerActionOrigin_PS4_LeftPad_Click, + k_EControllerActionOrigin_PS4_LeftPad_DPadNorth, + k_EControllerActionOrigin_PS4_LeftPad_DPadSouth, + k_EControllerActionOrigin_PS4_LeftPad_DPadWest, + k_EControllerActionOrigin_PS4_LeftPad_DPadEast, + k_EControllerActionOrigin_PS4_RightPad_Touch, + k_EControllerActionOrigin_PS4_RightPad_Swipe, + k_EControllerActionOrigin_PS4_RightPad_Click, + k_EControllerActionOrigin_PS4_RightPad_DPadNorth, + k_EControllerActionOrigin_PS4_RightPad_DPadSouth, + k_EControllerActionOrigin_PS4_RightPad_DPadWest, + k_EControllerActionOrigin_PS4_RightPad_DPadEast, + k_EControllerActionOrigin_PS4_CenterPad_Touch, + k_EControllerActionOrigin_PS4_CenterPad_Swipe, + k_EControllerActionOrigin_PS4_CenterPad_Click, + k_EControllerActionOrigin_PS4_CenterPad_DPadNorth, + k_EControllerActionOrigin_PS4_CenterPad_DPadSouth, + k_EControllerActionOrigin_PS4_CenterPad_DPadWest, + k_EControllerActionOrigin_PS4_CenterPad_DPadEast, + k_EControllerActionOrigin_PS4_LeftTrigger_Pull, + k_EControllerActionOrigin_PS4_LeftTrigger_Click, + k_EControllerActionOrigin_PS4_RightTrigger_Pull, + k_EControllerActionOrigin_PS4_RightTrigger_Click, + k_EControllerActionOrigin_PS4_LeftStick_Move, + k_EControllerActionOrigin_PS4_LeftStick_Click, + k_EControllerActionOrigin_PS4_LeftStick_DPadNorth, + k_EControllerActionOrigin_PS4_LeftStick_DPadSouth, + k_EControllerActionOrigin_PS4_LeftStick_DPadWest, + k_EControllerActionOrigin_PS4_LeftStick_DPadEast, + k_EControllerActionOrigin_PS4_RightStick_Move, + k_EControllerActionOrigin_PS4_RightStick_Click, + k_EControllerActionOrigin_PS4_RightStick_DPadNorth, + k_EControllerActionOrigin_PS4_RightStick_DPadSouth, + k_EControllerActionOrigin_PS4_RightStick_DPadWest, + k_EControllerActionOrigin_PS4_RightStick_DPadEast, + k_EControllerActionOrigin_PS4_DPad_North, + k_EControllerActionOrigin_PS4_DPad_South, + k_EControllerActionOrigin_PS4_DPad_West, + k_EControllerActionOrigin_PS4_DPad_East, + k_EControllerActionOrigin_PS4_Gyro_Move, + k_EControllerActionOrigin_PS4_Gyro_Pitch, + k_EControllerActionOrigin_PS4_Gyro_Yaw, + k_EControllerActionOrigin_PS4_Gyro_Roll, + + // XBox One + k_EControllerActionOrigin_XBoxOne_A, + k_EControllerActionOrigin_XBoxOne_B, + k_EControllerActionOrigin_XBoxOne_X, + k_EControllerActionOrigin_XBoxOne_Y, + k_EControllerActionOrigin_XBoxOne_LeftBumper, + k_EControllerActionOrigin_XBoxOne_RightBumper, + k_EControllerActionOrigin_XBoxOne_Menu, //Start + k_EControllerActionOrigin_XBoxOne_View, //Back + k_EControllerActionOrigin_XBoxOne_LeftTrigger_Pull, + k_EControllerActionOrigin_XBoxOne_LeftTrigger_Click, + k_EControllerActionOrigin_XBoxOne_RightTrigger_Pull, + k_EControllerActionOrigin_XBoxOne_RightTrigger_Click, + k_EControllerActionOrigin_XBoxOne_LeftStick_Move, + k_EControllerActionOrigin_XBoxOne_LeftStick_Click, + k_EControllerActionOrigin_XBoxOne_LeftStick_DPadNorth, + k_EControllerActionOrigin_XBoxOne_LeftStick_DPadSouth, + k_EControllerActionOrigin_XBoxOne_LeftStick_DPadWest, + k_EControllerActionOrigin_XBoxOne_LeftStick_DPadEast, + k_EControllerActionOrigin_XBoxOne_RightStick_Move, + k_EControllerActionOrigin_XBoxOne_RightStick_Click, + k_EControllerActionOrigin_XBoxOne_RightStick_DPadNorth, + k_EControllerActionOrigin_XBoxOne_RightStick_DPadSouth, + k_EControllerActionOrigin_XBoxOne_RightStick_DPadWest, + k_EControllerActionOrigin_XBoxOne_RightStick_DPadEast, + k_EControllerActionOrigin_XBoxOne_DPad_North, + k_EControllerActionOrigin_XBoxOne_DPad_South, + k_EControllerActionOrigin_XBoxOne_DPad_West, + k_EControllerActionOrigin_XBoxOne_DPad_East, + + // XBox 360 + k_EControllerActionOrigin_XBox360_A, + k_EControllerActionOrigin_XBox360_B, + k_EControllerActionOrigin_XBox360_X, + k_EControllerActionOrigin_XBox360_Y, + k_EControllerActionOrigin_XBox360_LeftBumper, + k_EControllerActionOrigin_XBox360_RightBumper, + k_EControllerActionOrigin_XBox360_Start, //Start + k_EControllerActionOrigin_XBox360_Back, //Back + k_EControllerActionOrigin_XBox360_LeftTrigger_Pull, + k_EControllerActionOrigin_XBox360_LeftTrigger_Click, + k_EControllerActionOrigin_XBox360_RightTrigger_Pull, + k_EControllerActionOrigin_XBox360_RightTrigger_Click, + k_EControllerActionOrigin_XBox360_LeftStick_Move, + k_EControllerActionOrigin_XBox360_LeftStick_Click, + k_EControllerActionOrigin_XBox360_LeftStick_DPadNorth, + k_EControllerActionOrigin_XBox360_LeftStick_DPadSouth, + k_EControllerActionOrigin_XBox360_LeftStick_DPadWest, + k_EControllerActionOrigin_XBox360_LeftStick_DPadEast, + k_EControllerActionOrigin_XBox360_RightStick_Move, + k_EControllerActionOrigin_XBox360_RightStick_Click, + k_EControllerActionOrigin_XBox360_RightStick_DPadNorth, + k_EControllerActionOrigin_XBox360_RightStick_DPadSouth, + k_EControllerActionOrigin_XBox360_RightStick_DPadWest, + k_EControllerActionOrigin_XBox360_RightStick_DPadEast, + k_EControllerActionOrigin_XBox360_DPad_North, + k_EControllerActionOrigin_XBox360_DPad_South, + k_EControllerActionOrigin_XBox360_DPad_West, + k_EControllerActionOrigin_XBox360_DPad_East, + + // SteamController V2 + k_EControllerActionOrigin_SteamV2_A, + k_EControllerActionOrigin_SteamV2_B, + k_EControllerActionOrigin_SteamV2_X, + k_EControllerActionOrigin_SteamV2_Y, + k_EControllerActionOrigin_SteamV2_LeftBumper, + k_EControllerActionOrigin_SteamV2_RightBumper, + k_EControllerActionOrigin_SteamV2_LeftGrip, + k_EControllerActionOrigin_SteamV2_RightGrip, + k_EControllerActionOrigin_SteamV2_LeftGrip_Upper, + k_EControllerActionOrigin_SteamV2_RightGrip_Upper, + k_EControllerActionOrigin_SteamV2_LeftBumper_Pressure, + k_EControllerActionOrigin_SteamV2_RightBumper_Pressure, + k_EControllerActionOrigin_SteamV2_LeftGrip_Pressure, + k_EControllerActionOrigin_SteamV2_RightGrip_Pressure, + k_EControllerActionOrigin_SteamV2_LeftGrip_Upper_Pressure, + k_EControllerActionOrigin_SteamV2_RightGrip_Upper_Pressure, + k_EControllerActionOrigin_SteamV2_Start, + k_EControllerActionOrigin_SteamV2_Back, + k_EControllerActionOrigin_SteamV2_LeftPad_Touch, + k_EControllerActionOrigin_SteamV2_LeftPad_Swipe, + k_EControllerActionOrigin_SteamV2_LeftPad_Click, + k_EControllerActionOrigin_SteamV2_LeftPad_Pressure, + k_EControllerActionOrigin_SteamV2_LeftPad_DPadNorth, + k_EControllerActionOrigin_SteamV2_LeftPad_DPadSouth, + k_EControllerActionOrigin_SteamV2_LeftPad_DPadWest, + k_EControllerActionOrigin_SteamV2_LeftPad_DPadEast, + k_EControllerActionOrigin_SteamV2_RightPad_Touch, + k_EControllerActionOrigin_SteamV2_RightPad_Swipe, + k_EControllerActionOrigin_SteamV2_RightPad_Click, + k_EControllerActionOrigin_SteamV2_RightPad_Pressure, + k_EControllerActionOrigin_SteamV2_RightPad_DPadNorth, + k_EControllerActionOrigin_SteamV2_RightPad_DPadSouth, + k_EControllerActionOrigin_SteamV2_RightPad_DPadWest, + k_EControllerActionOrigin_SteamV2_RightPad_DPadEast, + k_EControllerActionOrigin_SteamV2_LeftTrigger_Pull, + k_EControllerActionOrigin_SteamV2_LeftTrigger_Click, + k_EControllerActionOrigin_SteamV2_RightTrigger_Pull, + k_EControllerActionOrigin_SteamV2_RightTrigger_Click, + k_EControllerActionOrigin_SteamV2_LeftStick_Move, + k_EControllerActionOrigin_SteamV2_LeftStick_Click, + k_EControllerActionOrigin_SteamV2_LeftStick_DPadNorth, + k_EControllerActionOrigin_SteamV2_LeftStick_DPadSouth, + k_EControllerActionOrigin_SteamV2_LeftStick_DPadWest, + k_EControllerActionOrigin_SteamV2_LeftStick_DPadEast, + k_EControllerActionOrigin_SteamV2_Gyro_Move, + k_EControllerActionOrigin_SteamV2_Gyro_Pitch, + k_EControllerActionOrigin_SteamV2_Gyro_Yaw, + k_EControllerActionOrigin_SteamV2_Gyro_Roll, + k_EControllerActionOrigin_Count }; +enum ESteamControllerLEDFlag +{ + k_ESteamControllerLEDFlag_SetColor, + 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; @@ -139,6 +333,25 @@ struct ControllerDigitalActionData_t bool bActive; }; +struct ControllerMotionData_t +{ + // Sensor-fused absolute rotation; will drift in heading + float rotQuatX; + float rotQuatY; + float rotQuatZ; + float rotQuatW; + + // Positional acceleration + float posAccelX; + float posAccelY; + float posAccelZ; + + // Angular velocity + float rotVelX; + float rotVelY; + float rotVelZ; +}; + #pragma pack( pop ) @@ -153,8 +366,9 @@ public: virtual bool Init() = 0; virtual bool Shutdown() = 0; - // Pump callback/callresult events - // Note: SteamAPI_RunCallbacks will do this for you, so you should never need to call this directly. + // Synchronize API state with the latest Steam Controller inputs available. This + // is performed automatically by SteamAPI_RunCallbacks, but for the absolute lowest + // possible latency, you call this directly before reading controller state. virtual void RunFrame() = 0; // Enumerate currently connected controllers @@ -175,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. @@ -196,15 +416,46 @@ public: // Get the origin(s) for an analog action within an action set. Returns the number of origins supplied in originsOut. Use this to display the appropriate on-screen prompt for the action. // originsOut should point to a STEAM_CONTROLLER_MAX_ORIGINS sized array of EControllerActionOrigin handles virtual int GetAnalogActionOrigins( ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle, ControllerAnalogActionHandle_t analogActionHandle, EControllerActionOrigin *originsOut ) = 0; - - - + virtual void StopAnalogActionMomentum( ControllerHandle_t controllerHandle, ControllerAnalogActionHandle_t eAction ) = 0; // Trigger a haptic pulse on a controller virtual void TriggerHapticPulse( ControllerHandle_t controllerHandle, ESteamControllerPad eTargetPad, unsigned short usDurationMicroSec ) = 0; + + // Trigger a pulse with a duty cycle of usDurationMicroSec / usOffMicroSec, unRepeat times. + // nFlags is currently unused and reserved for future use. + virtual void TriggerRepeatedHapticPulse( ControllerHandle_t controllerHandle, ESteamControllerPad eTargetPad, unsigned short usDurationMicroSec, unsigned short usOffMicroSec, unsigned short unRepeat, unsigned int nFlags ) = 0; + + // Tigger a vibration event on supported controllers. + virtual void TriggerVibration( ControllerHandle_t controllerHandle, unsigned short usLeftSpeed, unsigned short usRightSpeed ) = 0; + + // Set the controller LED color on supported controllers. + virtual void SetLEDColor( ControllerHandle_t controllerHandle, uint8 nColorR, uint8 nColorG, uint8 nColorB, unsigned int nFlags ) = 0; + + // Returns the associated gamepad index for the specified controller, if emulating a gamepad + virtual int GetGamepadIndexForController( ControllerHandle_t ulControllerHandle ) = 0; + + // Returns the associated controller handle for the specified emulated gamepad + virtual ControllerHandle_t GetControllerForGamepadIndex( int nIndex ) = 0; + + // Returns raw motion data from the specified controller + virtual ControllerMotionData_t GetMotionData( ControllerHandle_t controllerHandle ) = 0; + + // Attempt to display origins of given action in the controller HUD, for the currently active action set + // Returns false is overlay is disabled / unavailable, or the user is not in Big Picture mode + virtual bool ShowDigitalActionOrigins( ControllerHandle_t controllerHandle, ControllerDigitalActionHandle_t digitalActionHandle, float flScale, float flXPosition, float flYPosition ) = 0; + virtual bool ShowAnalogActionOrigins( ControllerHandle_t controllerHandle, ControllerAnalogActionHandle_t analogActionHandle, float flScale, float flXPosition, float flYPosition ) = 0; + + // Returns a localized string (from Steam's language setting) for the specified origin + virtual const char *GetStringForActionOrigin( EControllerActionOrigin eOrigin ) = 0; + + // 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 "SteamController003" +#define STEAMCONTROLLER_INTERFACE_VERSION "SteamController006" #endif // ISTEAMCONTROLLER_H diff --git a/public/steam/isteamfriends.h b/public/steam/isteamfriends.h index 60526edd..c1754c26 100644 --- a/public/steam/isteamfriends.h +++ b/public/steam/isteamfriends.h @@ -26,7 +26,7 @@ enum EFriendRelationship k_EFriendRelationshipRequestInitiator = 4, k_EFriendRelationshipIgnored = 5, // this is stored; the user has explicit blocked this other user from comments/chat/etc k_EFriendRelationshipIgnoredFriend = 6, - k_EFriendRelationshipSuggested = 7, + k_EFriendRelationshipSuggested_DEPRECATED = 7, // was used by the original implementation of the facebook linking feature, but now unused. // keep this updated k_EFriendRelationshipMax = 8, @@ -80,7 +80,8 @@ enum EFriendFlags k_EFriendFlagRequestingInfo = 0x100, k_EFriendFlagIgnored = 0x200, k_EFriendFlagIgnoredFriend = 0x400, - k_EFriendFlagSuggested = 0x800, + // k_EFriendFlagSuggested = 0x800, // not used + k_EFriendFlagChatMember = 0x1000, k_EFriendFlagAll = 0xFFFF, }; @@ -175,6 +176,7 @@ public: // // If the name change fails to happen on the server, then an additional global PersonaStateChange_t will be posted // to change the name back, in addition to the SetPersonaNameResponse_t callback. + CALL_RESULT( SetPersonaNameResponse_t ) virtual SteamAPICall_t SetPersonaName( const char *pchPersonaName ) = 0; // gets the status of the current user @@ -307,6 +309,7 @@ public: // you can only ask about clans that a user is a member of // note that this won't download avatars automatically; if you get an officer, // and no avatar image is available, call RequestUserInformation( steamID, false ) to download the avatar + CALL_RESULT( ClanOfficerListResponse_t ) virtual SteamAPICall_t RequestClanOfficerList( CSteamID steamIDClan ) = 0; // iteration of clan officers - can only be done when a RequestClanOfficerList() call has completed @@ -324,7 +327,7 @@ public: // Rich Presence data is automatically shared between friends who are in the same game // Each user has a set of Key/Value pairs - // Up to 20 different keys can be set + // Note the following limits: k_cchMaxRichPresenceKeys, k_cchMaxRichPresenceKeyLength, k_cchMaxRichPresenceValueLength // There are two magic keys: // "status" - a UTF-8 string that will show up in the 'view game info' dialog in the Steam friends list // "connect" - a UTF-8 string that contains the command-line for how a friend can connect to a game @@ -358,6 +361,7 @@ public: // this allows in-game access to group (clan) chats from in the game // the behavior is somewhat sophisticated, because the user may or may not be already in the group chat from outside the game or in the overlay // use ActivateGameOverlayToUser( "chat", steamIDClan ) to open the in-game overlay version of the chat + CALL_RESULT( JoinClanChatRoomCompletionResult_t ) virtual SteamAPICall_t JoinClanChatRoom( CSteamID steamIDClan ) = 0; virtual bool LeaveClanChatRoom( CSteamID steamIDClan ) = 0; virtual int GetClanChatMemberCount( CSteamID steamIDClan ) = 0; @@ -378,9 +382,15 @@ public: virtual int GetFriendMessage( CSteamID steamIDFriend, int iMessageID, void *pvData, int cubData, EChatEntryType *peChatEntryType ) = 0; // following apis + CALL_RESULT( FriendsGetFollowerCount_t ) virtual SteamAPICall_t GetFollowerCount( CSteamID steamID ) = 0; + CALL_RESULT( FriendsIsFollowing_t ) 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/public/steam/isteamgameserver.h b/public/steam/isteamgameserver.h index cc109985..e19f1dda 100644 --- a/public/steam/isteamgameserver.h +++ b/public/steam/isteamgameserver.h @@ -193,7 +193,8 @@ public: // these two functions s are deprecated, and will not return results // they will be removed in a future version of the SDK virtual void GetGameplayStats( ) = 0; - virtual SteamAPICall_t GetServerReputation( ) = 0; + CALL_RESULT( GSReputation_t ) + virtual SteamAPICall_t GetServerReputation() = 0; // Returns the public IP of the server according to Steam, useful when the server is // behind NAT and you want to advertise its IP in a lobby for other clients to directly @@ -240,9 +241,11 @@ public: virtual void ForceHeartbeat() = 0; // associate this game server with this clan for the purposes of computing player compat + CALL_RESULT( AssociateWithClanResult_t ) virtual SteamAPICall_t AssociateWithClan( CSteamID steamIDClan ) = 0; // ask if any of the current players dont want to play with this new player - or vice versa + CALL_RESULT( ComputeNewPlayerCompatibilityResult_t ) virtual SteamAPICall_t ComputeNewPlayerCompatibility( CSteamID steamIDNewPlayer ) = 0; }; diff --git a/public/steam/isteamgameserverstats.h b/public/steam/isteamgameserverstats.h index 8d53186e..e7922c9c 100644 --- a/public/steam/isteamgameserverstats.h +++ b/public/steam/isteamgameserverstats.h @@ -1,4 +1,4 @@ -//========= Copyright Valve Corporation, All rights reserved. ============// +//====== Copyright © Valve Corporation, All rights reserved. ======= // // Purpose: interface for game servers to steam stats and achievements // @@ -23,6 +23,7 @@ public: // if the user has no stats, GSStatsReceived_t.m_eResult will be set to k_EResultFail // these stats will only be auto-updated for clients playing on the server. For other // users you'll need to call RequestUserStats() again to refresh any data + CALL_RESULT( GSStatsReceived_t ) virtual SteamAPICall_t RequestUserStats( CSteamID steamIDUser ) = 0; // requests stat information for a user, usable after a successful call to RequestUserStats() @@ -47,6 +48,7 @@ public: // uploaded has been rejected, either because they broke constraints // or were out of date. In this case the server sends back updated values. // The stats should be re-iterated to keep in sync. + CALL_RESULT( GSStatsStored_t ) virtual SteamAPICall_t StoreUserStats( CSteamID steamIDUser ) = 0; }; diff --git a/public/steam/isteamgamestats.h b/public/steam/isteamgamestats.h deleted file mode 100644 index a32ae4ab..00000000 --- a/public/steam/isteamgamestats.h +++ /dev/null @@ -1,75 +0,0 @@ -//========= Copyright Valve Corporation, All rights reserved. ============// -// -// Purpose: interface to steam for game play statistics -// -//============================================================================= - -#ifndef ISTEAMGAMESTATS_H -#define ISTEAMGAMESTATS_H -#ifdef _WIN32 -#pragma once -#endif - -//----------------------------------------------------------------------------- -// Purpose: Functions for recording game play sessions and details thereof -//----------------------------------------------------------------------------- -class ISteamGameStats -{ -public: - virtual SteamAPICall_t GetNewSession( int8 nAccountType, uint64 ulAccountID, int32 nAppID, RTime32 rtTimeStarted ) = 0; - virtual SteamAPICall_t EndSession( uint64 ulSessionID, RTime32 rtTimeEnded, int nReasonCode ) = 0; - virtual EResult AddSessionAttributeInt( uint64 ulSessionID, const char* pstrName, int32 nData ) = 0; - virtual EResult AddSessionAttributeString( uint64 ulSessionID, const char* pstrName, const char *pstrData ) = 0; - virtual EResult AddSessionAttributeFloat( uint64 ulSessionID, const char* pstrName, float fData ) = 0; - - virtual EResult AddNewRow( uint64 *pulRowID, uint64 ulSessionID, const char *pstrTableName ) = 0; - virtual EResult CommitRow( uint64 ulRowID ) = 0; - virtual EResult CommitOutstandingRows( uint64 ulSessionID ) = 0; - virtual EResult AddRowAttributeInt( uint64 ulRowID, const char *pstrName, int32 nData ) = 0; - virtual EResult AddRowAtributeString( uint64 ulRowID, const char *pstrName, const char *pstrData ) = 0; - virtual EResult AddRowAttributeFloat( uint64 ulRowID, const char *pstrName, float fData ) = 0; - - virtual EResult AddSessionAttributeInt64( uint64 ulSessionID, const char *pstrName, int64 llData ) = 0; - virtual EResult AddRowAttributeInt64( uint64 ulRowID, const char *pstrName, int64 llData ) = 0; -}; - -#define STEAMGAMESTATS_INTERFACE_VERSION "SteamGameStats001" - - -//----------------------------------------------------------------------------- -// Purpose: nAccountType for GetNewSession -//----------------------------------------------------------------------------- -enum EGameStatsAccountType -{ - k_EGameStatsAccountType_Steam = 1, // ullAccountID is a 64-bit SteamID for a player - k_EGameStatsAccountType_Xbox = 2, // ullAccountID is a 64-bit XUID - k_EGameStatsAccountType_SteamGameServer = 3, // ullAccountID is a 64-bit SteamID for a game server -}; - - -//----------------------------------------------------------------------------- -// Purpose: callback for GetNewSession() method -//----------------------------------------------------------------------------- -struct GameStatsSessionIssued_t -{ - enum { k_iCallback = k_iSteamGameStatsCallbacks + 1 }; - - uint64 m_ulSessionID; - EResult m_eResult; - bool m_bCollectingAny; - bool m_bCollectingDetails; -}; - - -//----------------------------------------------------------------------------- -// Purpose: callback for EndSession() method -//----------------------------------------------------------------------------- -struct GameStatsSessionClosed_t -{ - enum { k_iCallback = k_iSteamGameStatsCallbacks + 2 }; - - uint64 m_ulSessionID; - EResult m_eResult; -}; - -#endif // ISTEAMGAMESTATS_H diff --git a/public/steam/isteamhtmlsurface.h b/public/steam/isteamhtmlsurface.h index c257164a..117599ce 100644 --- a/public/steam/isteamhtmlsurface.h +++ b/public/steam/isteamhtmlsurface.h @@ -33,6 +33,14 @@ public: // identify your client on web servers. // The userCSS string lets you apply a CSS style sheet to every displayed page, leave null if // you do not require this functionality. + // + // YOU MUST HAVE IMPLEMENTED HANDLERS FOR HTML_BrowserReady_t, HTML_StartRequest_t, + // HTML_JSAlert_t, HTML_JSConfirm_t, and HTML_FileOpenDialog_t! See the CALLBACKS + // section of this interface (AllowStartRequest, etc) for more details. If you do + // not implement these callback handlers, the browser may appear to hang instead of + // navigating to new pages or triggering javascript popups. + // + CALL_RESULT( HTML_BrowserReady_t ) virtual SteamAPICall_t CreateBrowser( const char *pchUserAgent, const char *pchUserCSS ) = 0; // Call this when you are done with a html surface, this lets us free the resources being used by it @@ -169,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 @@ -185,10 +197,11 @@ public: virtual void JSDialogResponse( HHTMLBrowser unBrowserHandle, bool bResult ) = 0; // You MUST call this in response to a HTML_FileOpenDialog_t callback + IGNOREATTR() 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 ) @@ -438,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/public/steam/isteaminventory.h b/public/steam/isteaminventory.h index 3802dafe..dba53c43 100644 --- a/public/steam/isteaminventory.h +++ b/public/steam/isteaminventory.h @@ -1,4 +1,4 @@ -//====== Copyright © 1996-2014 Valve Corporation, All rights reserved. ======= +//====== Copyright ? 1996-2014 Valve Corporation, All rights reserved. ======= // // Purpose: interface to Steam Inventory // @@ -27,7 +27,7 @@ // and will not be transferred to another player or re-used for another item. typedef uint64 SteamItemInstanceID_t; -static const SteamItemInstanceID_t k_SteamItemInstanceIDInvalid = ~(SteamItemInstanceID_t)0; +static const SteamItemInstanceID_t k_SteamItemInstanceIDInvalid = (SteamItemInstanceID_t)~0; // Types of items in your game are identified by a 32-bit "item definition number". // Valid definition numbers are between 1 and 999999999; numbers less than or equal to @@ -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 @@ -94,6 +96,23 @@ public: OUT_ARRAY_COUNT( punOutItemsArraySize,Output array) SteamItemDetails_t *pOutItemsArray, uint32 *punOutItemsArraySize ) = 0; + // In combination with GetResultItems, you can use GetResultItemProperty to retrieve + // dynamic string properties for a given item returned in the result set. + // + // Property names are always composed of ASCII letters, numbers, and/or underscores. + // + // Pass a NULL pointer for pchPropertyName to get a comma - separated list of available + // property names. + // + // If pchValueBuffer is NULL, *punValueBufferSize will contain the + // suggested buffer size. Otherwise it will be the number of bytes actually copied + // to pchValueBuffer. If the results do not fit in the given buffer, partial + // results may be copied. + virtual bool GetResultItemProperty( SteamInventoryResult_t resultHandle, + uint32 unItemIndex, + const char *pchPropertyName, + OUT_STRING_COUNT( punValueBufferSizeOut ) char *pchValueBuffer, uint32 *punValueBufferSizeOut ) = 0; + // Returns the server time at which the result was generated. Compare against // the value of IClientUtils::GetServerRealTime() to determine age. METHOD_DESC(Returns the server time at which the result was generated. Compare against the value of IClientUtils::GetServerRealTime() to determine age.) @@ -175,10 +194,9 @@ public: // // GenerateItems() creates one or more items and then generates a SteamInventoryCallback_t - // notification with a matching nCallbackContext parameter. This API is insecure, and could - // be abused by hacked clients. It is, however, very useful as a development cheat or as - // a means of prototyping item-related features for your game. The use of GenerateItems can - // be restricted to certain item definitions or fully blocked via the Steamworks website. + // notification with a matching nCallbackContext parameter. This API is only intended + // for prototyping - it is only usable by Steam accounts that belong to the publisher group + // for your game. // If punArrayQuantity is not NULL, it should be the same length as pArrayItems and should // describe the quantity of each item to generate. virtual bool GenerateItems( SteamInventoryResult_t *pResultHandle, ARRAY_COUNT(unArrayLength) const SteamItemDef_t *pArrayItemDefs, ARRAY_COUNT(unArrayLength) const uint32 *punArrayQuantity, uint32 unArrayLength ) = 0; @@ -199,22 +217,18 @@ public: // ConsumeItem() removes items from the inventory, permanently. They cannot be recovered. // Not for the faint of heart - if your game implements item removal at all, a high-friction - // UI confirmation process is highly recommended. Similar to GenerateItems, punArrayQuantity - // can be NULL or else an array of the same length as pArrayItems which describe the quantity - // of each item to destroy. ConsumeItem can be restricted to certain item definitions or - // fully blocked via the Steamworks website to minimize support/abuse issues such as the - // clasic "my brother borrowed my laptop and deleted all of my rare items". + // UI confirmation process is highly recommended. METHOD_DESC(ConsumeItem() removes items from the inventory permanently.) virtual bool ConsumeItem( SteamInventoryResult_t *pResultHandle, SteamItemInstanceID_t itemConsume, uint32 unQuantity ) = 0; - // ExchangeItems() is an atomic combination of GenerateItems and DestroyItems. It can be - // used to implement crafting recipes or transmutations, or items which unpack themselves - // into other items. Like GenerateItems, this is a flexible and dangerous API which is - // meant for rapid prototyping. You can configure restrictions on ExchangeItems via the - // Steamworks website, such as limiting it to a whitelist of input/output combinations - // corresponding to recipes. - // (Note: although GenerateItems may be hard or impossible to use securely in your game, - // ExchangeItems is perfectly reasonable to use once the whitelists are set accordingly.) + // ExchangeItems() is an atomic combination of item generation and consumption. + // It can be used to implement crafting recipes or transmutations, or items which unpack + // themselves into other items (e.g., a chest). + // Exchange recipes are defined in the ItemDef, and explicitly list the required item + // types and resulting generated type. + // Exchange recipes are evaluated atomically by the Inventory Service; if the supplied + // components do not match the recipe, or do not contain sufficient quantity, the + // exchange will fail. virtual bool ExchangeItems( SteamInventoryResult_t *pResultHandle, ARRAY_COUNT(unArrayGenerateLength) const SteamItemDef_t *pArrayGenerate, ARRAY_COUNT(unArrayGenerateLength) const uint32 *punArrayGenerateQuantity, uint32 unArrayGenerateLength, ARRAY_COUNT(unArrayDestroyLength) const SteamItemInstanceID_t *pArrayDestroy, ARRAY_COUNT(unArrayDestroyLength) const uint32 *punArrayDestroyQuantity, uint32 unArrayDestroyLength ) = 0; @@ -230,21 +244,8 @@ public: // TIMED DROPS AND PLAYTIME CREDIT // - // Applications which use timed-drop mechanics should call SendItemDropHeartbeat() when - // active gameplay begins, and at least once every two minutes afterwards. The backend - // performs its own time calculations, so the precise timing of the heartbeat is not - // critical as long as you send at least one heartbeat every two minutes. Calling the - // function more often than that is not harmful, it will simply have no effect. Note: - // players may be able to spoof this message by hacking their client, so you should not - // attempt to use this as a mechanism to restrict playtime credits. It is simply meant - // to distinguish between being in any kind of gameplay situation vs the main menu or - // a pre-game launcher window. (If you are stingy with handing out playtime credit, it - // will only encourage players to run bots or use mouse/kb event simulators.) - // - // Playtime credit accumulation can be capped on a daily or weekly basis through your - // Steamworks configuration. - // - METHOD_DESC(Applications which use timed-drop mechanics should call SendItemDropHeartbeat() when active gameplay begins and at least once every two minutes afterwards.) + // Deprecated. Calling this method is not required for proper playtime accounting. + METHOD_DESC( Deprecated method. Playtime accounting is performed on the Steam servers. ) virtual void SendItemDropHeartbeat() = 0; // Playtime credit must be consumed and turned into item drops by your game. Only item @@ -253,23 +254,14 @@ public: // Your game should call TriggerItemDrop at an appropriate time for the user to receive // new items, such as between rounds or while the player is dead. Note that players who // hack their clients could modify the value of "dropListDefinition", so do not use it - // to directly control rarity. It is primarily useful during testing and development, - // where you may wish to perform experiments with different types of drops. + // to directly control rarity. + // See your Steamworks configuration to set playtime drop rates for individual itemdefs. + // The client library will suppress too-frequent calls to this method. METHOD_DESC(Playtime credit must be consumed and turned into item drops by your game.) 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; @@ -306,12 +298,67 @@ public: // on the current Steam language settings (see ISteamApps::GetCurrentGameLanguage). // Property names are always composed of ASCII letters, numbers, and/or underscores. // Pass a NULL pointer for pchPropertyName to get a comma - separated list of available - // property names. + // property names. If pchValueBuffer is NULL, *punValueBufferSize will contain the + // suggested buffer size. Otherwise it will be the number of bytes actually copied + // to pchValueBuffer. If the results do not fit in the given buffer, partial + // results may be copied. virtual bool GetItemDefinitionProperty( SteamItemDef_t iDefinition, const char *pchPropertyName, - OUT_STRING_COUNT(punValueBufferSize) char *pchValueBuffer, uint32 *punValueBufferSize ) = 0; + OUT_STRING_COUNT(punValueBufferSizeOut) char *pchValueBuffer, uint32 *punValueBufferSizeOut ) = 0; + + // Request the list of "eligible" promo items that can be manually granted to the given + // user. These are promo items of type "manual" that won't be granted automatically. + // An example usage of this is an item that becomes available every week. + CALL_RESULT( SteamInventoryEligiblePromoItemDefIDs_t ) + virtual SteamAPICall_t RequestEligiblePromoItemDefinitionsIDs( CSteamID steamID ) = 0; + + // After handling a SteamInventoryEligiblePromoItemDefIDs_t call result, use this + // function to pull out the list of item definition ids that the user can be + // manually granted via the AddPromoItems() call. + virtual bool GetEligiblePromoItemDefinitionIDs( + 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_V001" +#define STEAMINVENTORY_INTERFACE_VERSION "STEAMINVENTORY_INTERFACE_V002" // SteamInventoryResultReady_t callbacks are fired whenever asynchronous @@ -348,6 +395,34 @@ struct SteamInventoryDefinitionUpdate_t enum { k_iCallback = k_iClientInventoryCallbacks + 2 }; }; +// Returned +struct SteamInventoryEligiblePromoItemDefIDs_t +{ + enum { k_iCallback = k_iClientInventoryCallbacks + 3 }; + EResult m_result; + CSteamID m_steamID; + int m_numEligiblePromoItemDefs; + 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/public/steam/isteammasterserverupdater.h b/public/steam/isteammasterserverupdater.h index 9f2e712e..4be0ca5c 100644 --- a/public/steam/isteammasterserverupdater.h +++ b/public/steam/isteammasterserverupdater.h @@ -1,2 +1 @@ -//========= Copyright Valve Corporation, All rights reserved. ============// #error "This file isn't used any more" diff --git a/public/steam/isteammatchmaking.h b/public/steam/isteammatchmaking.h index e3be340d..837d98bd 100644 --- a/public/steam/isteammatchmaking.h +++ b/public/steam/isteammatchmaking.h @@ -103,6 +103,7 @@ public: } */ // + CALL_RESULT( LobbyMatchList_t ) virtual SteamAPICall_t RequestLobbyList() = 0; // filters for lobbies // this needs to be called before RequestLobbyList() to take effect @@ -133,12 +134,14 @@ public: // this is an asynchronous request // results will be returned by LobbyCreated_t callback and call result; lobby is joined & ready to use at this point // a LobbyEnter_t callback will also be received (since the local user is joining their own lobby) + CALL_RESULT( LobbyCreated_t ) virtual SteamAPICall_t CreateLobby( ELobbyType eLobbyType, int cMaxMembers ) = 0; // Joins an existing lobby // this is an asynchronous request // results will be returned by LobbyEnter_t callback & call result, check m_EChatRoomEnterResponse to see if was successful // lobby metadata is available to use immediately on this call completing + CALL_RESULT( LobbyEnter_t ) virtual SteamAPICall_t JoinLobby( CSteamID steamIDLobby ) = 0; // Leave a lobby; this will take effect immediately on the client side @@ -253,6 +256,7 @@ public: // after completion, the local user will no longer be the owner virtual void CheckForPSNGameBootInvite( unsigned int iGameBootAttributes ) = 0; #endif + CALL_BACK( LobbyChatUpdate_t ) }; #define STEAMMATCHMAKING_INTERFACE_VERSION "SteamMatchMaking009" diff --git a/public/steam/isteamnetworking.h b/public/steam/isteamnetworking.h index c77f7bf7..8f70819d 100644 --- a/public/steam/isteamnetworking.h +++ b/public/steam/isteamnetworking.h @@ -1,4 +1,4 @@ -//========= Copyright Valve Corporation, All rights reserved. ============// +//====== Copyright © 1996-2008, Valve Corporation, All rights reserved. ======= // // Purpose: interface to steam managing network connections between game clients & servers // diff --git a/public/steam/isteamparentalsettings.h b/public/steam/isteamparentalsettings.h new file mode 100644 index 00000000..4bf4d7e4 --- /dev/null +++ b/public/steam/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/public/steam/isteamps3overlayrenderer.h b/public/steam/isteamps3overlayrenderer.h index 5c410d82..4e07d4a1 100644 --- a/public/steam/isteamps3overlayrenderer.h +++ b/public/steam/isteamps3overlayrenderer.h @@ -1,4 +1,4 @@ -//========= Copyright Valve Corporation, All rights reserved. ============// +//====== Copyright © 1996-2010, Valve Corporation, All rights reserved. ======= // // Purpose: interface the game must provide Steam with on PS3 in order for the // Steam overlay to render. diff --git a/public/steam/isteamremotestorage.h b/public/steam/isteamremotestorage.h index cce39dfe..7c34ed13 100644 --- a/public/steam/isteamremotestorage.h +++ b/public/steam/isteamremotestorage.h @@ -1,4 +1,4 @@ -//====== Copyright � 1996-2008, Valve Corporation, All rights reserved. ======= +//====== Copyright ? 1996-2008, Valve Corporation, All rights reserved. ======= // // Purpose: public interface to user remote file storage in Steam // @@ -57,12 +57,6 @@ const uint32 k_cchTagListMax = 1024 + 1; const uint32 k_cchFilenameMax = 260; const uint32 k_cchPublishedFileURLMax = 256; -// Ways to handle a synchronization conflict -enum EResolveConflict -{ - k_EResolveConflictKeepClient = 1, // The local version of each file will be used to overwrite the server version - k_EResolveConflictKeepServer = 2, // The server version of each file will be used to overwrite the local version -}; enum ERemoteStoragePlatform { @@ -177,13 +171,16 @@ class ISteamRemoteStorage virtual bool FileWrite( const char *pchFile, const void *pvData, int32 cubData ) = 0; virtual int32 FileRead( const char *pchFile, void *pvData, int32 cubDataToRead ) = 0; + CALL_RESULT( RemoteStorageFileWriteAsyncComplete_t ) virtual SteamAPICall_t FileWriteAsync( const char *pchFile, const void *pvData, uint32 cubData ) = 0; + CALL_RESULT( RemoteStorageFileReadAsyncComplete_t ) virtual SteamAPICall_t FileReadAsync( const char *pchFile, uint32 nOffset, uint32 cubToRead ) = 0; virtual bool FileReadAsyncComplete( SteamAPICall_t hReadCall, void *pvBuffer, uint32 cubToRead ) = 0; virtual bool FileForget( const char *pchFile ) = 0; virtual bool FileDelete( const char *pchFile ) = 0; + CALL_RESULT( RemoteStorageFileShareResult_t ) virtual SteamAPICall_t FileShare( const char *pchFile ) = 0; virtual bool SetSyncPlatforms( const char *pchFile, ERemoteStoragePlatform eRemoteStoragePlatform ) = 0; @@ -205,7 +202,7 @@ class ISteamRemoteStorage virtual const char *GetFileNameAndSize( int iFile, int32 *pnFileSizeInBytes ) = 0; // configuration management - virtual bool GetQuota( int32 *pnTotalBytes, int32 *puAvailableBytes ) = 0; + virtual bool GetQuota( uint64 *pnTotalBytes, uint64 *puAvailableBytes ) = 0; virtual bool IsCloudEnabledForAccount() = 0; virtual bool IsCloudEnabledForApp() = 0; virtual void SetCloudEnabledForApp( bool bEnabled ) = 0; @@ -215,6 +212,7 @@ class ISteamRemoteStorage // Downloads a UGC file. A priority value of 0 will download the file immediately, // otherwise it will wait to download the file until all downloads with a lower priority // value are completed. Downloads with equal priority will occur simultaneously. + CALL_RESULT( RemoteStorageDownloadUGCResult_t ) virtual SteamAPICall_t UGCDownload( UGCHandle_t hContent, uint32 unPriority ) = 0; // Gets the amount of data downloaded so far for a piece of content. pnBytesExpected can be 0 if function returns false @@ -222,7 +220,7 @@ class ISteamRemoteStorage virtual bool GetUGCDownloadProgress( UGCHandle_t hContent, int32 *pnBytesDownloaded, int32 *pnBytesExpected ) = 0; // Gets metadata for a file after it has been downloaded. This is the same metadata given in the RemoteStorageDownloadUGCResult_t call result - virtual bool GetUGCDetails( UGCHandle_t hContent, AppId_t *pnAppID, char **ppchName, int32 *pnFileSizeInBytes, OUT_STRUCT() CSteamID *pSteamIDOwner ) = 0; + virtual bool GetUGCDetails( UGCHandle_t hContent, AppId_t *pnAppID, OUT_STRING() char **ppchName, int32 *pnFileSizeInBytes, OUT_STRUCT() CSteamID *pSteamIDOwner ) = 0; // After download, gets the content of the file. // Small files can be read all at once by calling this function with an offset of 0 and cubDataToRead equal to the size of the file. @@ -255,6 +253,7 @@ class ISteamRemoteStorage #endif // publishing UGC + CALL_RESULT( RemoteStoragePublishFileProgress_t ) virtual SteamAPICall_t PublishWorkshopFile( const char *pchFile, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags, EWorkshopFileType eWorkshopFileType ) = 0; virtual PublishedFileUpdateHandle_t CreatePublishedFileUpdateRequest( PublishedFileId_t unPublishedFileId ) = 0; virtual bool UpdatePublishedFileFile( PublishedFileUpdateHandle_t updateHandle, const char *pchFile ) = 0; @@ -263,32 +262,48 @@ class ISteamRemoteStorage virtual bool UpdatePublishedFileDescription( PublishedFileUpdateHandle_t updateHandle, const char *pchDescription ) = 0; virtual bool UpdatePublishedFileVisibility( PublishedFileUpdateHandle_t updateHandle, ERemoteStoragePublishedFileVisibility eVisibility ) = 0; virtual bool UpdatePublishedFileTags( PublishedFileUpdateHandle_t updateHandle, SteamParamStringArray_t *pTags ) = 0; + CALL_RESULT( RemoteStorageUpdatePublishedFileResult_t ) virtual SteamAPICall_t CommitPublishedFileUpdate( PublishedFileUpdateHandle_t updateHandle ) = 0; // Gets published file details for the given publishedfileid. If unMaxSecondsOld is greater than 0, // cached data may be returned, depending on how long ago it was cached. A value of 0 will force a refresh. // A value of k_WorkshopForceLoadPublishedFileDetailsFromCache will use cached data if it exists, no matter how old it is. + CALL_RESULT( RemoteStorageGetPublishedFileDetailsResult_t ) virtual SteamAPICall_t GetPublishedFileDetails( PublishedFileId_t unPublishedFileId, uint32 unMaxSecondsOld ) = 0; + CALL_RESULT( RemoteStorageDeletePublishedFileResult_t ) virtual SteamAPICall_t DeletePublishedFile( PublishedFileId_t unPublishedFileId ) = 0; // enumerate the files that the current user published with this app + CALL_RESULT( RemoteStorageEnumerateUserPublishedFilesResult_t ) virtual SteamAPICall_t EnumerateUserPublishedFiles( uint32 unStartIndex ) = 0; + CALL_RESULT( RemoteStorageSubscribePublishedFileResult_t ) virtual SteamAPICall_t SubscribePublishedFile( PublishedFileId_t unPublishedFileId ) = 0; + CALL_RESULT( RemoteStorageEnumerateUserSubscribedFilesResult_t ) virtual SteamAPICall_t EnumerateUserSubscribedFiles( uint32 unStartIndex ) = 0; + CALL_RESULT( RemoteStorageUnsubscribePublishedFileResult_t ) virtual SteamAPICall_t UnsubscribePublishedFile( PublishedFileId_t unPublishedFileId ) = 0; virtual bool UpdatePublishedFileSetChangeDescription( PublishedFileUpdateHandle_t updateHandle, const char *pchChangeDescription ) = 0; + CALL_RESULT( RemoteStorageGetPublishedItemVoteDetailsResult_t ) virtual SteamAPICall_t GetPublishedItemVoteDetails( PublishedFileId_t unPublishedFileId ) = 0; + CALL_RESULT( RemoteStorageUpdateUserPublishedItemVoteResult_t ) virtual SteamAPICall_t UpdateUserPublishedItemVote( PublishedFileId_t unPublishedFileId, bool bVoteUp ) = 0; + CALL_RESULT( RemoteStorageGetPublishedItemVoteDetailsResult_t ) virtual SteamAPICall_t GetUserPublishedItemVoteDetails( PublishedFileId_t unPublishedFileId ) = 0; + CALL_RESULT( RemoteStorageEnumerateUserPublishedFilesResult_t ) virtual SteamAPICall_t EnumerateUserSharedWorkshopFiles( CSteamID steamId, uint32 unStartIndex, SteamParamStringArray_t *pRequiredTags, SteamParamStringArray_t *pExcludedTags ) = 0; + CALL_RESULT( RemoteStoragePublishFileProgress_t ) virtual SteamAPICall_t PublishVideo( EWorkshopVideoProvider eVideoProvider, const char *pchVideoAccount, const char *pchVideoIdentifier, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags ) = 0; + CALL_RESULT( RemoteStorageSetUserPublishedFileActionResult_t ) virtual SteamAPICall_t SetUserPublishedFileAction( PublishedFileId_t unPublishedFileId, EWorkshopFileAction eAction ) = 0; + CALL_RESULT( RemoteStorageEnumeratePublishedFilesByUserActionResult_t ) virtual SteamAPICall_t EnumeratePublishedFilesByUserAction( EWorkshopFileAction eAction, uint32 unStartIndex ) = 0; // this method enumerates the public view of workshop files + CALL_RESULT( RemoteStorageEnumerateWorkshopFilesResult_t ) virtual SteamAPICall_t EnumeratePublishedWorkshopFiles( EWorkshopEnumerationType eEnumerationType, uint32 unStartIndex, uint32 unCount, uint32 unDays, SteamParamStringArray_t *pTags, SteamParamStringArray_t *pUserTags ) = 0; + CALL_RESULT( RemoteStorageDownloadUGCResult_t ) virtual SteamAPICall_t UGCDownloadToLocation( UGCHandle_t hContent, const char *pchLocation, uint32 unPriority ) = 0; }; -#define STEAMREMOTESTORAGE_INTERFACE_VERSION "STEAMREMOTESTORAGE_INTERFACE_VERSION013" +#define STEAMREMOTESTORAGE_INTERFACE_VERSION "STEAMREMOTESTORAGE_INTERFACE_VERSION014" // callbacks @@ -354,15 +369,6 @@ struct RemoteStorageAppSyncStatusCheck_t EResult m_eResult; }; -//----------------------------------------------------------------------------- -// Purpose: Sent after a conflict resolution attempt. -//----------------------------------------------------------------------------- -struct RemoteStorageConflictResolution_t -{ - enum { k_iCallback = k_iClientRemoteStorageCallbacks + 6 }; - AppId_t m_nAppID; - EResult m_eResult; -}; //----------------------------------------------------------------------------- // Purpose: The result of a call to FileShare() @@ -645,7 +651,7 @@ struct RemoteStoragePublishedFileUpdated_t enum { k_iCallback = k_iClientRemoteStorageCallbacks + 30 }; PublishedFileId_t m_nPublishedFileId; // The published file id AppId_t m_nAppID; // ID of the app that will consume this file. - UGCHandle_t m_hFile; // The new content + uint64 m_ulUnused; // not used anymore }; //----------------------------------------------------------------------------- diff --git a/public/steam/isteamscreenshots.h b/public/steam/isteamscreenshots.h index 1636c160..a2bb5a39 100644 --- a/public/steam/isteamscreenshots.h +++ b/public/steam/isteamscreenshots.h @@ -1,4 +1,4 @@ -//========= Copyright Valve Corporation, All rights reserved. ============// +//====== Copyright ? 1996-2008, Valve Corporation, All rights reserved. ======= // // Purpose: public interface to user remote file storage in Steam // @@ -25,6 +25,16 @@ const int k_ScreenshotThumbWidth = 200; typedef uint32 ScreenshotHandle; #define INVALID_SCREENSHOT_HANDLE 0 +enum EVRScreenshotType +{ + k_EVRScreenshotType_None = 0, + k_EVRScreenshotType_Mono = 1, + k_EVRScreenshotType_Stereo = 2, + k_EVRScreenshotType_MonoCubemap = 3, + k_EVRScreenshotType_MonoPanorama = 4, + k_EVRScreenshotType_StereoPanorama = 5 +}; + //----------------------------------------------------------------------------- // Purpose: Functions for adding screenshots to the user's screenshot library //----------------------------------------------------------------------------- @@ -57,9 +67,19 @@ public: // Tags a published file as being visible in the screenshot virtual bool TagPublishedFile( ScreenshotHandle hScreenshot, PublishedFileId_t unPublishedFileID ) = 0; + + // Returns true if the app has hooked the screenshot + virtual bool IsScreenshotsHooked() = 0; + + // Adds a VR screenshot to the user's screenshot library from disk in the supported type. + // pchFilename should be the normal 2D image used in the library view + // pchVRFilename should contain the image that matches the correct type + // The return value is a handle that is valid for the duration of the game process and can be used to apply tags. + // JPEG, TGA, and PNG formats are supported. + virtual ScreenshotHandle AddVRScreenshotToLibrary( EVRScreenshotType eType, const char *pchFilename, const char *pchVRFilename ) = 0; }; -#define STEAMSCREENSHOTS_INTERFACE_VERSION "STEAMSCREENSHOTS_INTERFACE_VERSION002" +#define STEAMSCREENSHOTS_INTERFACE_VERSION "STEAMSCREENSHOTS_INTERFACE_VERSION003" // callbacks #if defined( VALVE_CALLBACK_PACK_SMALL ) @@ -92,5 +112,5 @@ struct ScreenshotRequested_t #pragma pack( pop ) - #endif // ISTEAMSCREENSHOTS_H + diff --git a/public/steam/isteamstreamlauncher.h b/public/steam/isteamstreamlauncher.h deleted file mode 100644 index 5f258667..00000000 --- a/public/steam/isteamstreamlauncher.h +++ /dev/null @@ -1,85 +0,0 @@ -//========= Copyright Valve Corporation, All rights reserved. ============// -// -// Purpose: interface to streaming launcher functions in Steam -// -//============================================================================= - -#ifndef ISTEAMSTREAMLAUNCHER_H -#define ISTEAMSTREAMLAUNCHER_H -#ifdef _WIN32 -#pragma once -#endif - -#include "isteamclient.h" - -enum EStreamLauncherResult -{ - k_EStreamLaunchResultSuccess = 0, - k_EStreamLaunchResultFailure = 1, // Unknown streaming launch failure - k_EStreamLaunchResultAlreadyStreaming = 2, // The UI is already streaming to a different application - k_EStreamLaunchResultInvalidLauncher = 3, // The streaming launcher doesn't exist, or failed signature check - k_EStreamLaunchResultNotReady = 4, // The UI isn't ready to go into streaming mode (Desktop UI login?) -}; - -//----------------------------------------------------------------------------- -// Purpose: interface to streaming launcher functions in Steam -//----------------------------------------------------------------------------- -class ISteamStreamLauncher -{ -public: - // Switch Steam to Big Picture mode and optionally set a launcher to run all games - virtual EStreamLauncherResult StartStreaming( const char *pchLauncher = NULL ) = 0; - - // Switch Steam back to the original mode and clear the launcher - virtual void StopStreaming() = 0; -}; - -#define STEAMSTREAMLAUNCHER_INTERFACE_VERSION "SteamStreamLauncher001" - - -// 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 - -//----------------------------------------------------------------------------- -// The big picture window is visible and ready for streaming -//----------------------------------------------------------------------------- -struct BigPictureStreamingResult_t -{ - enum { k_iCallback = k_iSteamStreamLauncherCallbacks + 1 }; - bool m_bSuccess; - void *m_hwnd; -}; - -//----------------------------------------------------------------------------- -// The user requested that the application stop streaming -//----------------------------------------------------------------------------- -struct StopStreamingRequest_t -{ - enum { k_iCallback = k_iSteamStreamLauncherCallbacks + 2 }; -}; - -//----------------------------------------------------------------------------- -// The big picture window is closed and no longer ready for streaming -//----------------------------------------------------------------------------- -struct BigPictureStreamingDone_t -{ - enum { k_iCallback = k_iSteamStreamLauncherCallbacks + 3 }; -}; - -//----------------------------------------------------------------------------- -// Steam is about to restart, continue streaming when it is available again -//----------------------------------------------------------------------------- -struct BigPictureStreamRestarting_t -{ - enum { k_iCallback = k_iSteamStreamLauncherCallbacks + 4 }; -}; - -#pragma pack( pop ) - -#endif // ISTEAMSTREAMLAUNCHER_H diff --git a/public/steam/isteamugc.h b/public/steam/isteamugc.h index c574bf5c..4a7d2964 100644 --- a/public/steam/isteamugc.h +++ b/public/steam/isteamugc.h @@ -92,6 +92,12 @@ enum EUGCQuery k_EUGCQuery_RankedByVotesUp = 10, k_EUGCQuery_RankedByTextSearch = 11, k_EUGCQuery_RankedByTotalUniqueSubscriptions = 12, + k_EUGCQuery_RankedByPlaytimeTrend = 13, + k_EUGCQuery_RankedByTotalPlaytime = 14, + k_EUGCQuery_RankedByAveragePlaytimeTrend = 15, + k_EUGCQuery_RankedByLifetimeAveragePlaytime = 16, + k_EUGCQuery_RankedByPlaytimeSessionsTrend = 17, + k_EUGCQuery_RankedByLifetimePlaytimeSessions = 18, }; enum EItemUpdateStatus @@ -117,14 +123,36 @@ enum EItemState enum EItemStatistic { - k_EItemStatistic_NumSubscriptions = 0, - k_EItemStatistic_NumFavorites = 1, - k_EItemStatistic_NumFollowers = 2, - k_EItemStatistic_NumUniqueSubscriptions = 3, - k_EItemStatistic_NumUniqueFavorites = 4, - k_EItemStatistic_NumUniqueFollowers = 5, - k_EItemStatistic_NumUniqueWebsiteViews = 6, - k_EItemStatistic_ReportScore = 7, + k_EItemStatistic_NumSubscriptions = 0, + k_EItemStatistic_NumFavorites = 1, + k_EItemStatistic_NumFollowers = 2, + k_EItemStatistic_NumUniqueSubscriptions = 3, + k_EItemStatistic_NumUniqueFavorites = 4, + k_EItemStatistic_NumUniqueFollowers = 5, + k_EItemStatistic_NumUniqueWebsiteViews = 6, + k_EItemStatistic_ReportScore = 7, + k_EItemStatistic_NumSecondsPlayed = 8, + k_EItemStatistic_NumPlaytimeSessions = 9, + k_EItemStatistic_NumComments = 10, + k_EItemStatistic_NumSecondsPlayedDuringTimePeriod = 11, + k_EItemStatistic_NumPlaytimeSessionsDuringTimePeriod = 12, +}; + +enum EItemPreviewType +{ + k_EItemPreviewType_Image = 0, // standard image file expected (e.g. jpg, png, gif, etc.) + k_EItemPreviewType_YouTubeVideo = 1, // video id is stored + k_EItemPreviewType_Sketchfab = 2, // model id is stored + k_EItemPreviewType_EnvironmentMap_HorizontalCross = 3, // standard image file expected - cube map in the layout + // +---+---+-------+ + // | |Up | | + // +---+---+---+---+ + // | L | F | R | B | + // +---+---+---+---+ + // | |Dn | | + // +---+---+---+---+ + k_EItemPreviewType_EnvironmentMap_LatLong = 4, // standard image file expected + k_EItemPreviewType_ReservedMax = 255, // you can specify your own types above this value }; const uint32 kNumUGCResultsPerPage = 50; @@ -181,18 +209,19 @@ public: virtual UGCQueryHandle_t CreateQueryUGCDetailsRequest( PublishedFileId_t *pvecPublishedFileID, uint32 unNumPublishedFileIDs ) = 0; // Send the query to Steam + CALL_RESULT( SteamUGCQueryCompleted_t ) virtual SteamAPICall_t SendQueryUGCRequest( UGCQueryHandle_t handle ) = 0; // Retrieve an individual result after receiving the callback for querying UGC virtual bool GetQueryUGCResult( UGCQueryHandle_t handle, uint32 index, SteamUGCDetails_t *pDetails ) = 0; - virtual bool GetQueryUGCPreviewURL( UGCQueryHandle_t handle, uint32 index, char *pchURL, uint32 cchURLSize ) = 0; - virtual bool GetQueryUGCMetadata( UGCQueryHandle_t handle, uint32 index, char *pchMetadata, uint32 cchMetadatasize ) = 0; + virtual bool GetQueryUGCPreviewURL( UGCQueryHandle_t handle, uint32 index, OUT_STRING_COUNT(cchURLSize) char *pchURL, uint32 cchURLSize ) = 0; + virtual bool GetQueryUGCMetadata( UGCQueryHandle_t handle, uint32 index, OUT_STRING_COUNT(cchMetadatasize) char *pchMetadata, uint32 cchMetadatasize ) = 0; virtual bool GetQueryUGCChildren( UGCQueryHandle_t handle, uint32 index, PublishedFileId_t* pvecPublishedFileID, uint32 cMaxEntries ) = 0; - virtual bool GetQueryUGCStatistic( UGCQueryHandle_t handle, uint32 index, EItemStatistic eStatType, uint32 *pStatValue ) = 0; + virtual bool GetQueryUGCStatistic( UGCQueryHandle_t handle, uint32 index, EItemStatistic eStatType, uint64 *pStatValue ) = 0; virtual uint32 GetQueryUGCNumAdditionalPreviews( UGCQueryHandle_t handle, uint32 index ) = 0; - virtual bool GetQueryUGCAdditionalPreview( UGCQueryHandle_t handle, uint32 index, uint32 previewIndex, char *pchURLOrVideoID, uint32 cchURLSize, bool *pbIsImage ) = 0; + virtual bool GetQueryUGCAdditionalPreview( UGCQueryHandle_t handle, uint32 index, uint32 previewIndex, OUT_STRING_COUNT(cchURLSize) char *pchURLOrVideoID, uint32 cchURLSize, OUT_STRING_COUNT(cchURLSize) char *pchOriginalFileName, uint32 cchOriginalFileNameSize, EItemPreviewType *pPreviewType ) = 0; virtual uint32 GetQueryUGCNumKeyValueTags( UGCQueryHandle_t handle, uint32 index ) = 0; - virtual bool GetQueryUGCKeyValueTag( UGCQueryHandle_t handle, uint32 index, uint32 keyValueTagIndex, char *pchKey, uint32 cchKeySize, char *pchValue, uint32 cchValueSize ) = 0; + virtual bool GetQueryUGCKeyValueTag( UGCQueryHandle_t handle, uint32 index, uint32 keyValueTagIndex, OUT_STRING_COUNT(cchKeySize) char *pchKey, uint32 cchKeySize, OUT_STRING_COUNT(cchValueSize) char *pchValue, uint32 cchValueSize ) = 0; // Release the request to free up memory, after retrieving results virtual bool ReleaseQueryUGCRequest( UGCQueryHandle_t handle ) = 0; @@ -200,12 +229,14 @@ public: // Options to set for querying UGC virtual bool AddRequiredTag( UGCQueryHandle_t handle, const char *pTagName ) = 0; virtual bool AddExcludedTag( UGCQueryHandle_t handle, const char *pTagName ) = 0; + virtual bool SetReturnOnlyIDs( UGCQueryHandle_t handle, bool bReturnOnlyIDs ) = 0; virtual bool SetReturnKeyValueTags( UGCQueryHandle_t handle, bool bReturnKeyValueTags ) = 0; virtual bool SetReturnLongDescription( UGCQueryHandle_t handle, bool bReturnLongDescription ) = 0; virtual bool SetReturnMetadata( UGCQueryHandle_t handle, bool bReturnMetadata ) = 0; virtual bool SetReturnChildren( UGCQueryHandle_t handle, bool bReturnChildren ) = 0; virtual bool SetReturnAdditionalPreviews( UGCQueryHandle_t handle, bool bReturnAdditionalPreviews ) = 0; virtual bool SetReturnTotalOnly( UGCQueryHandle_t handle, bool bReturnTotalOnly ) = 0; + virtual bool SetReturnPlaytimeStats( UGCQueryHandle_t handle, uint32 unDays ) = 0; virtual bool SetLanguage( UGCQueryHandle_t handle, const char *pchLanguage ) = 0; virtual bool SetAllowCachedResponse( UGCQueryHandle_t handle, uint32 unMaxAgeSeconds ) = 0; @@ -222,6 +253,7 @@ public: virtual SteamAPICall_t RequestUGCDetails( PublishedFileId_t nPublishedFileID, uint32 unMaxAgeSeconds ) = 0; // Steam Workshop Creator API + CALL_RESULT( CreateItemResult_t ) virtual SteamAPICall_t CreateItem( AppId_t nConsumerAppId, EWorkshopFileType eFileType ) = 0; // create new item for this app with no content attached yet virtual UGCUpdateHandle_t StartItemUpdate( AppId_t nConsumerAppId, PublishedFileId_t nPublishedFileID ) = 0; // start an UGC item update. Set changed properties before commiting update with CommitItemUpdate() @@ -236,16 +268,28 @@ public: virtual bool SetItemPreview( UGCUpdateHandle_t handle, const char *pszPreviewFile ) = 0; // change preview image file for this item. pszPreviewFile points to local image file, which must be under 1MB in size virtual bool RemoveItemKeyValueTags( UGCUpdateHandle_t handle, const char *pchKey ) = 0; // remove any existing key-value tags with the specified key virtual bool AddItemKeyValueTag( UGCUpdateHandle_t handle, const char *pchKey, const char *pchValue ) = 0; // add new key-value tags for the item. Note that there can be multiple values for a tag. + virtual bool AddItemPreviewFile( UGCUpdateHandle_t handle, const char *pszPreviewFile, EItemPreviewType type ) = 0; // add preview file for this item. pszPreviewFile points to local file, which must be under 1MB in size + virtual bool AddItemPreviewVideo( UGCUpdateHandle_t handle, const char *pszVideoID ) = 0; // add preview video for this item + virtual bool UpdateItemPreviewFile( UGCUpdateHandle_t handle, uint32 index, const char *pszPreviewFile ) = 0; // updates an existing preview file for this item. pszPreviewFile points to local file, which must be under 1MB in size + virtual bool UpdateItemPreviewVideo( UGCUpdateHandle_t handle, uint32 index, const char *pszVideoID ) = 0; // updates an existing preview video for this item + virtual bool RemoveItemPreview( UGCUpdateHandle_t handle, uint32 index ) = 0; // remove a preview by index starting at 0 (previews are sorted) + CALL_RESULT( SubmitItemUpdateResult_t ) virtual SteamAPICall_t SubmitItemUpdate( UGCUpdateHandle_t handle, const char *pchChangeNote ) = 0; // commit update process started with StartItemUpdate() virtual EItemUpdateStatus GetItemUpdateProgress( UGCUpdateHandle_t handle, uint64 *punBytesProcessed, uint64* punBytesTotal ) = 0; // Steam Workshop Consumer API + CALL_RESULT( SetUserItemVoteResult_t ) virtual SteamAPICall_t SetUserItemVote( PublishedFileId_t nPublishedFileID, bool bVoteUp ) = 0; + CALL_RESULT( GetUserItemVoteResult_t ) virtual SteamAPICall_t GetUserItemVote( PublishedFileId_t nPublishedFileID ) = 0; + CALL_RESULT( UserFavoriteItemsListChanged_t ) virtual SteamAPICall_t AddItemToFavorites( AppId_t nAppId, PublishedFileId_t nPublishedFileID ) = 0; + CALL_RESULT( UserFavoriteItemsListChanged_t ) virtual SteamAPICall_t RemoveItemFromFavorites( AppId_t nAppId, PublishedFileId_t nPublishedFileID ) = 0; + CALL_RESULT( RemoteStorageSubscribePublishedFileResult_t ) virtual SteamAPICall_t SubscribeItem( PublishedFileId_t nPublishedFileID ) = 0; // subscribe to this item, will be installed ASAP + CALL_RESULT( RemoteStorageUnsubscribePublishedFileResult_t ) virtual SteamAPICall_t UnsubscribeItem( PublishedFileId_t nPublishedFileID ) = 0; // unsubscribe from this item, will be uninstalled after game quits virtual uint32 GetNumSubscribedItems() = 0; // number of subscribed items virtual uint32 GetSubscribedItems( PublishedFileId_t* pvecPublishedFileID, uint32 cMaxEntries ) = 0; // all subscribed item PublishFileIDs @@ -255,7 +299,7 @@ public: // get info about currently installed content on disc for items that have k_EItemStateInstalled set // if k_EItemStateLegacyItem is set, pchFolder contains the path to the legacy file itself (not a folder) - virtual bool GetItemInstallInfo( PublishedFileId_t nPublishedFileID, uint64 *punSizeOnDisk, char *pchFolder, uint32 cchFolderSize, uint32 *punTimeStamp ) = 0; + virtual bool GetItemInstallInfo( PublishedFileId_t nPublishedFileID, uint64 *punSizeOnDisk, OUT_STRING_COUNT( cchFolderSize ) char *pchFolder, uint32 cchFolderSize, uint32 *punTimeStamp ) = 0; // get info about pending update for items that have k_EItemStateNeedsUpdate set. punBytesTotal will be valid after download started once virtual bool GetItemDownloadInfo( PublishedFileId_t nPublishedFileID, uint64 *punBytesDownloaded, uint64 *punBytesTotal ) = 0; @@ -271,9 +315,37 @@ public: // SuspendDownloads( true ) will suspend all workshop downloads until SuspendDownloads( false ) is called or the game ends virtual void SuspendDownloads( bool bSuspend ) = 0; + + // usage tracking + CALL_RESULT( StartPlaytimeTrackingResult_t ) + virtual SteamAPICall_t StartPlaytimeTracking( PublishedFileId_t *pvecPublishedFileID, uint32 unNumPublishedFileIDs ) = 0; + CALL_RESULT( StopPlaytimeTrackingResult_t ) + virtual SteamAPICall_t StopPlaytimeTracking( PublishedFileId_t *pvecPublishedFileID, uint32 unNumPublishedFileIDs ) = 0; + CALL_RESULT( StopPlaytimeTrackingResult_t ) + virtual SteamAPICall_t StopPlaytimeTrackingForAllItems() = 0; + + // parent-child relationship or dependency management + CALL_RESULT( AddUGCDependencyResult_t ) + 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_VERSION007" +#define STEAMUGC_INTERFACE_VERSION "STEAMUGC_INTERFACE_VERSION010" //----------------------------------------------------------------------------- // Purpose: Callback for querying UGC @@ -320,6 +392,7 @@ struct SubmitItemUpdateResult_t enum { k_iCallback = k_iClientUGCCallbacks + 4 }; EResult m_eResult; bool m_bUserNeedsToAcceptWorkshopLegalAgreement; + PublishedFileId_t m_nPublishedFileId; }; @@ -380,6 +453,93 @@ struct GetUserItemVoteResult_t bool m_bVoteSkipped; }; +//----------------------------------------------------------------------------- +// Purpose: The result of a call to StartPlaytimeTracking() +//----------------------------------------------------------------------------- +struct StartPlaytimeTrackingResult_t +{ + enum { k_iCallback = k_iClientUGCCallbacks + 10 }; + EResult m_eResult; +}; + +//----------------------------------------------------------------------------- +// Purpose: The result of a call to StopPlaytimeTracking() +//----------------------------------------------------------------------------- +struct StopPlaytimeTrackingResult_t +{ + enum { k_iCallback = k_iClientUGCCallbacks + 11 }; + EResult m_eResult; +}; + +//----------------------------------------------------------------------------- +// Purpose: The result of a call to AddDependency +//----------------------------------------------------------------------------- +struct AddUGCDependencyResult_t +{ + enum { k_iCallback = k_iClientUGCCallbacks + 12 }; + EResult m_eResult; + PublishedFileId_t m_nPublishedFileId; + PublishedFileId_t m_nChildPublishedFileId; +}; + +//----------------------------------------------------------------------------- +// Purpose: The result of a call to RemoveDependency +//----------------------------------------------------------------------------- +struct RemoveUGCDependencyResult_t +{ + enum { k_iCallback = k_iClientUGCCallbacks + 13 }; + EResult m_eResult; + PublishedFileId_t m_nPublishedFileId; + PublishedFileId_t m_nChildPublishedFileId; +}; + + +//----------------------------------------------------------------------------- +// 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/public/steam/isteamunifiedmessages.h b/public/steam/isteamunifiedmessages.h deleted file mode 100644 index edee4a48..00000000 --- a/public/steam/isteamunifiedmessages.h +++ /dev/null @@ -1,63 +0,0 @@ -//========= Copyright 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/public/steam/isteamuser.h b/public/steam/isteamuser.h index 5af937d2..0ea2bb82 100644 --- a/public/steam/isteamuser.h +++ b/public/steam/isteamuser.h @@ -30,8 +30,6 @@ struct CallbackMsg_t }; #pragma pack( pop ) -// reference to a steam call, to filter results by -typedef int32 HSteamCall; //----------------------------------------------------------------------------- // Purpose: Functions for accessing and manipulating a steam account @@ -91,36 +89,50 @@ public: // k_eVoiceResultNotRecording virtual void StopVoiceRecording( ) = 0; - // Determine the amount of captured audio data that is available in bytes. - // This provides both the compressed and uncompressed data. Please note that the uncompressed - // data is not the raw feed from the microphone: data may only be available if audible - // levels of speech are detected. - // nUncompressedVoiceDesiredSampleRate is necessary to know the number of bytes to return in pcbUncompressed - can be set to 0 if you don't need uncompressed (the usual case) - // If you're upgrading from an older Steamworks API, you'll want to pass in 11025 to nUncompressedVoiceDesiredSampleRate - virtual EVoiceResult GetAvailableVoice( uint32 *pcbCompressed, uint32 *pcbUncompressed, uint32 nUncompressedVoiceDesiredSampleRate ) = 0; - - // Gets the latest voice data from the microphone. Compressed data is an arbitrary format, and is meant to be handed back to - // DecompressVoice() for playback later as a binary blob. Uncompressed data is 16-bit, signed integer, 11025Hz PCM format. - // Please note that the uncompressed data is not the raw feed from the microphone: data may only be available if audible - // levels of speech are detected, and may have passed through denoising filters, etc. - // This function should be called as often as possible once recording has started; once per frame at least. - // nBytesWritten is set to the number of bytes written to pDestBuffer. - // nUncompressedBytesWritten is set to the number of bytes written to pUncompressedDestBuffer. - // You must grab both compressed and uncompressed here at the same time, if you want both. - // Matching data that is not read during this call will be thrown away. - // GetAvailableVoice() can be used to determine how much data is actually available. - // If you're upgrading from an older Steamworks API, you'll want to pass in 11025 to nUncompressedVoiceDesiredSampleRate - virtual EVoiceResult GetVoice( bool bWantCompressed, void *pDestBuffer, uint32 cbDestBufferSize, uint32 *nBytesWritten, bool bWantUncompressed, void *pUncompressedDestBuffer, uint32 cbUncompressedDestBufferSize, uint32 *nUncompressBytesWritten, uint32 nUncompressedVoiceDesiredSampleRate ) = 0; - - // Decompresses a chunk of compressed data produced by GetVoice(). - // nBytesWritten is set to the number of bytes written to pDestBuffer unless the return value is k_EVoiceResultBufferTooSmall. - // In that case, nBytesWritten is set to the size of the buffer required to decompress the given - // data. The suggested buffer size for the destination buffer is 22 kilobytes. - // The output format of the data is 16-bit signed at the requested samples per second. - // If you're upgrading from an older Steamworks API, you'll want to pass in 11025 to nDesiredSampleRate + // Determine the size of captured audio data that is available from GetVoice. + // Most applications will only use compressed data and should ignore the other + // parameters, which exist primarily for backwards compatibility. See comments + // below for further explanation of "uncompressed" data. + virtual EVoiceResult GetAvailableVoice( uint32 *pcbCompressed, uint32 *pcbUncompressed_Deprecated = 0, uint32 nUncompressedVoiceDesiredSampleRate_Deprecated = 0 ) = 0; + + // --------------------------------------------------------------------------- + // NOTE: "uncompressed" audio is a deprecated feature and should not be used + // by most applications. It is raw single-channel 16-bit PCM wave data which + // may have been run through preprocessing filters and/or had silence removed, + // so the uncompressed audio could have a shorter duration than you expect. + // There may be no data at all during long periods of silence. Also, fetching + // uncompressed audio will cause GetVoice to discard any leftover compressed + // audio, so you must fetch both types at once. Finally, GetAvailableVoice is + // not precisely accurate when the uncompressed size is requested. So if you + // really need to use uncompressed audio, you should call GetVoice frequently + // with two very large (20kb+) output buffers instead of trying to allocate + // perfectly-sized buffers. But most applications should ignore all of these + // details and simply leave the "uncompressed" parameters as NULL/zero. + // --------------------------------------------------------------------------- + + // Read captured audio data from the microphone buffer. This should be called + // at least once per frame, and preferably every few milliseconds, to keep the + // microphone input delay as low as possible. Most applications will only use + // compressed data and should pass NULL/zero for the "uncompressed" parameters. + // Compressed data can be transmitted by your application and decoded into raw + // using the DecompressVoice function below. + virtual EVoiceResult GetVoice( bool bWantCompressed, void *pDestBuffer, uint32 cbDestBufferSize, uint32 *nBytesWritten, bool bWantUncompressed_Deprecated = false, void *pUncompressedDestBuffer_Deprecated = 0, uint32 cbUncompressedDestBufferSize_Deprecated = 0, uint32 *nUncompressBytesWritten_Deprecated = 0, uint32 nUncompressedVoiceDesiredSampleRate_Deprecated = 0 ) = 0; + + // Decodes the compressed voice data returned by GetVoice. The output data is + // raw single-channel 16-bit PCM audio. The decoder supports any sample rate + // from 11025 to 48000; see GetVoiceOptimalSampleRate() below for details. + // If the output buffer is not large enough, then *nBytesWritten will be set + // to the required buffer size, and k_EVoiceResultBufferTooSmall is returned. + // It is suggested to start with a 20kb buffer and reallocate as necessary. virtual EVoiceResult DecompressVoice( const void *pCompressed, uint32 cbCompressed, void *pDestBuffer, uint32 cbDestBufferSize, uint32 *nBytesWritten, uint32 nDesiredSampleRate ) = 0; - // This returns the frequency of the voice data as it's stored internally; calling DecompressVoice() with this size will yield the best results + // This returns the native sample rate of the Steam voice decompressor; using + // this sample rate for DecompressVoice will perform the least CPU processing. + // However, the final audio quality will depend on how well the audio device + // (and/or your application's audio output SDK) deals with lower sample rates. + // You may find that you get the best audio output quality when you ignore + // this function and use the native sample rate of your audio output device, + // which is usually 48000 or 44100. virtual uint32 GetVoiceOptimalSampleRate() = 0; // Retrieve ticket to be sent to the entity who wishes to authenticate you. @@ -153,6 +165,7 @@ public: // Requests a ticket encrypted with an app specific shared key // pDataToInclude, cbDataToInclude will be encrypted into the ticket // ( This is asynchronous, you must wait for the ticket to be completed by the server ) + CALL_RESULT( EncryptedAppTicketResponse_t ) virtual SteamAPICall_t RequestEncryptedAppTicket( void *pDataToInclude, int cbDataToInclude ) = 0; // retrieve a finished ticket @@ -176,48 +189,24 @@ public: // or else immediately navigate to the result URL using a hidden browser window. // NOTE 2: The resulting authorization cookie has an expiration time of one day, // so it would be a good idea to request and visit a new auth URL every 12 hours. + CALL_RESULT( StoreAuthURLResponse_t ) virtual SteamAPICall_t RequestStoreAuthURL( const char *pchRedirectURL ) = 0; -#ifdef _PS3 - // Initiates PS3 Logon request using just PSN ticket. - // - // PARAMS: bInteractive - If set tells Steam to go ahead and show the PS3 NetStart dialog if needed to - // prompt the user for network setup/PSN logon before initiating the Steam side of the logon. - // - // Listen for SteamServersConnected_t or SteamServerConnectFailure_t for status. SteamServerConnectFailure_t - // may return with EResult k_EResultExternalAccountUnlinked if the PSN account is unknown to Steam. You should - // then call LogOnAndLinkSteamAccountToPSN() after prompting the user for credentials to establish a link. - // Future calls to LogOn() after the one time link call should succeed as long as the user is connected to PSN. - virtual void LogOn( bool bInteractive ) = 0; - - // Initiates a request to logon with a specific steam username/password and create a PSN account link at - // the same time. Should call this only if LogOn() has failed and indicated the PSN account is unlinked. - // - // PARAMS: bInteractive - If set tells Steam to go ahead and show the PS3 NetStart dialog if needed to - // prompt the user for network setup/PSN logon before initiating the Steam side of the logon. pchUserName - // should be the users Steam username, and pchPassword should be the users Steam password. - // - // Listen for SteamServersConnected_t or SteamServerConnectFailure_t for status. SteamServerConnectFailure_t - // may return with EResult k_EResultOtherAccountAlreadyLinked if already linked to another account. - virtual void LogOnAndLinkSteamAccountToPSN( bool bInteractive, const char *pchUserName, const char *pchPassword ) = 0; - - // Final logon option for PS3, this logs into an existing account if already linked, but if not already linked - // creates a new account using the info in the PSN ticket to generate a unique account name. The new account is - // then linked to the PSN ticket. This is the faster option for new users who don't have an existing Steam account - // to get into multiplayer. - // - // PARAMS: bInteractive - If set tells Steam to go ahead and show the PS3 NetStart dialog if needed to - // prompt the user for network setup/PSN logon before initiating the Steam side of the logon. - virtual void LogOnAndCreateNewSteamAccountIfNeeded( bool bInteractive ) = 0; + // gets whether the users phone number is verified + virtual bool BIsPhoneVerified() = 0; - // Returns a special SteamID that represents the user's PSN information. Can be used to query the user's PSN avatar, - // online name, etc. through the standard Steamworks interfaces. - virtual CSteamID GetConsoleSteamID() = 0; -#endif + // gets whether the user has two factor enabled on their account + virtual bool BIsTwoFactorEnabled() = 0; + + // gets whether the users phone number is identifying + virtual bool BIsPhoneIdentifying() = 0; + + // gets whether the users phone number is awaiting (re)verification + virtual bool BIsPhoneRequiringVerification() = 0; }; -#define STEAMUSER_INTERFACE_VERSION "SteamUser018" +#define STEAMUSER_INTERFACE_VERSION "SteamUser019" // callbacks diff --git a/public/steam/isteamuserstats.h b/public/steam/isteamuserstats.h index 3a65691c..252a7978 100644 --- a/public/steam/isteamuserstats.h +++ b/public/steam/isteamuserstats.h @@ -1,4 +1,4 @@ -//====== Copyright � 1996-2009, Valve Corporation, All rights reserved. ======= +//====== Copyright ? 1996-2009, Valve Corporation, All rights reserved. ======= // // Purpose: interface to stats, achievements, and leaderboards // @@ -89,6 +89,7 @@ class ISteamUserStats { public: // Ask the server to send down this user's data and achievements for this game + CALL_BACK( UserStatsReceived_t ) virtual bool RequestCurrentStats() = 0; // Data accessors @@ -148,6 +149,7 @@ public: // returns a UserStatsReceived_t received when completed // if the other user has no stats, UserStatsReceived_t.m_eResult will be set to k_EResultFail // these stats won't be auto-updated; you'll need to call RequestUserStats() again to refresh any data + CALL_RESULT( UserStatsReceived_t ) virtual SteamAPICall_t RequestUserStats( CSteamID steamIDUser ) = 0; // requests stat information for a user, usable after a successful call to RequestUserStats() @@ -164,10 +166,12 @@ public: // asks the Steam back-end for a leaderboard by name, and will create it if it's not yet // This call is asynchronous, with the result returned in LeaderboardFindResult_t + CALL_RESULT(LeaderboardFindResult_t) virtual SteamAPICall_t FindOrCreateLeaderboard( const char *pchLeaderboardName, ELeaderboardSortMethod eLeaderboardSortMethod, ELeaderboardDisplayType eLeaderboardDisplayType ) = 0; // as above, but won't create the leaderboard if it's not found // This call is asynchronous, with the result returned in LeaderboardFindResult_t + CALL_RESULT( LeaderboardFindResult_t ) virtual SteamAPICall_t FindLeaderboard( const char *pchLeaderboardName ) = 0; // returns the name of a leaderboard @@ -190,11 +194,13 @@ public: // k_ELeaderboardDataRequestGlobalAroundUser requests rows around the current user, nRangeStart being negate // e.g. DownloadLeaderboardEntries( hLeaderboard, k_ELeaderboardDataRequestGlobalAroundUser, -3, 3 ) will return 7 rows, 3 before the user, 3 after // k_ELeaderboardDataRequestFriends requests all the rows for friends of the current user + CALL_RESULT( LeaderboardScoresDownloaded_t ) virtual SteamAPICall_t DownloadLeaderboardEntries( SteamLeaderboard_t hSteamLeaderboard, ELeaderboardDataRequest eLeaderboardDataRequest, int nRangeStart, int nRangeEnd ) = 0; // as above, but downloads leaderboard entries for an arbitrary set of users - ELeaderboardDataRequest is k_ELeaderboardDataRequestUsers // if a user doesn't have a leaderboard entry, they won't be included in the result // a max of 100 users can be downloaded at a time, with only one outstanding call at a time METHOD_DESC(Downloads leaderboard entries for an arbitrary set of users - ELeaderboardDataRequest is k_ELeaderboardDataRequestUsers) + CALL_RESULT( LeaderboardScoresDownloaded_t ) virtual SteamAPICall_t DownloadLeaderboardEntriesForUsers( SteamLeaderboard_t hSteamLeaderboard, ARRAY_COUNT_D(cUsers, Array of users to retrieve) CSteamID *prgUsers, int cUsers ) = 0; @@ -218,20 +224,24 @@ public: // This call is asynchronous, with the result returned in LeaderboardScoreUploaded_t // Details are extra game-defined information regarding how the user got that score // pScoreDetails points to an array of int32's, cScoreDetailsCount is the number of int32's in the list + CALL_RESULT( LeaderboardScoreUploaded_t ) virtual SteamAPICall_t UploadLeaderboardScore( SteamLeaderboard_t hSteamLeaderboard, ELeaderboardUploadScoreMethod eLeaderboardUploadScoreMethod, int32 nScore, const int32 *pScoreDetails, int cScoreDetailsCount ) = 0; // Attaches a piece of user generated content the user's entry on a leaderboard. // hContent is a handle to a piece of user generated content that was shared using ISteamUserRemoteStorage::FileShare(). // This call is asynchronous, with the result returned in LeaderboardUGCSet_t. + CALL_RESULT( LeaderboardUGCSet_t ) virtual SteamAPICall_t AttachLeaderboardUGC( SteamLeaderboard_t hSteamLeaderboard, UGCHandle_t hUGC ) = 0; // Retrieves the number of players currently playing your game (online + offline) // This call is asynchronous, with the result returned in NumberOfCurrentPlayers_t + CALL_RESULT( NumberOfCurrentPlayers_t ) virtual SteamAPICall_t GetNumberOfCurrentPlayers() = 0; // Requests that Steam fetch data on the percentage of players who have received each achievement // for the game globally. // This call is asynchronous, with the result returned in GlobalAchievementPercentagesReady_t. + CALL_RESULT( GlobalAchievementPercentagesReady_t ) virtual SteamAPICall_t RequestGlobalAchievementPercentages() = 0; // Get the info on the most achieved achievement for the game, returns an iterator index you can use to fetch @@ -251,6 +261,7 @@ public: // This call is asynchronous, with the results returned in GlobalStatsReceived_t. // nHistoryDays specifies how many days of day-by-day history to retrieve in addition // to the overall totals. The limit is 60. + CALL_RESULT( GlobalStatsReceived_t ) virtual SteamAPICall_t RequestGlobalStats( int nHistoryDays ) = 0; // Gets the lifetime totals for an aggregated stat diff --git a/public/steam/isteamutils.h b/public/steam/isteamutils.h index 54777d33..36059829 100644 --- a/public/steam/isteamutils.h +++ b/public/steam/isteamutils.h @@ -1,4 +1,4 @@ -//====== Copyright � 1996-2008, Valve Corporation, All rights reserved. ======= +//====== Copyright ? 1996-2008, Valve Corporation, All rights reserved. ======= // // Purpose: interface to utility functions in Steam // @@ -61,7 +61,7 @@ public: // the universe this client is connecting to virtual EUniverse GetConnectedUniverse() = 0; - // Steam server time - in PST, number of seconds since January 1, 1970 (i.e unix time) + // Steam server time. Number of seconds since January 1, 1970, GMT (i.e unix time) virtual uint32 GetServerRealTime() = 0; // returns the 2 digit ISO 3166-1-alpha-2 format country code this client is running in (as looked up via an IP-to-location database) @@ -95,9 +95,8 @@ public: virtual ESteamAPICallFailure GetAPICallFailureReason( SteamAPICall_t hSteamAPICall ) = 0; virtual bool GetAPICallResult( SteamAPICall_t hSteamAPICall, void *pCallback, int cubCallback, int iCallbackExpected, bool *pbFailed ) = 0; - // this needs to be called every frame to process matchmaking results - // redundant if you're already calling SteamAPI_RunCallbacks() - virtual void RunFrame() = 0; + // Deprecated. Applications should use SteamAPI_RunCallbacks() instead. Game servers do not need to call this function. + STEAM_PRIVATE_API( virtual void RunFrame() = 0; ) // returns the number of IPC calls made since the last time this function was called // Used for perf debugging so you can understand how many IPC calls your game makes per frame @@ -126,7 +125,6 @@ public: // refresh the screen with Present or SwapBuffers to allow the overlay to do it's work. virtual bool BOverlayNeedsPresent() = 0; -#ifndef _PS3 // Asynchronous call to check if an executable file has been signed using the public key set on the signing tab // of the partner site, for example to refuse to load modified executable files. // The result is returned in CheckFileSignature_t. @@ -135,18 +133,8 @@ public: // k_ECheckFileSignatureFileNotFound - The file does not exist on disk. // k_ECheckFileSignatureInvalidSignature - The file exists, and the signing tab has been set for this file, but the file is either not signed or the signature does not match. // k_ECheckFileSignatureValidSignature - The file is signed and the signature is valid. + CALL_RESULT( CheckFileSignature_t ) virtual SteamAPICall_t CheckFileSignature( const char *szFileName ) = 0; -#endif - -#ifdef _PS3 - virtual void PostPS3SysutilCallback( uint64_t status, uint64_t param, void* userdata ) = 0; - virtual bool BIsReadyToShutdown() = 0; - virtual bool BIsPSNOnline() = 0; - - // Call this with localized strings for the language the game is running in, otherwise default english - // strings will be used by Steam. - virtual void SetPSNGameBootInviteStrings( const char *pchSubject, const char *pchBody ) = 0; -#endif // Activates the Big Picture text input dialog which only supports gamepad input virtual bool ShowGamepadTextInput( EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, const char *pchDescription, uint32 unCharMax, const char *pchExistingText ) = 0; @@ -163,9 +151,27 @@ public: // Sets the inset of the overlay notification from the corner specified by SetOverlayNotificationPosition. virtual void SetOverlayNotificationInset( int nHorizontalInset, int nVerticalInset ) = 0; + + // returns true if Steam & the Steam Overlay are running in Big Picture mode + // Games much be launched through the Steam client to enable the Big Picture overlay. During development, + // a game can be added as a non-steam game to the developers library to test this feature + virtual bool IsSteamInBigPictureMode() = 0; + + // ask SteamUI to create and render its OpenVR dashboard + virtual void StartVRDashboard() = 0; + + // Returns true if the HMD content will be streamed via Steam In-Home Streaming + virtual bool IsVRHeadsetStreamingEnabled() = 0; + + // Set whether the HMD content will be streamed via Steam In-Home Streaming + // If this is set to true, then the scene in the HMD headset will be streamed, and remote input will not be allowed. + // If this is set to false, then the application window will be streamed instead, and remote input will be allowed. + // The default is true unless "VRHeadsetStreaming" "0" is in the extended appinfo for a game. + // (this is useful for games that have asymmetric multiplayer gameplay) + virtual void SetVRHeadsetStreamingEnabled( bool bEnabled ) = 0; }; -#define STEAMUTILS_INTERFACE_VERSION "SteamUtils007" +#define STEAMUTILS_INTERFACE_VERSION "SteamUtils009" // callbacks @@ -203,6 +209,8 @@ struct SteamAPICallCompleted_t { enum { k_iCallback = k_iSteamUtilsCallbacks + 3 }; SteamAPICall_t m_hAsyncCall; + int m_iCallback; + uint32 m_cubParam; }; @@ -235,60 +243,6 @@ struct CheckFileSignature_t ECheckFileSignature m_eCheckFileSignature; }; -#ifdef _PS3 -//----------------------------------------------------------------------------- -// callback for NetCtlNetStartDialog finishing on PS3 -//----------------------------------------------------------------------------- -struct NetStartDialogFinished_t -{ - enum { k_iCallback = k_iSteamUtilsCallbacks + 6 }; -}; - -//----------------------------------------------------------------------------- -// callback for NetCtlNetStartDialog unloaded on PS3 -//----------------------------------------------------------------------------- -struct NetStartDialogUnloaded_t -{ - enum { k_iCallback = k_iSteamUtilsCallbacks + 7 }; -}; - -//----------------------------------------------------------------------------- -// callback for system menu closing on PS3 - should trigger resyncronizing friends list, etc. -//----------------------------------------------------------------------------- -struct PS3SystemMenuClosed_t -{ - enum { k_iCallback = k_iSteamUtilsCallbacks + 8 }; -}; - -//----------------------------------------------------------------------------- -// callback for NP message being selected by user on PS3 - should trigger handling of message if it's a lobby invite, etc. -//----------------------------------------------------------------------------- -struct PS3NPMessageSelected_t -{ - enum { k_iCallback = k_iSteamUtilsCallbacks + 9 }; - uint32 dataid; -}; - -//----------------------------------------------------------------------------- -// callback for when the PS3 keyboard dialog closes -//----------------------------------------------------------------------------- -struct PS3KeyboardDialogFinished_t -{ - enum { k_iCallback = k_iSteamUtilsCallbacks + 10 }; -}; - -// k_iSteamUtilsCallbacks + 11 is taken - -//----------------------------------------------------------------------------- -// callback for PSN status changing on PS3 -//----------------------------------------------------------------------------- -struct PS3PSNStatusChange_t -{ - enum { k_iCallback = k_iSteamUtilsCallbacks + 12 }; - bool m_bPSNOnline; -}; - -#endif // k_iSteamUtilsCallbacks + 13 is taken diff --git a/public/steam/isteamvideo.h b/public/steam/isteamvideo.h index 6893f0b2..a9a7017e 100644 --- a/public/steam/isteamvideo.h +++ b/public/steam/isteamvideo.h @@ -1,4 +1,4 @@ -//====== Copyright © 1996-2014 Valve Corporation, All rights reserved. ======= +//====== Copyright ? 1996-2014 Valve Corporation, All rights reserved. ======= // // Purpose: interface to Steam Video // @@ -36,9 +36,14 @@ public: // returns true if user is uploading a live broadcast virtual bool IsBroadcasting( int *pnNumViewers ) = 0; + + // Get the OPF Details for 360 Video Playback + CALL_BACK( GetOPFSettingsResult_t ) + virtual void GetOPFSettings( AppId_t unVideoAppID ) = 0; + virtual bool GetOPFStringForApp( AppId_t unVideoAppID, char *pchBuffer, int32 *pnBufferSize ) = 0; }; -#define STEAMVIDEO_INTERFACE_VERSION "STEAMVIDEO_INTERFACE_V001" +#define STEAMVIDEO_INTERFACE_VERSION "STEAMVIDEO_INTERFACE_V002" DEFINE_CALLBACK( BroadcastUploadStart_t, k_iClientVideoCallbacks + 4 ) END_DEFINE_CALLBACK_0() @@ -51,7 +56,13 @@ DEFINE_CALLBACK( GetVideoURLResult_t, k_iClientVideoCallbacks + 11 ) CALLBACK_MEMBER( 0, EResult, m_eResult ) CALLBACK_MEMBER( 1, AppId_t, m_unVideoAppID ) CALLBACK_MEMBER( 2, char, m_rgchURL[256] ) -END_DEFINE_CALLBACK_1() +END_DEFINE_CALLBACK_3() + + +DEFINE_CALLBACK( GetOPFSettingsResult_t, k_iClientVideoCallbacks + 24 ) + CALLBACK_MEMBER( 0, EResult, m_eResult ) + CALLBACK_MEMBER( 1, AppId_t, m_unVideoAppID ) +END_DEFINE_CALLBACK_2() #pragma pack( pop ) diff --git a/public/steam/matchmakingtypes.h b/public/steam/matchmakingtypes.h index 08d5a966..3a63cb4f 100644 --- a/public/steam/matchmakingtypes.h +++ b/public/steam/matchmakingtypes.h @@ -1,4 +1,4 @@ -//========= Copyright � 1996-2008, Valve LLC, All rights reserved. ============ +//========= Copyright ? 1996-2008, Valve LLC, All rights reserved. ============ // // Purpose: // @@ -156,9 +156,9 @@ inline const char *servernetadr_t::ToString( uint32 unIP, uint16 usPort ) const static int nBuf = 0; unsigned char *ipByte = (unsigned char *)&unIP; #ifdef VALVE_BIG_ENDIAN - V_snprintf (s[nBuf], sizeof( s[nBuf] ), "%u.%u.%u.%u:%i", (int)(ipByte[0]), (int)(ipByte[1]), (int)(ipByte[2]), (int)(ipByte[3]), usPort ); + _snprintf (s[nBuf], sizeof( s[nBuf] ), "%u.%u.%u.%u:%i", (int)(ipByte[0]), (int)(ipByte[1]), (int)(ipByte[2]), (int)(ipByte[3]), usPort ); #else - V_snprintf (s[nBuf], sizeof( s[nBuf] ), "%u.%u.%u.%u:%i", (int)(ipByte[3]), (int)(ipByte[2]), (int)(ipByte[1]), (int)(ipByte[0]), usPort ); + _snprintf (s[nBuf], sizeof( s[nBuf] ), "%u.%u.%u.%u:%i", (int)(ipByte[3]), (int)(ipByte[2]), (int)(ipByte[1]), (int)(ipByte[0]), usPort ); #endif const char *pchRet = s[nBuf]; ++nBuf; diff --git a/public/steam/steam_api.h b/public/steam/steam_api.h index f3872501..010a548f 100644 --- a/public/steam/steam_api.h +++ b/public/steam/steam_api.h @@ -23,17 +23,14 @@ #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" -#if defined( _PS3 ) -#include "steamps3params.h" -#endif // Steam API export macro #if defined( _WIN32 ) && !defined( _X360 ) @@ -65,77 +62,124 @@ // //----------------------------------------------------------------------------------------------------------------------------------------------------------// -// S_API void SteamAPI_Init(); (see below) -S_API void S_CALLTYPE SteamAPI_Shutdown(); -// checks if a local Steam client is running -S_API bool S_CALLTYPE SteamAPI_IsSteamRunning(); +// SteamAPI_Init must be called before using any other API functions. If it fails, an +// error message will be output to the debugger (or stderr) with further information. +S_API bool S_CALLTYPE SteamAPI_Init(); -// Detects if your executable was launched through the Steam client, and restarts your game through -// the client if necessary. The Steam client will be started if it is not running. +// SteamAPI_Shutdown should be called during process shutdown if possible. +S_API void S_CALLTYPE SteamAPI_Shutdown(); + +// SteamAPI_RestartAppIfNecessary ensures that your executable was launched through Steam. // -// Returns: true if your executable was NOT launched through the Steam client. This function will -// then start your application through the client. Your current process should exit. +// Returns true if the current process should terminate. Steam is now re-launching your application. // -// false if your executable was started through the Steam client or a steam_appid.txt file -// is present in your game's directory (for development). Your current process should continue. +// Returns false if no action needs to be taken. This means that your executable was started through +// the Steam client, or a steam_appid.txt file is present in your game's directory (for development). +// Your current process should continue if false is returned. // -// NOTE: This function should be used only if you are using CEG or not using Steam's DRM. Once applied -// to your executable, Steam's DRM will handle restarting through Steam if necessary. +// NOTE: If you use the Steam DRM wrapper on your primary executable file, this check is unnecessary +// since the DRM wrapper will ensure that your application was launched properly through Steam. S_API bool S_CALLTYPE SteamAPI_RestartAppIfNecessary( uint32 unOwnAppID ); +// Many Steam API functions allocate a small amount of thread-local memory for parameter storage. +// SteamAPI_ReleaseCurrentThreadMemory() will free API memory associated with the calling thread. +// This function is also called automatically by SteamAPI_RunCallbacks(), so a single-threaded +// program never needs to explicitly call this function. +S_API void S_CALLTYPE SteamAPI_ReleaseCurrentThreadMemory(); + + // crash dump recording functions S_API void S_CALLTYPE SteamAPI_WriteMiniDump( uint32 uStructuredExceptionCode, void* pvExceptionInfo, uint32 uBuildID ); S_API void S_CALLTYPE SteamAPI_SetMiniDumpComment( const char *pchMsg ); -// interface pointers, configured by SteamAPI_Init() -S_API ISteamClient *S_CALLTYPE SteamClient(); - -// -// VERSION_SAFE_STEAM_API_INTERFACES is usually not necessary, but it provides safety against releasing -// new steam_api.dll's without recompiling/rereleasing modules that use it. -// -// If you use VERSION_SAFE_STEAM_API_INTERFACES, then you should call SteamAPI_InitSafe(). Also, to get the -// Steam interfaces, you must create and Init() a CSteamAPIContext (below) and use the interfaces in there. -// -// If you don't use VERSION_SAFE_STEAM_API_INTERFACES, then you can use SteamAPI_Init() and the SteamXXXX() -// functions below to get at the Steam interfaces. -// -#ifdef VERSION_SAFE_STEAM_API_INTERFACES -S_API bool S_CALLTYPE SteamAPI_InitSafe(); -#else +//----------------------------------------------------------------------------------------------------------------------------------------------------------// +// Global accessors for Steamworks C++ APIs. See individual isteam*.h files for details. +// You should not cache the results of these accessors or pass the result pointers across +// modules! Different modules may be compiled against different SDK header versions, and +// the interface pointers could therefore be different across modules. Every line of code +// which calls into a Steamworks API should retrieve the interface from a global accessor. +//----------------------------------------------------------------------------------------------------------------------------------------------------------// +#if !defined( STEAM_API_EXPORTS ) +inline ISteamClient *SteamClient(); +inline ISteamUser *SteamUser(); +inline ISteamFriends *SteamFriends(); +inline ISteamUtils *SteamUtils(); +inline ISteamMatchmaking *SteamMatchmaking(); +inline ISteamUserStats *SteamUserStats(); +inline ISteamApps *SteamApps(); +inline ISteamNetworking *SteamNetworking(); +inline ISteamMatchmakingServers *SteamMatchmakingServers(); +inline ISteamRemoteStorage *SteamRemoteStorage(); +inline ISteamScreenshots *SteamScreenshots(); +inline ISteamHTTP *SteamHTTP(); +inline ISteamController *SteamController(); +inline ISteamUGC *SteamUGC(); +inline ISteamAppList *SteamAppList(); +inline ISteamMusic *SteamMusic(); +inline ISteamMusicRemote *SteamMusicRemote(); +inline ISteamHTMLSurface *SteamHTMLSurface(); +inline ISteamInventory *SteamInventory(); +inline ISteamVideo *SteamVideo(); +inline ISteamParentalSettings *SteamParentalSettings(); +#endif // VERSION_SAFE_STEAM_API_INTERFACES -#if defined(_PS3) -S_API bool S_CALLTYPE SteamAPI_Init( SteamPS3Params_t *pParams ); -#else -S_API bool S_CALLTYPE SteamAPI_Init(); -#endif -S_API ISteamUser *S_CALLTYPE SteamUser(); -S_API ISteamFriends *S_CALLTYPE SteamFriends(); -S_API ISteamUtils *S_CALLTYPE SteamUtils(); -S_API ISteamMatchmaking *S_CALLTYPE SteamMatchmaking(); -S_API ISteamUserStats *S_CALLTYPE SteamUserStats(); -S_API ISteamApps *S_CALLTYPE SteamApps(); -S_API ISteamNetworking *S_CALLTYPE SteamNetworking(); -S_API ISteamMatchmakingServers *S_CALLTYPE SteamMatchmakingServers(); -S_API ISteamRemoteStorage *S_CALLTYPE SteamRemoteStorage(); -S_API ISteamScreenshots *S_CALLTYPE SteamScreenshots(); -S_API ISteamHTTP *S_CALLTYPE SteamHTTP(); -S_API ISteamUnifiedMessages *S_CALLTYPE SteamUnifiedMessages(); -S_API ISteamController *S_CALLTYPE SteamController(); -S_API ISteamUGC *S_CALLTYPE SteamUGC(); -S_API ISteamAppList *S_CALLTYPE SteamAppList(); -S_API ISteamMusic *S_CALLTYPE SteamMusic(); -S_API ISteamMusicRemote *S_CALLTYPE SteamMusicRemote(); -S_API ISteamHTMLSurface *S_CALLTYPE SteamHTMLSurface(); -S_API ISteamInventory *S_CALLTYPE SteamInventory(); -S_API ISteamVideo *S_CALLTYPE SteamVideo(); -#ifdef _PS3 -S_API ISteamPS3OverlayRender *S_CALLTYPE SteamPS3OverlayRender(); -#endif -#endif // VERSION_SAFE_STEAM_API_INTERFACES +// CSteamAPIContext encapsulates the Steamworks API global accessors into +// a single object. This is DEPRECATED and only remains for compatibility. +class CSteamAPIContext +{ +public: + // DEPRECATED - there is no benefit to using this over the global accessors + CSteamAPIContext() { Clear(); } + void Clear(); + bool Init(); + ISteamClient* SteamClient() const { return m_pSteamClient; } + ISteamUser* SteamUser() const { return m_pSteamUser; } + ISteamFriends* SteamFriends() const { return m_pSteamFriends; } + ISteamUtils* SteamUtils() const { return m_pSteamUtils; } + ISteamMatchmaking* SteamMatchmaking() const { return m_pSteamMatchmaking; } + ISteamUserStats* SteamUserStats() const { return m_pSteamUserStats; } + ISteamApps* SteamApps() const { return m_pSteamApps; } + ISteamMatchmakingServers* SteamMatchmakingServers() const { return m_pSteamMatchmakingServers; } + ISteamNetworking* SteamNetworking() const { return m_pSteamNetworking; } + ISteamRemoteStorage* SteamRemoteStorage() const { return m_pSteamRemoteStorage; } + ISteamScreenshots* SteamScreenshots() const { return m_pSteamScreenshots; } + ISteamHTTP* SteamHTTP() const { return m_pSteamHTTP; } + ISteamController* SteamController() const { return m_pController; } + ISteamUGC* SteamUGC() const { return m_pSteamUGC; } + ISteamAppList* SteamAppList() const { return m_pSteamAppList; } + ISteamMusic* SteamMusic() const { return m_pSteamMusic; } + ISteamMusicRemote* SteamMusicRemote() const { return m_pSteamMusicRemote; } + 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; + ISteamUser *m_pSteamUser; + ISteamFriends *m_pSteamFriends; + ISteamUtils *m_pSteamUtils; + ISteamMatchmaking *m_pSteamMatchmaking; + ISteamUserStats *m_pSteamUserStats; + ISteamApps *m_pSteamApps; + ISteamMatchmakingServers *m_pSteamMatchmakingServers; + ISteamNetworking *m_pSteamNetworking; + ISteamRemoteStorage *m_pSteamRemoteStorage; + ISteamScreenshots *m_pSteamScreenshots; + ISteamHTTP *m_pSteamHTTP; + ISteamController *m_pController; + ISteamUGC *m_pSteamUGC; + ISteamAppList *m_pSteamAppList; + ISteamMusic *m_pSteamMusic; + ISteamMusicRemote *m_pSteamMusicRemote; + ISteamHTMLSurface *m_pSteamHTMLSurface; + ISteamInventory *m_pSteamInventory; + ISteamVideo *m_pSteamVideo; + ISteamParentalSettings *m_pSteamParentalSettings; +}; //----------------------------------------------------------------------------------------------------------------------------------------------------------// @@ -160,10 +204,13 @@ S_API ISteamPS3OverlayRender *S_CALLTYPE SteamPS3OverlayRender(); // delivered/executed when your application calls SteamAPI_RunCallbacks(). //----------------------------------------------------------------------------------------------------------------------------------------------------------// +// SteamAPI_RunCallbacks is safe to call from multiple threads simultaneously, +// but if you choose to do this, callback code could be executed on any thread. +// One alternative is to call SteamAPI_RunCallbacks from the main thread only, +// and call SteamAPI_ReleaseCurrentThreadMemory regularly on other threads. S_API void S_CALLTYPE SteamAPI_RunCallbacks(); - // Declares a callback member function plus a helper member variable which // registers the callback on object creation and unregisters on destruction. // The optional fourth 'var' param exists only for backwards-compatibility @@ -236,66 +283,18 @@ class CCallResult : private CCallbackBase public: typedef void (T::*func_t)( P*, bool ); - CCallResult() - { - m_hAPICall = k_uAPICallInvalid; - m_pObj = NULL; - m_Func = NULL; - m_iCallback = P::k_iCallback; - } - - void Set( SteamAPICall_t hAPICall, T *p, func_t func ) - { - if ( m_hAPICall ) - SteamAPI_UnregisterCallResult( this, m_hAPICall ); - - m_hAPICall = hAPICall; - m_pObj = p; - m_Func = func; - - if ( hAPICall ) - SteamAPI_RegisterCallResult( this, hAPICall ); - } - - bool IsActive() const - { - return ( m_hAPICall != k_uAPICallInvalid ); - } - - void Cancel() - { - if ( m_hAPICall != k_uAPICallInvalid ) - { - SteamAPI_UnregisterCallResult( this, m_hAPICall ); - m_hAPICall = k_uAPICallInvalid; - } - - } - - ~CCallResult() - { - Cancel(); - } + CCallResult(); + ~CCallResult(); + + void Set( SteamAPICall_t hAPICall, T *p, func_t func ); + bool IsActive() const; + void Cancel(); void SetGameserverFlag() { m_nCallbackFlags |= k_ECallbackFlagsGameServer; } private: - virtual void Run( void *pvParam ) - { - m_hAPICall = k_uAPICallInvalid; // caller unregisters for us - (m_pObj->*m_Func)( (P *)pvParam, false ); - } - virtual void Run( void *pvParam, bool bIOFailure, SteamAPICall_t hSteamAPICall ) - { - if ( hSteamAPICall == m_hAPICall ) - { - m_hAPICall = k_uAPICallInvalid; // caller unregisters for us - (m_pObj->*m_Func)( (P *)pvParam, bIOFailure ); - } - } - virtual int GetCallbackSizeBytes() - { - return sizeof( P ); - } + virtual void Run( void *pvParam ); + virtual void Run( void *pvParam, bool bIOFailure, SteamAPICall_t hSteamAPICall ); + virtual int GetCallbackSizeBytes() { return sizeof( P ); } SteamAPICall_t m_hAPICall; T *m_pObj; @@ -317,42 +316,14 @@ public: // NOTE: If you can't provide the correct parameters at construction time, you should // use the CCallbackManual callback object (STEAM_CALLBACK_MANUAL macro) instead. - CCallback( T *pObj, func_t func ) : m_pObj( NULL ), m_Func( NULL ) - { - if ( bGameserver ) - { - this->SetGameserverFlag(); - } - Register( pObj, func ); - } - - // manual registration of the callback - void Register( T *pObj, func_t func ) - { - if ( !pObj || !func ) - return; - - if ( this->m_nCallbackFlags & CCallbackBase::k_ECallbackFlagsRegistered ) - Unregister(); - - m_pObj = pObj; - m_Func = func; - // SteamAPI_RegisterCallback sets k_ECallbackFlagsRegistered - SteamAPI_RegisterCallback( this, P::k_iCallback ); - } - - void Unregister() - { - // SteamAPI_UnregisterCallback removes k_ECallbackFlagsRegistered - SteamAPI_UnregisterCallback( this ); - } + CCallback( T *pObj, func_t func ); -protected: - virtual void Run( void *pvParam ) - { - (m_pObj->*m_Func)( (P *)pvParam ); - } + void Register( T *pObj, func_t func ); + void Unregister(); +protected: + virtual void Run( void *pvParam ); + T *m_pObj; func_t m_Func; }; @@ -373,26 +344,6 @@ public: -//----------------------------------------------------------------------------- -// The following macros are implementation details, not intended for public use -//----------------------------------------------------------------------------- -#define _STEAM_CALLBACK_AUTO_HOOK( thisclass, func, param ) -#define _STEAM_CALLBACK_HELPER( _1, _2, SELECTED, ... ) _STEAM_CALLBACK_##SELECTED -#define _STEAM_CALLBACK_SELECT( X, Y ) _STEAM_CALLBACK_HELPER X Y -#define _STEAM_CALLBACK_3( extra_code, thisclass, func, param ) \ - struct CCallbackInternal_ ## func : private CCallbackImpl< sizeof( param ) > { \ - CCallbackInternal_ ## func () { extra_code SteamAPI_RegisterCallback( this, param::k_iCallback ); } \ - CCallbackInternal_ ## func ( const CCallbackInternal_ ## func & ) { extra_code SteamAPI_RegisterCallback( this, param::k_iCallback ); } \ - CCallbackInternal_ ## func & operator=( const CCallbackInternal_ ## func & ) { return *this; } \ - private: virtual void Run( void *pvParam ) { _STEAM_CALLBACK_AUTO_HOOK( thisclass, func, param ) \ - thisclass *pOuter = reinterpret_cast( reinterpret_cast(this) - offsetof( thisclass, m_steamcallback_ ## func ) ); \ - pOuter->func( reinterpret_cast( pvParam ) ); \ - } \ - } m_steamcallback_ ## func ; void func( param *pParam ) -#define _STEAM_CALLBACK_4( _, thisclass, func, param, var ) \ - CCallback< thisclass, param > var; void func( param *pParam ) - - #ifdef _WIN32 // disable this warning; this pattern need for steam callback registration #pragma warning( disable: 4355 ) // 'this' : used in base member initializer list @@ -405,7 +356,11 @@ public: // The following functions are part of abstracting API access to the steamclient.dll, but should only be used in very specific cases //----------------------------------------------------------------------------------------------------------------------------------------------------------// -// pumps out all the steam messages, calling the register callback +// SteamAPI_IsSteamRunning() returns true if Steam is currently running +S_API bool S_CALLTYPE SteamAPI_IsSteamRunning(); + +// Pumps out all the steam messages, calling registered callbacks. +// NOT THREADSAFE - do not call from multiple threads simultaneously. S_API void Steam_RunCallbacks( HSteamPipe hSteamPipe, bool bGameServerCallbacks ); // register the callback funcs to use to interact with the steam dll @@ -414,7 +369,8 @@ S_API void Steam_RegisterInterfaceFuncs( void *hModule ); // returns the HSteamUser of the last user to dispatch a callback S_API HSteamUser Steam_GetHSteamUserCurrent(); -// returns the filename path of the current running Steam process, used if you need to load an explicit steam dll by name +// returns the filename path of the current running Steam process, used if you need to load an explicit steam dll by name. +// DEPRECATED - implementation is Windows only, and the path returned is a UTF-8 string which must be converted to UTF-16 for use with Win32 APIs S_API const char *SteamAPI_GetSteamInstallPath(); // returns the pipe we are communicating to Steam with @@ -427,224 +383,12 @@ S_API void SteamAPI_SetTryCatchCallbacks( bool bTryCatchCallbacks ); S_API HSteamPipe GetHSteamPipe(); S_API HSteamUser GetHSteamUser(); -#ifdef VERSION_SAFE_STEAM_API_INTERFACES -//----------------------------------------------------------------------------------------------------------------------------------------------------------// -// VERSION_SAFE_STEAM_API_INTERFACES uses CSteamAPIContext to provide interfaces to each module in a way that -// lets them each specify the interface versions they are compiled with. -// -// It's important that these stay inlined in the header so the calling module specifies the interface versions -// for whatever Steam API version it has. -//----------------------------------------------------------------------------------------------------------------------------------------------------------// - -S_API HSteamUser SteamAPI_GetHSteamUser(); - -class CSteamAPIContext -{ -public: - CSteamAPIContext(); - void Clear(); - - bool Init(); - - ISteamUser* SteamUser() { return m_pSteamUser; } - ISteamFriends* SteamFriends() { return m_pSteamFriends; } - ISteamUtils* SteamUtils() { return m_pSteamUtils; } - ISteamMatchmaking* SteamMatchmaking() { return m_pSteamMatchmaking; } - ISteamUserStats* SteamUserStats() { return m_pSteamUserStats; } - ISteamApps* SteamApps() { return m_pSteamApps; } - ISteamMatchmakingServers* SteamMatchmakingServers() { return m_pSteamMatchmakingServers; } - ISteamNetworking* SteamNetworking() { return m_pSteamNetworking; } - ISteamRemoteStorage* SteamRemoteStorage() { return m_pSteamRemoteStorage; } - ISteamScreenshots* SteamScreenshots() { return m_pSteamScreenshots; } - ISteamHTTP* SteamHTTP() { return m_pSteamHTTP; } - ISteamUnifiedMessages* SteamUnifiedMessages() { return m_pSteamUnifiedMessages; } - ISteamController* SteamController() { return m_pController; } - ISteamUGC* SteamUGC() { return m_pSteamUGC; } - ISteamAppList* SteamAppList() { return m_pSteamAppList; } - ISteamMusic* SteamMusic() { return m_pSteamMusic; } - ISteamMusicRemote* SteamMusicRemote() { return m_pSteamMusicRemote; } - ISteamHTMLSurface* SteamHTMLSurface() { return m_pSteamHTMLSurface; } - ISteamInventory* SteamInventory() { return m_pSteamInventory; } - ISteamVideo* SteamVideo() { return m_pSteamVideo; } -#ifdef _PS3 - ISteamPS3OverlayRender* SteamPS3OverlayRender() { return m_pSteamPS3OverlayRender; } -#endif - -private: - ISteamUser *m_pSteamUser; - ISteamFriends *m_pSteamFriends; - ISteamUtils *m_pSteamUtils; - ISteamMatchmaking *m_pSteamMatchmaking; - ISteamUserStats *m_pSteamUserStats; - ISteamApps *m_pSteamApps; - ISteamMatchmakingServers *m_pSteamMatchmakingServers; - ISteamNetworking *m_pSteamNetworking; - ISteamRemoteStorage *m_pSteamRemoteStorage; - ISteamScreenshots *m_pSteamScreenshots; - ISteamHTTP *m_pSteamHTTP; - ISteamUnifiedMessages*m_pSteamUnifiedMessages; - ISteamController *m_pController; - ISteamUGC *m_pSteamUGC; - ISteamAppList *m_pSteamAppList; - ISteamMusic *m_pSteamMusic; - ISteamMusicRemote *m_pSteamMusicRemote; - ISteamHTMLSurface *m_pSteamHTMLSurface; - ISteamInventory *m_pSteamInventory; - ISteamVideo *m_pSteamVideo; -#ifdef _PS3 - ISteamPS3OverlayRender *m_pSteamPS3OverlayRender; -#endif -}; - -inline CSteamAPIContext::CSteamAPIContext() -{ - Clear(); -} - -inline void CSteamAPIContext::Clear() -{ - m_pSteamUser = NULL; - m_pSteamFriends = NULL; - m_pSteamUtils = NULL; - m_pSteamMatchmaking = NULL; - m_pSteamUserStats = NULL; - m_pSteamApps = NULL; - m_pSteamMatchmakingServers = NULL; - m_pSteamNetworking = NULL; - m_pSteamRemoteStorage = NULL; - m_pSteamHTTP = NULL; - m_pSteamScreenshots = NULL; - m_pSteamMusic = NULL; - m_pSteamUnifiedMessages = NULL; - m_pController = NULL; - m_pSteamUGC = NULL; - m_pSteamAppList = NULL; - m_pSteamMusic = NULL; - m_pSteamMusicRemote= NULL; - m_pSteamHTMLSurface = NULL; - m_pSteamInventory = NULL; -#ifdef _PS3 - m_pSteamPS3OverlayRender = NULL; -#endif -} - -// This function must be inlined so the module using steam_api.dll gets the version names they want. -inline bool CSteamAPIContext::Init() -{ - if ( !SteamClient() ) - return false; - - HSteamUser hSteamUser = SteamAPI_GetHSteamUser(); - HSteamPipe hSteamPipe = SteamAPI_GetHSteamPipe(); - - m_pSteamUser = SteamClient()->GetISteamUser( hSteamUser, hSteamPipe, STEAMUSER_INTERFACE_VERSION ); - if ( !m_pSteamUser ) - return false; - - m_pSteamFriends = SteamClient()->GetISteamFriends( hSteamUser, hSteamPipe, STEAMFRIENDS_INTERFACE_VERSION ); - if ( !m_pSteamFriends ) - return false; - - m_pSteamUtils = SteamClient()->GetISteamUtils( hSteamPipe, STEAMUTILS_INTERFACE_VERSION ); - if ( !m_pSteamUtils ) - return false; - - m_pSteamMatchmaking = SteamClient()->GetISteamMatchmaking( hSteamUser, hSteamPipe, STEAMMATCHMAKING_INTERFACE_VERSION ); - if ( !m_pSteamMatchmaking ) - return false; - - m_pSteamMatchmakingServers = SteamClient()->GetISteamMatchmakingServers( hSteamUser, hSteamPipe, STEAMMATCHMAKINGSERVERS_INTERFACE_VERSION ); - if ( !m_pSteamMatchmakingServers ) - return false; - m_pSteamUserStats = SteamClient()->GetISteamUserStats( hSteamUser, hSteamPipe, STEAMUSERSTATS_INTERFACE_VERSION ); - if ( !m_pSteamUserStats ) - return false; - - m_pSteamApps = SteamClient()->GetISteamApps( hSteamUser, hSteamPipe, STEAMAPPS_INTERFACE_VERSION ); - if ( !m_pSteamApps ) - return false; - - m_pSteamNetworking = SteamClient()->GetISteamNetworking( hSteamUser, hSteamPipe, STEAMNETWORKING_INTERFACE_VERSION ); - if ( !m_pSteamNetworking ) - return false; - - m_pSteamRemoteStorage = SteamClient()->GetISteamRemoteStorage( hSteamUser, hSteamPipe, STEAMREMOTESTORAGE_INTERFACE_VERSION ); - if ( !m_pSteamRemoteStorage ) - return false; - - m_pSteamScreenshots = SteamClient()->GetISteamScreenshots( hSteamUser, hSteamPipe, STEAMSCREENSHOTS_INTERFACE_VERSION ); - if ( !m_pSteamScreenshots ) - return false; - - m_pSteamHTTP = SteamClient()->GetISteamHTTP( hSteamUser, hSteamPipe, STEAMHTTP_INTERFACE_VERSION ); - if ( !m_pSteamHTTP ) - return false; - - m_pSteamUnifiedMessages = SteamClient()->GetISteamUnifiedMessages( hSteamUser, hSteamPipe, STEAMUNIFIEDMESSAGES_INTERFACE_VERSION ); - if ( !m_pSteamUnifiedMessages ) - return false; - - m_pController = SteamClient()->GetISteamController( hSteamUser, hSteamPipe, STEAMCONTROLLER_INTERFACE_VERSION ); - if ( !m_pController ) - return false; - - m_pSteamUGC = SteamClient()->GetISteamUGC( hSteamUser, hSteamPipe, STEAMUGC_INTERFACE_VERSION ); - if ( !m_pSteamUGC ) - return false; - - m_pSteamAppList = SteamClient()->GetISteamAppList( hSteamUser, hSteamPipe, STEAMAPPLIST_INTERFACE_VERSION ); - if ( !m_pSteamAppList ) - return false; - - m_pSteamMusic = SteamClient()->GetISteamMusic( hSteamUser, hSteamPipe, STEAMMUSIC_INTERFACE_VERSION ); - if ( !m_pSteamMusic ) - { - return false; - } - - m_pSteamMusicRemote = SteamClient()->GetISteamMusicRemote( hSteamUser, hSteamPipe, STEAMMUSICREMOTE_INTERFACE_VERSION ); - if ( !m_pSteamMusicRemote ) - { - return false; - } - - m_pSteamHTMLSurface = SteamClient()->GetISteamHTMLSurface( hSteamUser, hSteamPipe, STEAMHTMLSURFACE_INTERFACE_VERSION ); - if ( !m_pSteamHTMLSurface ) - { - return false; - } - - m_pSteamInventory = SteamClient()->GetISteamInventory( hSteamUser, hSteamPipe, STEAMINVENTORY_INTERFACE_VERSION ); - if ( !m_pSteamInventory ) - { - return false; - } - - m_pSteamVideo = SteamClient()->GetISteamVideo( hSteamUser, hSteamPipe, STEAMVIDEO_INTERFACE_VERSION ); - if ( !m_pSteamVideo ) - { - return false; - } - -#ifdef _PS3 - m_pSteamPS3OverlayRender = SteamClient()->GetISteamPS3OverlayRender(); +#if defined( VERSION_SAFE_STEAM_API_INTERFACES ) +// exists only for backwards compat with code written against older SDKs +S_API bool S_CALLTYPE SteamAPI_InitSafe(); #endif - return true; -} - -#endif // VERSION_SAFE_STEAM_API_INTERFACES - -#if defined(USE_BREAKPAD_HANDLER) || defined(STEAM_API_EXPORTS) -// this should be called before the game initialized the steam APIs -// pchDate should be of the format "Mmm dd yyyy" (such as from the __DATE__ macro ) -// pchTime should be of the format "hh:mm:ss" (such as from the __TIME__ macro ) -// bFullMemoryDumps (Win32 only) -- writes out a uuid-full.dmp in the client/dumps folder -// pvContext-- can be NULL, will be the void * context passed into m_pfnPreMinidumpCallback -// PFNPreMinidumpCallback m_pfnPreMinidumpCallback -- optional callback which occurs just before a .dmp file is written during a crash. Applications can hook this to allow adding additional information into the .dmp comment stream. -S_API void S_CALLTYPE SteamAPI_UseBreakpadCrashHandler( char const *pchVersion, char const *pchDate, char const *pchTime, bool bFullMemoryDumps, void *pvContext, PFNPreMinidumpCallback m_pfnPreMinidumpCallback ); -S_API void S_CALLTYPE SteamAPI_SetBreakpadAppID( uint32 unAppID ); -#endif +#include "steam_api_internal.h" #endif // STEAM_API_H diff --git a/public/steam/steam_api.json b/public/steam/steam_api.json deleted file mode 100644 index 4d94b6b5..00000000 --- a/public/steam/steam_api.json +++ /dev/null @@ -1,7241 +0,0 @@ -{"typedefs":[{"typedef": "uint8","type": "unsigned char"} -,{"typedef": "uint8","type": "unsigned char"} -,{"typedef": "int8","type": "signed char"} -,{"typedef": "int16","type": "short"} -,{"typedef": "uint16","type": "unsigned short"} -,{"typedef": "int32","type": "int"} -,{"typedef": "uint32","type": "unsigned int"} -,{"typedef": "int64","type": "long long"} -,{"typedef": "uint64","type": "unsigned long long"} -,{"typedef": "lint64","type": "int64"} -,{"typedef": "ulint64","type": "uint64"} -,{"typedef": "intp","type": "long long"} -,{"typedef": "uintp","type": "unsigned long long"} -,{"typedef": "Salt_t","type": "uint8 [8]"} -,{"typedef": "GID_t","type": "uint64"} -,{"typedef": "JobID_t","type": "uint64"} -,{"typedef": "TxnID_t","type": "GID_t"} -,{"typedef": "PackageId_t","type": "uint32"} -,{"typedef": "BundleId_t","type": "uint32"} -,{"typedef": "AppId_t","type": "uint32"} -,{"typedef": "AssetClassId_t","type": "uint64"} -,{"typedef": "PhysicalItemId_t","type": "uint32"} -,{"typedef": "DepotId_t","type": "uint32"} -,{"typedef": "RTime32","type": "uint32"} -,{"typedef": "CellID_t","type": "uint32"} -,{"typedef": "SteamAPICall_t","type": "uint64"} -,{"typedef": "AccountID_t","type": "uint32"} -,{"typedef": "PartnerId_t","type": "uint32"} -,{"typedef": "ManifestId_t","type": "uint64"} -,{"typedef": "HAuthTicket","type": "uint32"} -,{"typedef": "PFNLegacyKeyRegistration","type": "void (*)(const char *, const char *)"} -,{"typedef": "PFNLegacyKeyInstalled","type": "_Bool (*)(void)"} -,{"typedef": "PFNPreMinidumpCallback","type": "void (*)(void *)"} -,{"typedef": "BREAKPAD_HANDLE","type": "void *"} -,{"typedef": "ValvePackingSentinel_t","type": "struct ValvePackingSentinel_t"} -,{"typedef": "compile_time_assert_type","type": "char [1]"} -,{"typedef": "HSteamPipe","type": "int32"} -,{"typedef": "HSteamUser","type": "int32"} -,{"typedef": "SteamAPIWarningMessageHook_t","type": "void (*)(int, const char *) __attribute__((cdecl))"} -,{"typedef": "SteamAPI_PostAPIResultInProcess_t","type": "void (*)(SteamAPICall_t, void *, uint32, int)"} -,{"typedef": "SteamAPI_CheckCallbackRegistered_t","type": "uint32 (*)(int)"} -,{"typedef": "HSteamCall","type": "int32"} -,{"typedef": "FriendsGroupID_t","type": "int16"} -,{"typedef": "SteamAPIWarningMessageHook_t","type": "void (*)(int, const char *) __attribute__((cdecl))"} -,{"typedef": "HServerListRequest","type": "void *"} -,{"typedef": "HServerQuery","type": "int"} -,{"typedef": "UGCHandle_t","type": "uint64"} -,{"typedef": "PublishedFileUpdateHandle_t","type": "uint64"} -,{"typedef": "PublishedFileId_t","type": "uint64"} -,{"typedef": "UGCFileWriteStreamHandle_t","type": "uint64"} -,{"typedef": "compile_time_assert_type","type": "char [1]"} -,{"typedef": "SteamLeaderboard_t","type": "uint64"} -,{"typedef": "SteamLeaderboardEntries_t","type": "uint64"} -,{"typedef": "SNetSocket_t","type": "uint32"} -,{"typedef": "SNetListenSocket_t","type": "uint32"} -,{"typedef": "ScreenshotHandle","type": "uint32"} -,{"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"} -,{"typedef": "ControllerAnalogActionHandle_t","type": "uint64"} -,{"typedef": "UGCQueryHandle_t","type": "uint64"} -,{"typedef": "UGCUpdateHandle_t","type": "uint64"} -,{"typedef": "HHTMLBrowser","type": "uint32"} -,{"typedef": "SteamItemInstanceID_t","type": "uint64"} -,{"typedef": "SteamItemDef_t","type": "int32"} -,{"typedef": "SteamInventoryResult_t","type": "int32"} -,{"typedef": "CCallResult::func_t","type": "void (T::*)(P *, _Bool)"} -,{"typedef": "CCallback::func_t","type": "void (T::*)(P *)"} -], -"enums":[ - {"enumname": "EUniverse","values": [ - {"name": "k_EUniverseInvalid","value": "0"} - ,{"name": "k_EUniversePublic","value": "1"} - ,{"name": "k_EUniverseBeta","value": "2"} - ,{"name": "k_EUniverseInternal","value": "3"} - ,{"name": "k_EUniverseDev","value": "4"} - ,{"name": "k_EUniverseMax","value": "5"} -]} -, {"enumname": "EResult","values": [ - {"name": "k_EResultOK","value": "1"} - ,{"name": "k_EResultFail","value": "2"} - ,{"name": "k_EResultNoConnection","value": "3"} - ,{"name": "k_EResultInvalidPassword","value": "5"} - ,{"name": "k_EResultLoggedInElsewhere","value": "6"} - ,{"name": "k_EResultInvalidProtocolVer","value": "7"} - ,{"name": "k_EResultInvalidParam","value": "8"} - ,{"name": "k_EResultFileNotFound","value": "9"} - ,{"name": "k_EResultBusy","value": "10"} - ,{"name": "k_EResultInvalidState","value": "11"} - ,{"name": "k_EResultInvalidName","value": "12"} - ,{"name": "k_EResultInvalidEmail","value": "13"} - ,{"name": "k_EResultDuplicateName","value": "14"} - ,{"name": "k_EResultAccessDenied","value": "15"} - ,{"name": "k_EResultTimeout","value": "16"} - ,{"name": "k_EResultBanned","value": "17"} - ,{"name": "k_EResultAccountNotFound","value": "18"} - ,{"name": "k_EResultInvalidSteamID","value": "19"} - ,{"name": "k_EResultServiceUnavailable","value": "20"} - ,{"name": "k_EResultNotLoggedOn","value": "21"} - ,{"name": "k_EResultPending","value": "22"} - ,{"name": "k_EResultEncryptionFailure","value": "23"} - ,{"name": "k_EResultInsufficientPrivilege","value": "24"} - ,{"name": "k_EResultLimitExceeded","value": "25"} - ,{"name": "k_EResultRevoked","value": "26"} - ,{"name": "k_EResultExpired","value": "27"} - ,{"name": "k_EResultAlreadyRedeemed","value": "28"} - ,{"name": "k_EResultDuplicateRequest","value": "29"} - ,{"name": "k_EResultAlreadyOwned","value": "30"} - ,{"name": "k_EResultIPNotFound","value": "31"} - ,{"name": "k_EResultPersistFailed","value": "32"} - ,{"name": "k_EResultLockingFailed","value": "33"} - ,{"name": "k_EResultLogonSessionReplaced","value": "34"} - ,{"name": "k_EResultConnectFailed","value": "35"} - ,{"name": "k_EResultHandshakeFailed","value": "36"} - ,{"name": "k_EResultIOFailure","value": "37"} - ,{"name": "k_EResultRemoteDisconnect","value": "38"} - ,{"name": "k_EResultShoppingCartNotFound","value": "39"} - ,{"name": "k_EResultBlocked","value": "40"} - ,{"name": "k_EResultIgnored","value": "41"} - ,{"name": "k_EResultNoMatch","value": "42"} - ,{"name": "k_EResultAccountDisabled","value": "43"} - ,{"name": "k_EResultServiceReadOnly","value": "44"} - ,{"name": "k_EResultAccountNotFeatured","value": "45"} - ,{"name": "k_EResultAdministratorOK","value": "46"} - ,{"name": "k_EResultContentVersion","value": "47"} - ,{"name": "k_EResultTryAnotherCM","value": "48"} - ,{"name": "k_EResultPasswordRequiredToKickSession","value": "49"} - ,{"name": "k_EResultAlreadyLoggedInElsewhere","value": "50"} - ,{"name": "k_EResultSuspended","value": "51"} - ,{"name": "k_EResultCancelled","value": "52"} - ,{"name": "k_EResultDataCorruption","value": "53"} - ,{"name": "k_EResultDiskFull","value": "54"} - ,{"name": "k_EResultRemoteCallFailed","value": "55"} - ,{"name": "k_EResultPasswordUnset","value": "56"} - ,{"name": "k_EResultExternalAccountUnlinked","value": "57"} - ,{"name": "k_EResultPSNTicketInvalid","value": "58"} - ,{"name": "k_EResultExternalAccountAlreadyLinked","value": "59"} - ,{"name": "k_EResultRemoteFileConflict","value": "60"} - ,{"name": "k_EResultIllegalPassword","value": "61"} - ,{"name": "k_EResultSameAsPreviousValue","value": "62"} - ,{"name": "k_EResultAccountLogonDenied","value": "63"} - ,{"name": "k_EResultCannotUseOldPassword","value": "64"} - ,{"name": "k_EResultInvalidLoginAuthCode","value": "65"} - ,{"name": "k_EResultAccountLogonDeniedNoMail","value": "66"} - ,{"name": "k_EResultHardwareNotCapableOfIPT","value": "67"} - ,{"name": "k_EResultIPTInitError","value": "68"} - ,{"name": "k_EResultParentalControlRestricted","value": "69"} - ,{"name": "k_EResultFacebookQueryError","value": "70"} - ,{"name": "k_EResultExpiredLoginAuthCode","value": "71"} - ,{"name": "k_EResultIPLoginRestrictionFailed","value": "72"} - ,{"name": "k_EResultAccountLockedDown","value": "73"} - ,{"name": "k_EResultAccountLogonDeniedVerifiedEmailRequired","value": "74"} - ,{"name": "k_EResultNoMatchingURL","value": "75"} - ,{"name": "k_EResultBadResponse","value": "76"} - ,{"name": "k_EResultRequirePasswordReEntry","value": "77"} - ,{"name": "k_EResultValueOutOfRange","value": "78"} - ,{"name": "k_EResultUnexpectedError","value": "79"} - ,{"name": "k_EResultDisabled","value": "80"} - ,{"name": "k_EResultInvalidCEGSubmission","value": "81"} - ,{"name": "k_EResultRestrictedDevice","value": "82"} - ,{"name": "k_EResultRegionLocked","value": "83"} - ,{"name": "k_EResultRateLimitExceeded","value": "84"} - ,{"name": "k_EResultAccountLoginDeniedNeedTwoFactor","value": "85"} - ,{"name": "k_EResultItemDeleted","value": "86"} - ,{"name": "k_EResultAccountLoginDeniedThrottle","value": "87"} - ,{"name": "k_EResultTwoFactorCodeMismatch","value": "88"} - ,{"name": "k_EResultTwoFactorActivationCodeMismatch","value": "89"} - ,{"name": "k_EResultAccountAssociatedToMultiplePartners","value": "90"} - ,{"name": "k_EResultNotModified","value": "91"} - ,{"name": "k_EResultNoMobileDevice","value": "92"} - ,{"name": "k_EResultTimeNotSynced","value": "93"} - ,{"name": "k_EResultSmsCodeFailed","value": "94"} - ,{"name": "k_EResultAccountLimitExceeded","value": "95"} - ,{"name": "k_EResultAccountActivityLimitExceeded","value": "96"} - ,{"name": "k_EResultPhoneActivityLimitExceeded","value": "97"} - ,{"name": "k_EResultRefundToWallet","value": "98"} - ,{"name": "k_EResultEmailSendFailure","value": "99"} - ,{"name": "k_EResultNotSettled","value": "100"} - ,{"name": "k_EResultNeedCaptcha","value": "101"} -]} -, {"enumname": "EVoiceResult","values": [ - {"name": "k_EVoiceResultOK","value": "0"} - ,{"name": "k_EVoiceResultNotInitialized","value": "1"} - ,{"name": "k_EVoiceResultNotRecording","value": "2"} - ,{"name": "k_EVoiceResultNoData","value": "3"} - ,{"name": "k_EVoiceResultBufferTooSmall","value": "4"} - ,{"name": "k_EVoiceResultDataCorrupted","value": "5"} - ,{"name": "k_EVoiceResultRestricted","value": "6"} - ,{"name": "k_EVoiceResultUnsupportedCodec","value": "7"} - ,{"name": "k_EVoiceResultReceiverOutOfDate","value": "8"} - ,{"name": "k_EVoiceResultReceiverDidNotAnswer","value": "9"} -]} -, {"enumname": "EDenyReason","values": [ - {"name": "k_EDenyInvalid","value": "0"} - ,{"name": "k_EDenyInvalidVersion","value": "1"} - ,{"name": "k_EDenyGeneric","value": "2"} - ,{"name": "k_EDenyNotLoggedOn","value": "3"} - ,{"name": "k_EDenyNoLicense","value": "4"} - ,{"name": "k_EDenyCheater","value": "5"} - ,{"name": "k_EDenyLoggedInElseWhere","value": "6"} - ,{"name": "k_EDenyUnknownText","value": "7"} - ,{"name": "k_EDenyIncompatibleAnticheat","value": "8"} - ,{"name": "k_EDenyMemoryCorruption","value": "9"} - ,{"name": "k_EDenyIncompatibleSoftware","value": "10"} - ,{"name": "k_EDenySteamConnectionLost","value": "11"} - ,{"name": "k_EDenySteamConnectionError","value": "12"} - ,{"name": "k_EDenySteamResponseTimedOut","value": "13"} - ,{"name": "k_EDenySteamValidationStalled","value": "14"} - ,{"name": "k_EDenySteamOwnerLeftGuestUser","value": "15"} -]} -, {"enumname": "EBeginAuthSessionResult","values": [ - {"name": "k_EBeginAuthSessionResultOK","value": "0"} - ,{"name": "k_EBeginAuthSessionResultInvalidTicket","value": "1"} - ,{"name": "k_EBeginAuthSessionResultDuplicateRequest","value": "2"} - ,{"name": "k_EBeginAuthSessionResultInvalidVersion","value": "3"} - ,{"name": "k_EBeginAuthSessionResultGameMismatch","value": "4"} - ,{"name": "k_EBeginAuthSessionResultExpiredTicket","value": "5"} -]} -, {"enumname": "EAuthSessionResponse","values": [ - {"name": "k_EAuthSessionResponseOK","value": "0"} - ,{"name": "k_EAuthSessionResponseUserNotConnectedToSteam","value": "1"} - ,{"name": "k_EAuthSessionResponseNoLicenseOrExpired","value": "2"} - ,{"name": "k_EAuthSessionResponseVACBanned","value": "3"} - ,{"name": "k_EAuthSessionResponseLoggedInElseWhere","value": "4"} - ,{"name": "k_EAuthSessionResponseVACCheckTimedOut","value": "5"} - ,{"name": "k_EAuthSessionResponseAuthTicketCanceled","value": "6"} - ,{"name": "k_EAuthSessionResponseAuthTicketInvalidAlreadyUsed","value": "7"} - ,{"name": "k_EAuthSessionResponseAuthTicketInvalid","value": "8"} - ,{"name": "k_EAuthSessionResponsePublisherIssuedBan","value": "9"} -]} -, {"enumname": "EUserHasLicenseForAppResult","values": [ - {"name": "k_EUserHasLicenseResultHasLicense","value": "0"} - ,{"name": "k_EUserHasLicenseResultDoesNotHaveLicense","value": "1"} - ,{"name": "k_EUserHasLicenseResultNoAuth","value": "2"} -]} -, {"enumname": "EAccountType","values": [ - {"name": "k_EAccountTypeInvalid","value": "0"} - ,{"name": "k_EAccountTypeIndividual","value": "1"} - ,{"name": "k_EAccountTypeMultiseat","value": "2"} - ,{"name": "k_EAccountTypeGameServer","value": "3"} - ,{"name": "k_EAccountTypeAnonGameServer","value": "4"} - ,{"name": "k_EAccountTypePending","value": "5"} - ,{"name": "k_EAccountTypeContentServer","value": "6"} - ,{"name": "k_EAccountTypeClan","value": "7"} - ,{"name": "k_EAccountTypeChat","value": "8"} - ,{"name": "k_EAccountTypeConsoleUser","value": "9"} - ,{"name": "k_EAccountTypeAnonUser","value": "10"} - ,{"name": "k_EAccountTypeMax","value": "11"} -]} -, {"enumname": "EAppReleaseState","values": [ - {"name": "k_EAppReleaseState_Unknown","value": "0"} - ,{"name": "k_EAppReleaseState_Unavailable","value": "1"} - ,{"name": "k_EAppReleaseState_Prerelease","value": "2"} - ,{"name": "k_EAppReleaseState_PreloadOnly","value": "3"} - ,{"name": "k_EAppReleaseState_Released","value": "4"} -]} -, {"enumname": "EAppOwnershipFlags","values": [ - {"name": "k_EAppOwnershipFlags_None","value": "0"} - ,{"name": "k_EAppOwnershipFlags_OwnsLicense","value": "1"} - ,{"name": "k_EAppOwnershipFlags_FreeLicense","value": "2"} - ,{"name": "k_EAppOwnershipFlags_RegionRestricted","value": "4"} - ,{"name": "k_EAppOwnershipFlags_LowViolence","value": "8"} - ,{"name": "k_EAppOwnershipFlags_InvalidPlatform","value": "16"} - ,{"name": "k_EAppOwnershipFlags_SharedLicense","value": "32"} - ,{"name": "k_EAppOwnershipFlags_FreeWeekend","value": "64"} - ,{"name": "k_EAppOwnershipFlags_RetailLicense","value": "128"} - ,{"name": "k_EAppOwnershipFlags_LicenseLocked","value": "256"} - ,{"name": "k_EAppOwnershipFlags_LicensePending","value": "512"} - ,{"name": "k_EAppOwnershipFlags_LicenseExpired","value": "1024"} - ,{"name": "k_EAppOwnershipFlags_LicensePermanent","value": "2048"} - ,{"name": "k_EAppOwnershipFlags_LicenseRecurring","value": "4096"} - ,{"name": "k_EAppOwnershipFlags_LicenseCanceled","value": "8192"} - ,{"name": "k_EAppOwnershipFlags_AutoGrant","value": "16384"} - ,{"name": "k_EAppOwnershipFlags_PendingGift","value": "32768"} -]} -, {"enumname": "EAppType","values": [ - {"name": "k_EAppType_Invalid","value": "0"} - ,{"name": "k_EAppType_Game","value": "1"} - ,{"name": "k_EAppType_Application","value": "2"} - ,{"name": "k_EAppType_Tool","value": "4"} - ,{"name": "k_EAppType_Demo","value": "8"} - ,{"name": "k_EAppType_Media_DEPRECATED","value": "16"} - ,{"name": "k_EAppType_DLC","value": "32"} - ,{"name": "k_EAppType_Guide","value": "64"} - ,{"name": "k_EAppType_Driver","value": "128"} - ,{"name": "k_EAppType_Config","value": "256"} - ,{"name": "k_EAppType_Hardware","value": "512"} - ,{"name": "k_EAppType_Video","value": "2048"} - ,{"name": "k_EAppType_Plugin","value": "4096"} - ,{"name": "k_EAppType_Music","value": "8192"} - ,{"name": "k_EAppType_Shortcut","value": "1073741824"} - ,{"name": "k_EAppType_DepotOnly","value": "-2147483648"} -]} -, {"enumname": "ESteamUserStatType","values": [ - {"name": "k_ESteamUserStatTypeINVALID","value": "0"} - ,{"name": "k_ESteamUserStatTypeINT","value": "1"} - ,{"name": "k_ESteamUserStatTypeFLOAT","value": "2"} - ,{"name": "k_ESteamUserStatTypeAVGRATE","value": "3"} - ,{"name": "k_ESteamUserStatTypeACHIEVEMENTS","value": "4"} - ,{"name": "k_ESteamUserStatTypeGROUPACHIEVEMENTS","value": "5"} - ,{"name": "k_ESteamUserStatTypeMAX","value": "6"} -]} -, {"enumname": "EChatEntryType","values": [ - {"name": "k_EChatEntryTypeInvalid","value": "0"} - ,{"name": "k_EChatEntryTypeChatMsg","value": "1"} - ,{"name": "k_EChatEntryTypeTyping","value": "2"} - ,{"name": "k_EChatEntryTypeInviteGame","value": "3"} - ,{"name": "k_EChatEntryTypeEmote","value": "4"} - ,{"name": "k_EChatEntryTypeLeftConversation","value": "6"} - ,{"name": "k_EChatEntryTypeEntered","value": "7"} - ,{"name": "k_EChatEntryTypeWasKicked","value": "8"} - ,{"name": "k_EChatEntryTypeWasBanned","value": "9"} - ,{"name": "k_EChatEntryTypeDisconnected","value": "10"} - ,{"name": "k_EChatEntryTypeHistoricalChat","value": "11"} - ,{"name": "k_EChatEntryTypeReserved1","value": "12"} - ,{"name": "k_EChatEntryTypeReserved2","value": "13"} - ,{"name": "k_EChatEntryTypeLinkBlocked","value": "14"} -]} -, {"enumname": "EChatRoomEnterResponse","values": [ - {"name": "k_EChatRoomEnterResponseSuccess","value": "1"} - ,{"name": "k_EChatRoomEnterResponseDoesntExist","value": "2"} - ,{"name": "k_EChatRoomEnterResponseNotAllowed","value": "3"} - ,{"name": "k_EChatRoomEnterResponseFull","value": "4"} - ,{"name": "k_EChatRoomEnterResponseError","value": "5"} - ,{"name": "k_EChatRoomEnterResponseBanned","value": "6"} - ,{"name": "k_EChatRoomEnterResponseLimited","value": "7"} - ,{"name": "k_EChatRoomEnterResponseClanDisabled","value": "8"} - ,{"name": "k_EChatRoomEnterResponseCommunityBan","value": "9"} - ,{"name": "k_EChatRoomEnterResponseMemberBlockedYou","value": "10"} - ,{"name": "k_EChatRoomEnterResponseYouBlockedMember","value": "11"} -]} -, {"enumname": "EChatSteamIDInstanceFlags","values": [ - {"name": "k_EChatAccountInstanceMask","value": "4095"} - ,{"name": "k_EChatInstanceFlagClan","value": "524288"} - ,{"name": "k_EChatInstanceFlagLobby","value": "262144"} - ,{"name": "k_EChatInstanceFlagMMSLobby","value": "131072"} -]} -, {"enumname": "EMarketingMessageFlags","values": [ - {"name": "k_EMarketingMessageFlagsNone","value": "0"} - ,{"name": "k_EMarketingMessageFlagsHighPriority","value": "1"} - ,{"name": "k_EMarketingMessageFlagsPlatformWindows","value": "2"} - ,{"name": "k_EMarketingMessageFlagsPlatformMac","value": "4"} - ,{"name": "k_EMarketingMessageFlagsPlatformLinux","value": "8"} - ,{"name": "k_EMarketingMessageFlagsPlatformRestrictions","value": "14"} -]} -, {"enumname": "ENotificationPosition","values": [ - {"name": "k_EPositionTopLeft","value": "0"} - ,{"name": "k_EPositionTopRight","value": "1"} - ,{"name": "k_EPositionBottomLeft","value": "2"} - ,{"name": "k_EPositionBottomRight","value": "3"} -]} -, {"enumname": "EBroadcastUploadResult","values": [ - {"name": "k_EBroadcastUploadResultNone","value": "0"} - ,{"name": "k_EBroadcastUploadResultOK","value": "1"} - ,{"name": "k_EBroadcastUploadResultInitFailed","value": "2"} - ,{"name": "k_EBroadcastUploadResultFrameFailed","value": "3"} - ,{"name": "k_EBroadcastUploadResultTimeout","value": "4"} - ,{"name": "k_EBroadcastUploadResultBandwidthExceeded","value": "5"} - ,{"name": "k_EBroadcastUploadResultLowFPS","value": "6"} - ,{"name": "k_EBroadcastUploadResultMissingKeyFrames","value": "7"} - ,{"name": "k_EBroadcastUploadResultNoConnection","value": "8"} - ,{"name": "k_EBroadcastUploadResultRelayFailed","value": "9"} - ,{"name": "k_EBroadcastUploadResultSettingsChanged","value": "10"} - ,{"name": "k_EBroadcastUploadResultMissingAudio","value": "11"} - ,{"name": "k_EBroadcastUploadResultTooFarBehind","value": "12"} - ,{"name": "k_EBroadcastUploadResultTranscodeBehind","value": "13"} -]} -, {"enumname": "ELaunchOptionType","values": [ - {"name": "k_ELaunchOptionType_None","value": "0"} - ,{"name": "k_ELaunchOptionType_Default","value": "1"} - ,{"name": "k_ELaunchOptionType_SafeMode","value": "2"} - ,{"name": "k_ELaunchOptionType_Multiplayer","value": "3"} - ,{"name": "k_ELaunchOptionType_Config","value": "4"} - ,{"name": "k_ELaunchOptionType_VR","value": "5"} - ,{"name": "k_ELaunchOptionType_Server","value": "6"} - ,{"name": "k_ELaunchOptionType_Editor","value": "7"} - ,{"name": "k_ELaunchOptionType_Manual","value": "8"} - ,{"name": "k_ELaunchOptionType_Benchmark","value": "9"} - ,{"name": "k_ELaunchOptionType_Option1","value": "10"} - ,{"name": "k_ELaunchOptionType_Option2","value": "11"} - ,{"name": "k_ELaunchOptionType_Option3","value": "12"} - ,{"name": "k_ELaunchOptionType_Dialog","value": "1000"} -]} -, {"enumname": "CGameID::EGameIDType","values": [ - {"name": "k_EGameIDTypeApp","value": "0"} - ,{"name": "k_EGameIDTypeGameMod","value": "1"} - ,{"name": "k_EGameIDTypeShortcut","value": "2"} - ,{"name": "k_EGameIDTypeP2P","value": "3"} -]} -, {"enumname": "IPCFailure_t::EFailureType","values": [ - {"name": "k_EFailureFlushedCallbackQueue","value": "0"} - ,{"name": "k_EFailurePipeFail","value": "1"} -]} -, {"enumname": "EFriendRelationship","values": [ - {"name": "k_EFriendRelationshipNone","value": "0"} - ,{"name": "k_EFriendRelationshipBlocked","value": "1"} - ,{"name": "k_EFriendRelationshipRequestRecipient","value": "2"} - ,{"name": "k_EFriendRelationshipFriend","value": "3"} - ,{"name": "k_EFriendRelationshipRequestInitiator","value": "4"} - ,{"name": "k_EFriendRelationshipIgnored","value": "5"} - ,{"name": "k_EFriendRelationshipIgnoredFriend","value": "6"} - ,{"name": "k_EFriendRelationshipSuggested","value": "7"} - ,{"name": "k_EFriendRelationshipMax","value": "8"} -]} -, {"enumname": "EPersonaState","values": [ - {"name": "k_EPersonaStateOffline","value": "0"} - ,{"name": "k_EPersonaStateOnline","value": "1"} - ,{"name": "k_EPersonaStateBusy","value": "2"} - ,{"name": "k_EPersonaStateAway","value": "3"} - ,{"name": "k_EPersonaStateSnooze","value": "4"} - ,{"name": "k_EPersonaStateLookingToTrade","value": "5"} - ,{"name": "k_EPersonaStateLookingToPlay","value": "6"} - ,{"name": "k_EPersonaStateMax","value": "7"} -]} -, {"enumname": "EFriendFlags","values": [ - {"name": "k_EFriendFlagNone","value": "0"} - ,{"name": "k_EFriendFlagBlocked","value": "1"} - ,{"name": "k_EFriendFlagFriendshipRequested","value": "2"} - ,{"name": "k_EFriendFlagImmediate","value": "4"} - ,{"name": "k_EFriendFlagClanMember","value": "8"} - ,{"name": "k_EFriendFlagOnGameServer","value": "16"} - ,{"name": "k_EFriendFlagRequestingFriendship","value": "128"} - ,{"name": "k_EFriendFlagRequestingInfo","value": "256"} - ,{"name": "k_EFriendFlagIgnored","value": "512"} - ,{"name": "k_EFriendFlagIgnoredFriend","value": "1024"} - ,{"name": "k_EFriendFlagSuggested","value": "2048"} - ,{"name": "k_EFriendFlagAll","value": "65535"} -]} -, {"enumname": "EUserRestriction","values": [ - {"name": "k_nUserRestrictionNone","value": "0"} - ,{"name": "k_nUserRestrictionUnknown","value": "1"} - ,{"name": "k_nUserRestrictionAnyChat","value": "2"} - ,{"name": "k_nUserRestrictionVoiceChat","value": "4"} - ,{"name": "k_nUserRestrictionGroupChat","value": "8"} - ,{"name": "k_nUserRestrictionRating","value": "16"} - ,{"name": "k_nUserRestrictionGameInvites","value": "32"} - ,{"name": "k_nUserRestrictionTrading","value": "64"} -]} -, {"enumname": "EOverlayToStoreFlag","values": [ - {"name": "k_EOverlayToStoreFlag_None","value": "0"} - ,{"name": "k_EOverlayToStoreFlag_AddToCart","value": "1"} - ,{"name": "k_EOverlayToStoreFlag_AddToCartAndShow","value": "2"} -]} -, {"enumname": "EPersonaChange","values": [ - {"name": "k_EPersonaChangeName","value": "1"} - ,{"name": "k_EPersonaChangeStatus","value": "2"} - ,{"name": "k_EPersonaChangeComeOnline","value": "4"} - ,{"name": "k_EPersonaChangeGoneOffline","value": "8"} - ,{"name": "k_EPersonaChangeGamePlayed","value": "16"} - ,{"name": "k_EPersonaChangeGameServer","value": "32"} - ,{"name": "k_EPersonaChangeAvatar","value": "64"} - ,{"name": "k_EPersonaChangeJoinedSource","value": "128"} - ,{"name": "k_EPersonaChangeLeftSource","value": "256"} - ,{"name": "k_EPersonaChangeRelationshipChanged","value": "512"} - ,{"name": "k_EPersonaChangeNameFirstSet","value": "1024"} - ,{"name": "k_EPersonaChangeFacebookInfo","value": "2048"} - ,{"name": "k_EPersonaChangeNickname","value": "4096"} - ,{"name": "k_EPersonaChangeSteamLevel","value": "8192"} -]} -, {"enumname": "ESteamAPICallFailure","values": [ - {"name": "k_ESteamAPICallFailureNone","value": "-1"} - ,{"name": "k_ESteamAPICallFailureSteamGone","value": "0"} - ,{"name": "k_ESteamAPICallFailureNetworkFailure","value": "1"} - ,{"name": "k_ESteamAPICallFailureInvalidHandle","value": "2"} - ,{"name": "k_ESteamAPICallFailureMismatchedCallback","value": "3"} -]} -, {"enumname": "EGamepadTextInputMode","values": [ - {"name": "k_EGamepadTextInputModeNormal","value": "0"} - ,{"name": "k_EGamepadTextInputModePassword","value": "1"} -]} -, {"enumname": "EGamepadTextInputLineMode","values": [ - {"name": "k_EGamepadTextInputLineModeSingleLine","value": "0"} - ,{"name": "k_EGamepadTextInputLineModeMultipleLines","value": "1"} -]} -, {"enumname": "ECheckFileSignature","values": [ - {"name": "k_ECheckFileSignatureInvalidSignature","value": "0"} - ,{"name": "k_ECheckFileSignatureValidSignature","value": "1"} - ,{"name": "k_ECheckFileSignatureFileNotFound","value": "2"} - ,{"name": "k_ECheckFileSignatureNoSignaturesFoundForThisApp","value": "3"} - ,{"name": "k_ECheckFileSignatureNoSignaturesFoundForThisFile","value": "4"} -]} -, {"enumname": "EMatchMakingServerResponse","values": [ - {"name": "eServerResponded","value": "0"} - ,{"name": "eServerFailedToRespond","value": "1"} - ,{"name": "eNoServersListedOnMasterServer","value": "2"} -]} -, {"enumname": "ELobbyType","values": [ - {"name": "k_ELobbyTypePrivate","value": "0"} - ,{"name": "k_ELobbyTypeFriendsOnly","value": "1"} - ,{"name": "k_ELobbyTypePublic","value": "2"} - ,{"name": "k_ELobbyTypeInvisible","value": "3"} -]} -, {"enumname": "ELobbyComparison","values": [ - {"name": "k_ELobbyComparisonEqualToOrLessThan","value": "-2"} - ,{"name": "k_ELobbyComparisonLessThan","value": "-1"} - ,{"name": "k_ELobbyComparisonEqual","value": "0"} - ,{"name": "k_ELobbyComparisonGreaterThan","value": "1"} - ,{"name": "k_ELobbyComparisonEqualToOrGreaterThan","value": "2"} - ,{"name": "k_ELobbyComparisonNotEqual","value": "3"} -]} -, {"enumname": "ELobbyDistanceFilter","values": [ - {"name": "k_ELobbyDistanceFilterClose","value": "0"} - ,{"name": "k_ELobbyDistanceFilterDefault","value": "1"} - ,{"name": "k_ELobbyDistanceFilterFar","value": "2"} - ,{"name": "k_ELobbyDistanceFilterWorldwide","value": "3"} -]} -, {"enumname": "EChatMemberStateChange","values": [ - {"name": "k_EChatMemberStateChangeEntered","value": "1"} - ,{"name": "k_EChatMemberStateChangeLeft","value": "2"} - ,{"name": "k_EChatMemberStateChangeDisconnected","value": "4"} - ,{"name": "k_EChatMemberStateChangeKicked","value": "8"} - ,{"name": "k_EChatMemberStateChangeBanned","value": "16"} -]} -, {"enumname": "EResolveConflict","values": [ - {"name": "k_EResolveConflictKeepClient","value": "1"} - ,{"name": "k_EResolveConflictKeepServer","value": "2"} -]} -, {"enumname": "ERemoteStoragePlatform","values": [ - {"name": "k_ERemoteStoragePlatformNone","value": "0"} - ,{"name": "k_ERemoteStoragePlatformWindows","value": "1"} - ,{"name": "k_ERemoteStoragePlatformOSX","value": "2"} - ,{"name": "k_ERemoteStoragePlatformPS3","value": "4"} - ,{"name": "k_ERemoteStoragePlatformLinux","value": "8"} - ,{"name": "k_ERemoteStoragePlatformReserved2","value": "16"} - ,{"name": "k_ERemoteStoragePlatformAll","value": "-1"} -]} -, {"enumname": "ERemoteStoragePublishedFileVisibility","values": [ - {"name": "k_ERemoteStoragePublishedFileVisibilityPublic","value": "0"} - ,{"name": "k_ERemoteStoragePublishedFileVisibilityFriendsOnly","value": "1"} - ,{"name": "k_ERemoteStoragePublishedFileVisibilityPrivate","value": "2"} -]} -, {"enumname": "EWorkshopFileType","values": [ - {"name": "k_EWorkshopFileTypeFirst","value": "0"} - ,{"name": "k_EWorkshopFileTypeCommunity","value": "0"} - ,{"name": "k_EWorkshopFileTypeMicrotransaction","value": "1"} - ,{"name": "k_EWorkshopFileTypeCollection","value": "2"} - ,{"name": "k_EWorkshopFileTypeArt","value": "3"} - ,{"name": "k_EWorkshopFileTypeVideo","value": "4"} - ,{"name": "k_EWorkshopFileTypeScreenshot","value": "5"} - ,{"name": "k_EWorkshopFileTypeGame","value": "6"} - ,{"name": "k_EWorkshopFileTypeSoftware","value": "7"} - ,{"name": "k_EWorkshopFileTypeConcept","value": "8"} - ,{"name": "k_EWorkshopFileTypeWebGuide","value": "9"} - ,{"name": "k_EWorkshopFileTypeIntegratedGuide","value": "10"} - ,{"name": "k_EWorkshopFileTypeMerch","value": "11"} - ,{"name": "k_EWorkshopFileTypeControllerBinding","value": "12"} - ,{"name": "k_EWorkshopFileTypeSteamworksAccessInvite","value": "13"} - ,{"name": "k_EWorkshopFileTypeSteamVideo","value": "14"} - ,{"name": "k_EWorkshopFileTypeGameManagedItem","value": "15"} - ,{"name": "k_EWorkshopFileTypeMax","value": "16"} -]} -, {"enumname": "EWorkshopVote","values": [ - {"name": "k_EWorkshopVoteUnvoted","value": "0"} - ,{"name": "k_EWorkshopVoteFor","value": "1"} - ,{"name": "k_EWorkshopVoteAgainst","value": "2"} - ,{"name": "k_EWorkshopVoteLater","value": "3"} -]} -, {"enumname": "EWorkshopFileAction","values": [ - {"name": "k_EWorkshopFileActionPlayed","value": "0"} - ,{"name": "k_EWorkshopFileActionCompleted","value": "1"} -]} -, {"enumname": "EWorkshopEnumerationType","values": [ - {"name": "k_EWorkshopEnumerationTypeRankedByVote","value": "0"} - ,{"name": "k_EWorkshopEnumerationTypeRecent","value": "1"} - ,{"name": "k_EWorkshopEnumerationTypeTrending","value": "2"} - ,{"name": "k_EWorkshopEnumerationTypeFavoritesOfFriends","value": "3"} - ,{"name": "k_EWorkshopEnumerationTypeVotedByFriends","value": "4"} - ,{"name": "k_EWorkshopEnumerationTypeContentByFriends","value": "5"} - ,{"name": "k_EWorkshopEnumerationTypeRecentFromFollowedUsers","value": "6"} -]} -, {"enumname": "EWorkshopVideoProvider","values": [ - {"name": "k_EWorkshopVideoProviderNone","value": "0"} - ,{"name": "k_EWorkshopVideoProviderYoutube","value": "1"} -]} -, {"enumname": "EUGCReadAction","values": [ - {"name": "k_EUGCRead_ContinueReadingUntilFinished","value": "0"} - ,{"name": "k_EUGCRead_ContinueReading","value": "1"} - ,{"name": "k_EUGCRead_Close","value": "2"} -]} -, {"enumname": "ELeaderboardDataRequest","values": [ - {"name": "k_ELeaderboardDataRequestGlobal","value": "0"} - ,{"name": "k_ELeaderboardDataRequestGlobalAroundUser","value": "1"} - ,{"name": "k_ELeaderboardDataRequestFriends","value": "2"} - ,{"name": "k_ELeaderboardDataRequestUsers","value": "3"} -]} -, {"enumname": "ELeaderboardSortMethod","values": [ - {"name": "k_ELeaderboardSortMethodNone","value": "0"} - ,{"name": "k_ELeaderboardSortMethodAscending","value": "1"} - ,{"name": "k_ELeaderboardSortMethodDescending","value": "2"} -]} -, {"enumname": "ELeaderboardDisplayType","values": [ - {"name": "k_ELeaderboardDisplayTypeNone","value": "0"} - ,{"name": "k_ELeaderboardDisplayTypeNumeric","value": "1"} - ,{"name": "k_ELeaderboardDisplayTypeTimeSeconds","value": "2"} - ,{"name": "k_ELeaderboardDisplayTypeTimeMilliSeconds","value": "3"} -]} -, {"enumname": "ELeaderboardUploadScoreMethod","values": [ - {"name": "k_ELeaderboardUploadScoreMethodNone","value": "0"} - ,{"name": "k_ELeaderboardUploadScoreMethodKeepBest","value": "1"} - ,{"name": "k_ELeaderboardUploadScoreMethodForceUpdate","value": "2"} -]} -, {"enumname": "ERegisterActivationCodeResult","values": [ - {"name": "k_ERegisterActivationCodeResultOK","value": "0"} - ,{"name": "k_ERegisterActivationCodeResultFail","value": "1"} - ,{"name": "k_ERegisterActivationCodeResultAlreadyRegistered","value": "2"} - ,{"name": "k_ERegisterActivationCodeResultTimeout","value": "3"} - ,{"name": "k_ERegisterActivationCodeAlreadyOwned","value": "4"} -]} -, {"enumname": "EP2PSessionError","values": [ - {"name": "k_EP2PSessionErrorNone","value": "0"} - ,{"name": "k_EP2PSessionErrorNotRunningApp","value": "1"} - ,{"name": "k_EP2PSessionErrorNoRightsToApp","value": "2"} - ,{"name": "k_EP2PSessionErrorDestinationNotLoggedIn","value": "3"} - ,{"name": "k_EP2PSessionErrorTimeout","value": "4"} - ,{"name": "k_EP2PSessionErrorMax","value": "5"} -]} -, {"enumname": "EP2PSend","values": [ - {"name": "k_EP2PSendUnreliable","value": "0"} - ,{"name": "k_EP2PSendUnreliableNoDelay","value": "1"} - ,{"name": "k_EP2PSendReliable","value": "2"} - ,{"name": "k_EP2PSendReliableWithBuffering","value": "3"} -]} -, {"enumname": "ESNetSocketState","values": [ - {"name": "k_ESNetSocketStateInvalid","value": "0"} - ,{"name": "k_ESNetSocketStateConnected","value": "1"} - ,{"name": "k_ESNetSocketStateInitiated","value": "10"} - ,{"name": "k_ESNetSocketStateLocalCandidatesFound","value": "11"} - ,{"name": "k_ESNetSocketStateReceivedRemoteCandidates","value": "12"} - ,{"name": "k_ESNetSocketStateChallengeHandshake","value": "15"} - ,{"name": "k_ESNetSocketStateDisconnecting","value": "21"} - ,{"name": "k_ESNetSocketStateLocalDisconnect","value": "22"} - ,{"name": "k_ESNetSocketStateTimeoutDuringConnect","value": "23"} - ,{"name": "k_ESNetSocketStateRemoteEndDisconnected","value": "24"} - ,{"name": "k_ESNetSocketStateConnectionBroken","value": "25"} -]} -, {"enumname": "ESNetSocketConnectionType","values": [ - {"name": "k_ESNetSocketConnectionTypeNotConnected","value": "0"} - ,{"name": "k_ESNetSocketConnectionTypeUDP","value": "1"} - ,{"name": "k_ESNetSocketConnectionTypeUDPRelay","value": "2"} -]} -, {"enumname": "AudioPlayback_Status","values": [ - {"name": "AudioPlayback_Undefined","value": "0"} - ,{"name": "AudioPlayback_Playing","value": "1"} - ,{"name": "AudioPlayback_Paused","value": "2"} - ,{"name": "AudioPlayback_Idle","value": "3"} -]} -, {"enumname": "EHTTPMethod","values": [ - {"name": "k_EHTTPMethodInvalid","value": "0"} - ,{"name": "k_EHTTPMethodGET","value": "1"} - ,{"name": "k_EHTTPMethodHEAD","value": "2"} - ,{"name": "k_EHTTPMethodPOST","value": "3"} - ,{"name": "k_EHTTPMethodPUT","value": "4"} - ,{"name": "k_EHTTPMethodDELETE","value": "5"} - ,{"name": "k_EHTTPMethodOPTIONS","value": "6"} -]} -, {"enumname": "EHTTPStatusCode","values": [ - {"name": "k_EHTTPStatusCodeInvalid","value": "0"} - ,{"name": "k_EHTTPStatusCode100Continue","value": "100"} - ,{"name": "k_EHTTPStatusCode101SwitchingProtocols","value": "101"} - ,{"name": "k_EHTTPStatusCode200OK","value": "200"} - ,{"name": "k_EHTTPStatusCode201Created","value": "201"} - ,{"name": "k_EHTTPStatusCode202Accepted","value": "202"} - ,{"name": "k_EHTTPStatusCode203NonAuthoritative","value": "203"} - ,{"name": "k_EHTTPStatusCode204NoContent","value": "204"} - ,{"name": "k_EHTTPStatusCode205ResetContent","value": "205"} - ,{"name": "k_EHTTPStatusCode206PartialContent","value": "206"} - ,{"name": "k_EHTTPStatusCode300MultipleChoices","value": "300"} - ,{"name": "k_EHTTPStatusCode301MovedPermanently","value": "301"} - ,{"name": "k_EHTTPStatusCode302Found","value": "302"} - ,{"name": "k_EHTTPStatusCode303SeeOther","value": "303"} - ,{"name": "k_EHTTPStatusCode304NotModified","value": "304"} - ,{"name": "k_EHTTPStatusCode305UseProxy","value": "305"} - ,{"name": "k_EHTTPStatusCode307TemporaryRedirect","value": "307"} - ,{"name": "k_EHTTPStatusCode400BadRequest","value": "400"} - ,{"name": "k_EHTTPStatusCode401Unauthorized","value": "401"} - ,{"name": "k_EHTTPStatusCode402PaymentRequired","value": "402"} - ,{"name": "k_EHTTPStatusCode403Forbidden","value": "403"} - ,{"name": "k_EHTTPStatusCode404NotFound","value": "404"} - ,{"name": "k_EHTTPStatusCode405MethodNotAllowed","value": "405"} - ,{"name": "k_EHTTPStatusCode406NotAcceptable","value": "406"} - ,{"name": "k_EHTTPStatusCode407ProxyAuthRequired","value": "407"} - ,{"name": "k_EHTTPStatusCode408RequestTimeout","value": "408"} - ,{"name": "k_EHTTPStatusCode409Conflict","value": "409"} - ,{"name": "k_EHTTPStatusCode410Gone","value": "410"} - ,{"name": "k_EHTTPStatusCode411LengthRequired","value": "411"} - ,{"name": "k_EHTTPStatusCode412PreconditionFailed","value": "412"} - ,{"name": "k_EHTTPStatusCode413RequestEntityTooLarge","value": "413"} - ,{"name": "k_EHTTPStatusCode414RequestURITooLong","value": "414"} - ,{"name": "k_EHTTPStatusCode415UnsupportedMediaType","value": "415"} - ,{"name": "k_EHTTPStatusCode416RequestedRangeNotSatisfiable","value": "416"} - ,{"name": "k_EHTTPStatusCode417ExpectationFailed","value": "417"} - ,{"name": "k_EHTTPStatusCode4xxUnknown","value": "418"} - ,{"name": "k_EHTTPStatusCode429TooManyRequests","value": "429"} - ,{"name": "k_EHTTPStatusCode500InternalServerError","value": "500"} - ,{"name": "k_EHTTPStatusCode501NotImplemented","value": "501"} - ,{"name": "k_EHTTPStatusCode502BadGateway","value": "502"} - ,{"name": "k_EHTTPStatusCode503ServiceUnavailable","value": "503"} - ,{"name": "k_EHTTPStatusCode504GatewayTimeout","value": "504"} - ,{"name": "k_EHTTPStatusCode505HTTPVersionNotSupported","value": "505"} - ,{"name": "k_EHTTPStatusCode5xxUnknown","value": "599"} -]} -, {"enumname": "ESteamControllerPad","values": [ - {"name": "k_ESteamControllerPad_Left","value": "0"} - ,{"name": "k_ESteamControllerPad_Right","value": "1"} -]} -, {"enumname": "EControllerSource","values": [ - {"name": "k_EControllerSource_None","value": "0"} - ,{"name": "k_EControllerSource_LeftTrackpad","value": "1"} - ,{"name": "k_EControllerSource_RightTrackpad","value": "2"} - ,{"name": "k_EControllerSource_Joystick","value": "3"} - ,{"name": "k_EControllerSource_ABXY","value": "4"} - ,{"name": "k_EControllerSource_Switch","value": "5"} - ,{"name": "k_EControllerSource_LeftTrigger","value": "6"} - ,{"name": "k_EControllerSource_RightTrigger","value": "7"} - ,{"name": "k_EControllerSource_Gyro","value": "8"} -]} -, {"enumname": "EControllerSourceMode","values": [ - {"name": "k_EControllerSourceMode_None","value": "0"} - ,{"name": "k_EControllerSourceMode_Dpad","value": "1"} - ,{"name": "k_EControllerSourceMode_Buttons","value": "2"} - ,{"name": "k_EControllerSourceMode_FourButtons","value": "3"} - ,{"name": "k_EControllerSourceMode_AbsoluteMouse","value": "4"} - ,{"name": "k_EControllerSourceMode_RelativeMouse","value": "5"} - ,{"name": "k_EControllerSourceMode_JoystickMove","value": "6"} - ,{"name": "k_EControllerSourceMode_JoystickCamera","value": "7"} - ,{"name": "k_EControllerSourceMode_ScrollWheel","value": "8"} - ,{"name": "k_EControllerSourceMode_Trigger","value": "9"} - ,{"name": "k_EControllerSourceMode_TouchMenu","value": "10"} -]} -, {"enumname": "EControllerActionOrigin","values": [ - {"name": "k_EControllerActionOrigin_None","value": "0"} - ,{"name": "k_EControllerActionOrigin_A","value": "1"} - ,{"name": "k_EControllerActionOrigin_B","value": "2"} - ,{"name": "k_EControllerActionOrigin_X","value": "3"} - ,{"name": "k_EControllerActionOrigin_Y","value": "4"} - ,{"name": "k_EControllerActionOrigin_LeftBumper","value": "5"} - ,{"name": "k_EControllerActionOrigin_RightBumper","value": "6"} - ,{"name": "k_EControllerActionOrigin_LeftGrip","value": "7"} - ,{"name": "k_EControllerActionOrigin_RightGrip","value": "8"} - ,{"name": "k_EControllerActionOrigin_Start","value": "9"} - ,{"name": "k_EControllerActionOrigin_Back","value": "10"} - ,{"name": "k_EControllerActionOrigin_LeftPad_Touch","value": "11"} - ,{"name": "k_EControllerActionOrigin_LeftPad_Swipe","value": "12"} - ,{"name": "k_EControllerActionOrigin_LeftPad_Click","value": "13"} - ,{"name": "k_EControllerActionOrigin_LeftPad_DPadNorth","value": "14"} - ,{"name": "k_EControllerActionOrigin_LeftPad_DPadSouth","value": "15"} - ,{"name": "k_EControllerActionOrigin_LeftPad_DPadWest","value": "16"} - ,{"name": "k_EControllerActionOrigin_LeftPad_DPadEast","value": "17"} - ,{"name": "k_EControllerActionOrigin_RightPad_Touch","value": "18"} - ,{"name": "k_EControllerActionOrigin_RightPad_Swipe","value": "19"} - ,{"name": "k_EControllerActionOrigin_RightPad_Click","value": "20"} - ,{"name": "k_EControllerActionOrigin_RightPad_DPadNorth","value": "21"} - ,{"name": "k_EControllerActionOrigin_RightPad_DPadSouth","value": "22"} - ,{"name": "k_EControllerActionOrigin_RightPad_DPadWest","value": "23"} - ,{"name": "k_EControllerActionOrigin_RightPad_DPadEast","value": "24"} - ,{"name": "k_EControllerActionOrigin_LeftTrigger_Pull","value": "25"} - ,{"name": "k_EControllerActionOrigin_LeftTrigger_Click","value": "26"} - ,{"name": "k_EControllerActionOrigin_RightTrigger_Pull","value": "27"} - ,{"name": "k_EControllerActionOrigin_RightTrigger_Click","value": "28"} - ,{"name": "k_EControllerActionOrigin_LeftStick_Move","value": "29"} - ,{"name": "k_EControllerActionOrigin_LeftStick_Click","value": "30"} - ,{"name": "k_EControllerActionOrigin_LeftStick_DPadNorth","value": "31"} - ,{"name": "k_EControllerActionOrigin_LeftStick_DPadSouth","value": "32"} - ,{"name": "k_EControllerActionOrigin_LeftStick_DPadWest","value": "33"} - ,{"name": "k_EControllerActionOrigin_LeftStick_DPadEast","value": "34"} - ,{"name": "k_EControllerActionOrigin_Gyro_Move","value": "35"} - ,{"name": "k_EControllerActionOrigin_Gyro_Pitch","value": "36"} - ,{"name": "k_EControllerActionOrigin_Gyro_Yaw","value": "37"} - ,{"name": "k_EControllerActionOrigin_Gyro_Roll","value": "38"} - ,{"name": "k_EControllerActionOrigin_Count","value": "39"} -]} -, {"enumname": "EUGCMatchingUGCType","values": [ - {"name": "k_EUGCMatchingUGCType_Items","value": "0"} - ,{"name": "k_EUGCMatchingUGCType_Items_Mtx","value": "1"} - ,{"name": "k_EUGCMatchingUGCType_Items_ReadyToUse","value": "2"} - ,{"name": "k_EUGCMatchingUGCType_Collections","value": "3"} - ,{"name": "k_EUGCMatchingUGCType_Artwork","value": "4"} - ,{"name": "k_EUGCMatchingUGCType_Videos","value": "5"} - ,{"name": "k_EUGCMatchingUGCType_Screenshots","value": "6"} - ,{"name": "k_EUGCMatchingUGCType_AllGuides","value": "7"} - ,{"name": "k_EUGCMatchingUGCType_WebGuides","value": "8"} - ,{"name": "k_EUGCMatchingUGCType_IntegratedGuides","value": "9"} - ,{"name": "k_EUGCMatchingUGCType_UsableInGame","value": "10"} - ,{"name": "k_EUGCMatchingUGCType_ControllerBindings","value": "11"} - ,{"name": "k_EUGCMatchingUGCType_GameManagedItems","value": "12"} - ,{"name": "k_EUGCMatchingUGCType_All","value": "-1"} -]} -, {"enumname": "EUserUGCList","values": [ - {"name": "k_EUserUGCList_Published","value": "0"} - ,{"name": "k_EUserUGCList_VotedOn","value": "1"} - ,{"name": "k_EUserUGCList_VotedUp","value": "2"} - ,{"name": "k_EUserUGCList_VotedDown","value": "3"} - ,{"name": "k_EUserUGCList_WillVoteLater","value": "4"} - ,{"name": "k_EUserUGCList_Favorited","value": "5"} - ,{"name": "k_EUserUGCList_Subscribed","value": "6"} - ,{"name": "k_EUserUGCList_UsedOrPlayed","value": "7"} - ,{"name": "k_EUserUGCList_Followed","value": "8"} -]} -, {"enumname": "EUserUGCListSortOrder","values": [ - {"name": "k_EUserUGCListSortOrder_CreationOrderDesc","value": "0"} - ,{"name": "k_EUserUGCListSortOrder_CreationOrderAsc","value": "1"} - ,{"name": "k_EUserUGCListSortOrder_TitleAsc","value": "2"} - ,{"name": "k_EUserUGCListSortOrder_LastUpdatedDesc","value": "3"} - ,{"name": "k_EUserUGCListSortOrder_SubscriptionDateDesc","value": "4"} - ,{"name": "k_EUserUGCListSortOrder_VoteScoreDesc","value": "5"} - ,{"name": "k_EUserUGCListSortOrder_ForModeration","value": "6"} -]} -, {"enumname": "EUGCQuery","values": [ - {"name": "k_EUGCQuery_RankedByVote","value": "0"} - ,{"name": "k_EUGCQuery_RankedByPublicationDate","value": "1"} - ,{"name": "k_EUGCQuery_AcceptedForGameRankedByAcceptanceDate","value": "2"} - ,{"name": "k_EUGCQuery_RankedByTrend","value": "3"} - ,{"name": "k_EUGCQuery_FavoritedByFriendsRankedByPublicationDate","value": "4"} - ,{"name": "k_EUGCQuery_CreatedByFriendsRankedByPublicationDate","value": "5"} - ,{"name": "k_EUGCQuery_RankedByNumTimesReported","value": "6"} - ,{"name": "k_EUGCQuery_CreatedByFollowedUsersRankedByPublicationDate","value": "7"} - ,{"name": "k_EUGCQuery_NotYetRated","value": "8"} - ,{"name": "k_EUGCQuery_RankedByTotalVotesAsc","value": "9"} - ,{"name": "k_EUGCQuery_RankedByVotesUp","value": "10"} - ,{"name": "k_EUGCQuery_RankedByTextSearch","value": "11"} - ,{"name": "k_EUGCQuery_RankedByTotalUniqueSubscriptions","value": "12"} -]} -, {"enumname": "EItemUpdateStatus","values": [ - {"name": "k_EItemUpdateStatusInvalid","value": "0"} - ,{"name": "k_EItemUpdateStatusPreparingConfig","value": "1"} - ,{"name": "k_EItemUpdateStatusPreparingContent","value": "2"} - ,{"name": "k_EItemUpdateStatusUploadingContent","value": "3"} - ,{"name": "k_EItemUpdateStatusUploadingPreviewFile","value": "4"} - ,{"name": "k_EItemUpdateStatusCommittingChanges","value": "5"} -]} -, {"enumname": "EItemState","values": [ - {"name": "k_EItemStateNone","value": "0"} - ,{"name": "k_EItemStateSubscribed","value": "1"} - ,{"name": "k_EItemStateLegacyItem","value": "2"} - ,{"name": "k_EItemStateInstalled","value": "4"} - ,{"name": "k_EItemStateNeedsUpdate","value": "8"} - ,{"name": "k_EItemStateDownloading","value": "16"} - ,{"name": "k_EItemStateDownloadPending","value": "32"} -]} -, {"enumname": "EItemStatistic","values": [ - {"name": "k_EItemStatistic_NumSubscriptions","value": "0"} - ,{"name": "k_EItemStatistic_NumFavorites","value": "1"} - ,{"name": "k_EItemStatistic_NumFollowers","value": "2"} - ,{"name": "k_EItemStatistic_NumUniqueSubscriptions","value": "3"} - ,{"name": "k_EItemStatistic_NumUniqueFavorites","value": "4"} - ,{"name": "k_EItemStatistic_NumUniqueFollowers","value": "5"} - ,{"name": "k_EItemStatistic_NumUniqueWebsiteViews","value": "6"} - ,{"name": "k_EItemStatistic_ReportScore","value": "7"} -]} -, {"enumname": "ISteamHTMLSurface::EHTMLMouseButton","values": [ - {"name": "eHTMLMouseButton_Left","value": "0"} - ,{"name": "eHTMLMouseButton_Right","value": "1"} - ,{"name": "eHTMLMouseButton_Middle","value": "2"} -]} -, {"enumname": "ISteamHTMLSurface::EMouseCursor","values": [ - {"name": "dc_user","value": "0"} - ,{"name": "dc_none","value": "1"} - ,{"name": "dc_arrow","value": "2"} - ,{"name": "dc_ibeam","value": "3"} - ,{"name": "dc_hourglass","value": "4"} - ,{"name": "dc_waitarrow","value": "5"} - ,{"name": "dc_crosshair","value": "6"} - ,{"name": "dc_up","value": "7"} - ,{"name": "dc_sizenw","value": "8"} - ,{"name": "dc_sizese","value": "9"} - ,{"name": "dc_sizene","value": "10"} - ,{"name": "dc_sizesw","value": "11"} - ,{"name": "dc_sizew","value": "12"} - ,{"name": "dc_sizee","value": "13"} - ,{"name": "dc_sizen","value": "14"} - ,{"name": "dc_sizes","value": "15"} - ,{"name": "dc_sizewe","value": "16"} - ,{"name": "dc_sizens","value": "17"} - ,{"name": "dc_sizeall","value": "18"} - ,{"name": "dc_no","value": "19"} - ,{"name": "dc_hand","value": "20"} - ,{"name": "dc_blank","value": "21"} - ,{"name": "dc_middle_pan","value": "22"} - ,{"name": "dc_north_pan","value": "23"} - ,{"name": "dc_north_east_pan","value": "24"} - ,{"name": "dc_east_pan","value": "25"} - ,{"name": "dc_south_east_pan","value": "26"} - ,{"name": "dc_south_pan","value": "27"} - ,{"name": "dc_south_west_pan","value": "28"} - ,{"name": "dc_west_pan","value": "29"} - ,{"name": "dc_north_west_pan","value": "30"} - ,{"name": "dc_alias","value": "31"} - ,{"name": "dc_cell","value": "32"} - ,{"name": "dc_colresize","value": "33"} - ,{"name": "dc_copycur","value": "34"} - ,{"name": "dc_verticaltext","value": "35"} - ,{"name": "dc_rowresize","value": "36"} - ,{"name": "dc_zoomin","value": "37"} - ,{"name": "dc_zoomout","value": "38"} - ,{"name": "dc_help","value": "39"} - ,{"name": "dc_custom","value": "40"} - ,{"name": "dc_last","value": "41"} -]} -, {"enumname": "ISteamHTMLSurface::EHTMLKeyModifiers","values": [ - {"name": "k_eHTMLKeyModifier_None","value": "0"} - ,{"name": "k_eHTMLKeyModifier_AltDown","value": "1"} - ,{"name": "k_eHTMLKeyModifier_CtrlDown","value": "2"} - ,{"name": "k_eHTMLKeyModifier_ShiftDown","value": "4"} -]} -, {"enumname": "ESteamItemFlags","values": [ - {"name": "k_ESteamItemNoTrade","value": "1"} - ,{"name": "k_ESteamItemRemoved","value": "256"} - ,{"name": "k_ESteamItemConsumed","value": "512"} -]} -], -"consts":[{ - "constname": "k_iSteamUserCallbacks","consttype": "int", "constval": "100"} -,{ - "constname": "k_iSteamGameServerCallbacks","consttype": "int", "constval": "200"} -,{ - "constname": "k_iSteamFriendsCallbacks","consttype": "int", "constval": "300"} -,{ - "constname": "k_iSteamBillingCallbacks","consttype": "int", "constval": "400"} -,{ - "constname": "k_iSteamMatchmakingCallbacks","consttype": "int", "constval": "500"} -,{ - "constname": "k_iSteamContentServerCallbacks","consttype": "int", "constval": "600"} -,{ - "constname": "k_iSteamUtilsCallbacks","consttype": "int", "constval": "700"} -,{ - "constname": "k_iClientFriendsCallbacks","consttype": "int", "constval": "800"} -,{ - "constname": "k_iClientUserCallbacks","consttype": "int", "constval": "900"} -,{ - "constname": "k_iSteamAppsCallbacks","consttype": "int", "constval": "1000"} -,{ - "constname": "k_iSteamUserStatsCallbacks","consttype": "int", "constval": "1100"} -,{ - "constname": "k_iSteamNetworkingCallbacks","consttype": "int", "constval": "1200"} -,{ - "constname": "k_iClientRemoteStorageCallbacks","consttype": "int", "constval": "1300"} -,{ - "constname": "k_iClientDepotBuilderCallbacks","consttype": "int", "constval": "1400"} -,{ - "constname": "k_iSteamGameServerItemsCallbacks","consttype": "int", "constval": "1500"} -,{ - "constname": "k_iClientUtilsCallbacks","consttype": "int", "constval": "1600"} -,{ - "constname": "k_iSteamGameCoordinatorCallbacks","consttype": "int", "constval": "1700"} -,{ - "constname": "k_iSteamGameServerStatsCallbacks","consttype": "int", "constval": "1800"} -,{ - "constname": "k_iSteam2AsyncCallbacks","consttype": "int", "constval": "1900"} -,{ - "constname": "k_iSteamGameStatsCallbacks","consttype": "int", "constval": "2000"} -,{ - "constname": "k_iClientHTTPCallbacks","consttype": "int", "constval": "2100"} -,{ - "constname": "k_iClientScreenshotsCallbacks","consttype": "int", "constval": "2200"} -,{ - "constname": "k_iSteamScreenshotsCallbacks","consttype": "int", "constval": "2300"} -,{ - "constname": "k_iClientAudioCallbacks","consttype": "int", "constval": "2400"} -,{ - "constname": "k_iClientUnifiedMessagesCallbacks","consttype": "int", "constval": "2500"} -,{ - "constname": "k_iSteamStreamLauncherCallbacks","consttype": "int", "constval": "2600"} -,{ - "constname": "k_iClientControllerCallbacks","consttype": "int", "constval": "2700"} -,{ - "constname": "k_iSteamControllerCallbacks","consttype": "int", "constval": "2800"} -,{ - "constname": "k_iClientParentalSettingsCallbacks","consttype": "int", "constval": "2900"} -,{ - "constname": "k_iClientDeviceAuthCallbacks","consttype": "int", "constval": "3000"} -,{ - "constname": "k_iClientNetworkDeviceManagerCallbacks","consttype": "int", "constval": "3100"} -,{ - "constname": "k_iClientMusicCallbacks","consttype": "int", "constval": "3200"} -,{ - "constname": "k_iClientRemoteClientManagerCallbacks","consttype": "int", "constval": "3300"} -,{ - "constname": "k_iClientUGCCallbacks","consttype": "int", "constval": "3400"} -,{ - "constname": "k_iSteamStreamClientCallbacks","consttype": "int", "constval": "3500"} -,{ - "constname": "k_IClientProductBuilderCallbacks","consttype": "int", "constval": "3600"} -,{ - "constname": "k_iClientShortcutsCallbacks","consttype": "int", "constval": "3700"} -,{ - "constname": "k_iClientRemoteControlManagerCallbacks","consttype": "int", "constval": "3800"} -,{ - "constname": "k_iSteamAppListCallbacks","consttype": "int", "constval": "3900"} -,{ - "constname": "k_iSteamMusicCallbacks","consttype": "int", "constval": "4000"} -,{ - "constname": "k_iSteamMusicRemoteCallbacks","consttype": "int", "constval": "4100"} -,{ - "constname": "k_iClientVRCallbacks","consttype": "int", "constval": "4200"} -,{ - "constname": "k_iClientReservedCallbacks","consttype": "int", "constval": "4300"} -,{ - "constname": "k_iSteamReservedCallbacks","consttype": "int", "constval": "4400"} -,{ - "constname": "k_iSteamHTMLSurfaceCallbacks","consttype": "int", "constval": "4500"} -,{ - "constname": "k_iClientVideoCallbacks","consttype": "int", "constval": "4600"} -,{ - "constname": "k_iClientInventoryCallbacks","consttype": "int", "constval": "4700"} -,{ - "constname": "k_cchPersonaNameMax","consttype": "int", "constval": "128"} -,{ - "constname": "k_cwchPersonaNameMax","consttype": "int", "constval": "32"} -,{ - "constname": "k_cchMaxRichPresenceKeys","consttype": "int", "constval": "20"} -,{ - "constname": "k_cchMaxRichPresenceKeyLength","consttype": "int", "constval": "64"} -,{ - "constname": "k_cchMaxRichPresenceValueLength","consttype": "int", "constval": "256"} -,{ - "constname": "k_cchStatNameMax","consttype": "int", "constval": "128"} -,{ - "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"} -,{ - "constname": "k_SteamInventoryResultInvalid","consttype": "const SteamInventoryResult_t", "constval": "-1"} -], -"structs":[{"struct": "CSteamID","fields": [ -{ "fieldname": "m_steamid", "fieldtype": "union SteamID_t"}]} -,{"struct": "CSteamID::SteamID_t","fields": [ -{ "fieldname": "m_comp", "fieldtype": "struct SteamIDComponent_t"}, -{ "fieldname": "m_unAll64Bits", "fieldtype": "uint64"}]} -,{"struct": "CSteamID::SteamID_t::SteamIDComponent_t","fields": [ -{ "fieldname": "m_unAccountID", "fieldtype": "uint32"}, -{ "fieldname": "m_unAccountInstance", "fieldtype": "unsigned int"}, -{ "fieldname": "m_EAccountType", "fieldtype": "unsigned int"}, -{ "fieldname": "m_EUniverse", "fieldtype": "enum EUniverse"}]} -,{"struct": "CGameID::GameID_t","fields": [ -{ "fieldname": "m_nAppID", "fieldtype": "unsigned int"}, -{ "fieldname": "m_nType", "fieldtype": "unsigned int"}, -{ "fieldname": "m_nModID", "fieldtype": "unsigned int"}]} -,{"struct": "CGameID::(anonymous)","fields": [ -{ "fieldname": "m_ulGameID", "fieldtype": "uint64"}, -{ "fieldname": "m_gameID", "fieldtype": "struct CGameID::GameID_t"}]} -,{"struct": "ValvePackingSentinel_t","fields": [ -{ "fieldname": "m_u32", "fieldtype": "uint32"}, -{ "fieldname": "m_u64", "fieldtype": "uint64"}, -{ "fieldname": "m_u16", "fieldtype": "uint16"}, -{ "fieldname": "m_d", "fieldtype": "double"}]} -,{"struct": "CallbackMsg_t","fields": [ -{ "fieldname": "m_hSteamUser", "fieldtype": "HSteamUser"}, -{ "fieldname": "m_iCallback", "fieldtype": "int"}, -{ "fieldname": "m_pubParam", "fieldtype": "uint8 *"}, -{ "fieldname": "m_cubParam", "fieldtype": "int"}]} -,{"struct": "SteamServerConnectFailure_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_bStillRetrying", "fieldtype": "_Bool"}]} -,{"struct": "SteamServersDisconnected_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}]} -,{"struct": "ClientGameServerDeny_t","fields": [ -{ "fieldname": "m_uAppID", "fieldtype": "uint32"}, -{ "fieldname": "m_unGameServerIP", "fieldtype": "uint32"}, -{ "fieldname": "m_usGameServerPort", "fieldtype": "uint16"}, -{ "fieldname": "m_bSecure", "fieldtype": "uint16"}, -{ "fieldname": "m_uReason", "fieldtype": "uint32"}]} -,{"struct": "ValidateAuthTicketResponse_t","fields": [ -{ "fieldname": "m_SteamID", "fieldtype": "class CSteamID"}, -{ "fieldname": "m_eAuthSessionResponse", "fieldtype": "enum EAuthSessionResponse"}, -{ "fieldname": "m_OwnerSteamID", "fieldtype": "class CSteamID"}]} -,{"struct": "MicroTxnAuthorizationResponse_t","fields": [ -{ "fieldname": "m_unAppID", "fieldtype": "uint32"}, -{ "fieldname": "m_ulOrderID", "fieldtype": "uint64"}, -{ "fieldname": "m_bAuthorized", "fieldtype": "uint8"}]} -,{"struct": "EncryptedAppTicketResponse_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}]} -,{"struct": "GetAuthSessionTicketResponse_t","fields": [ -{ "fieldname": "m_hAuthTicket", "fieldtype": "HAuthTicket"}, -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}]} -,{"struct": "GameWebCallback_t","fields": [ -{ "fieldname": "m_szURL", "fieldtype": "char [256]"}]} -,{"struct": "StoreAuthURLResponse_t","fields": [ -{ "fieldname": "m_szURL", "fieldtype": "char [512]"}]} -,{"struct": "FriendGameInfo_t","fields": [ -{ "fieldname": "m_gameID", "fieldtype": "class CGameID"}, -{ "fieldname": "m_unGameIP", "fieldtype": "uint32"}, -{ "fieldname": "m_usGamePort", "fieldtype": "uint16"}, -{ "fieldname": "m_usQueryPort", "fieldtype": "uint16"}, -{ "fieldname": "m_steamIDLobby", "fieldtype": "class CSteamID"}]} -,{"struct": "FriendSessionStateInfo_t","fields": [ -{ "fieldname": "m_uiOnlineSessionInstances", "fieldtype": "uint32"}, -{ "fieldname": "m_uiPublishedToFriendsSessionInstance", "fieldtype": "uint8"}]} -,{"struct": "PersonaStateChange_t","fields": [ -{ "fieldname": "m_ulSteamID", "fieldtype": "uint64"}, -{ "fieldname": "m_nChangeFlags", "fieldtype": "int"}]} -,{"struct": "GameOverlayActivated_t","fields": [ -{ "fieldname": "m_bActive", "fieldtype": "uint8"}]} -,{"struct": "GameServerChangeRequested_t","fields": [ -{ "fieldname": "m_rgchServer", "fieldtype": "char [64]"}, -{ "fieldname": "m_rgchPassword", "fieldtype": "char [64]"}]} -,{"struct": "GameLobbyJoinRequested_t","fields": [ -{ "fieldname": "m_steamIDLobby", "fieldtype": "class CSteamID"}, -{ "fieldname": "m_steamIDFriend", "fieldtype": "class CSteamID"}]} -,{"struct": "AvatarImageLoaded_t","fields": [ -{ "fieldname": "m_steamID", "fieldtype": "class CSteamID"}, -{ "fieldname": "m_iImage", "fieldtype": "int"}, -{ "fieldname": "m_iWide", "fieldtype": "int"}, -{ "fieldname": "m_iTall", "fieldtype": "int"}]} -,{"struct": "ClanOfficerListResponse_t","fields": [ -{ "fieldname": "m_steamIDClan", "fieldtype": "class CSteamID"}, -{ "fieldname": "m_cOfficers", "fieldtype": "int"}, -{ "fieldname": "m_bSuccess", "fieldtype": "uint8"}]} -,{"struct": "FriendRichPresenceUpdate_t","fields": [ -{ "fieldname": "m_steamIDFriend", "fieldtype": "class CSteamID"}, -{ "fieldname": "m_nAppID", "fieldtype": "AppId_t"}]} -,{"struct": "GameRichPresenceJoinRequested_t","fields": [ -{ "fieldname": "m_steamIDFriend", "fieldtype": "class CSteamID"}, -{ "fieldname": "m_rgchConnect", "fieldtype": "char [256]"}]} -,{"struct": "GameConnectedClanChatMsg_t","fields": [ -{ "fieldname": "m_steamIDClanChat", "fieldtype": "class CSteamID"}, -{ "fieldname": "m_steamIDUser", "fieldtype": "class CSteamID"}, -{ "fieldname": "m_iMessageID", "fieldtype": "int"}]} -,{"struct": "GameConnectedChatJoin_t","fields": [ -{ "fieldname": "m_steamIDClanChat", "fieldtype": "class CSteamID"}, -{ "fieldname": "m_steamIDUser", "fieldtype": "class CSteamID"}]} -,{"struct": "GameConnectedChatLeave_t","fields": [ -{ "fieldname": "m_steamIDClanChat", "fieldtype": "class CSteamID"}, -{ "fieldname": "m_steamIDUser", "fieldtype": "class CSteamID"}, -{ "fieldname": "m_bKicked", "fieldtype": "_Bool"}, -{ "fieldname": "m_bDropped", "fieldtype": "_Bool"}]} -,{"struct": "DownloadClanActivityCountsResult_t","fields": [ -{ "fieldname": "m_bSuccess", "fieldtype": "_Bool"}]} -,{"struct": "JoinClanChatRoomCompletionResult_t","fields": [ -{ "fieldname": "m_steamIDClanChat", "fieldtype": "class CSteamID"}, -{ "fieldname": "m_eChatRoomEnterResponse", "fieldtype": "enum EChatRoomEnterResponse"}]} -,{"struct": "GameConnectedFriendChatMsg_t","fields": [ -{ "fieldname": "m_steamIDUser", "fieldtype": "class CSteamID"}, -{ "fieldname": "m_iMessageID", "fieldtype": "int"}]} -,{"struct": "FriendsGetFollowerCount_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_steamID", "fieldtype": "class CSteamID"}, -{ "fieldname": "m_nCount", "fieldtype": "int"}]} -,{"struct": "FriendsIsFollowing_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_steamID", "fieldtype": "class CSteamID"}, -{ "fieldname": "m_bIsFollowing", "fieldtype": "_Bool"}]} -,{"struct": "FriendsEnumerateFollowingList_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_rgSteamID", "fieldtype": "class CSteamID [50]"}, -{ "fieldname": "m_nResultsReturned", "fieldtype": "int32"}, -{ "fieldname": "m_nTotalResultCount", "fieldtype": "int32"}]} -,{"struct": "SetPersonaNameResponse_t","fields": [ -{ "fieldname": "m_bSuccess", "fieldtype": "_Bool"}, -{ "fieldname": "m_bLocalSuccess", "fieldtype": "_Bool"}, -{ "fieldname": "m_result", "fieldtype": "enum EResult"}]} -,{"struct": "LowBatteryPower_t","fields": [ -{ "fieldname": "m_nMinutesBatteryLeft", "fieldtype": "uint8"}]} -,{"struct": "SteamAPICallCompleted_t","fields": [ -{ "fieldname": "m_hAsyncCall", "fieldtype": "SteamAPICall_t"}]} -,{"struct": "CheckFileSignature_t","fields": [ -{ "fieldname": "m_eCheckFileSignature", "fieldtype": "enum ECheckFileSignature"}]} -,{"struct": "GamepadTextInputDismissed_t","fields": [ -{ "fieldname": "m_bSubmitted", "fieldtype": "_Bool"}, -{ "fieldname": "m_unSubmittedText", "fieldtype": "uint32"}]} -,{"struct": "MatchMakingKeyValuePair_t","fields": [ -{ "fieldname": "m_szKey", "fieldtype": "char [256]"}, -{ "fieldname": "m_szValue", "fieldtype": "char [256]"}]} -,{"struct": "servernetadr_t","fields": [ -{ "fieldname": "m_usConnectionPort", "fieldtype": "uint16"}, -{ "fieldname": "m_usQueryPort", "fieldtype": "uint16"}, -{ "fieldname": "m_unIP", "fieldtype": "uint32"}]} -,{"struct": "gameserveritem_t","fields": [ -{ "fieldname": "m_NetAdr", "fieldtype": "class servernetadr_t"}, -{ "fieldname": "m_nPing", "fieldtype": "int"}, -{ "fieldname": "m_bHadSuccessfulResponse", "fieldtype": "_Bool"}, -{ "fieldname": "m_bDoNotRefresh", "fieldtype": "_Bool"}, -{ "fieldname": "m_szGameDir", "fieldtype": "char [32]"}, -{ "fieldname": "m_szMap", "fieldtype": "char [32]"}, -{ "fieldname": "m_szGameDescription", "fieldtype": "char [64]"}, -{ "fieldname": "m_nAppID", "fieldtype": "uint32"}, -{ "fieldname": "m_nPlayers", "fieldtype": "int"}, -{ "fieldname": "m_nMaxPlayers", "fieldtype": "int"}, -{ "fieldname": "m_nBotPlayers", "fieldtype": "int"}, -{ "fieldname": "m_bPassword", "fieldtype": "_Bool"}, -{ "fieldname": "m_bSecure", "fieldtype": "_Bool"}, -{ "fieldname": "m_ulTimeLastPlayed", "fieldtype": "uint32"}, -{ "fieldname": "m_nServerVersion", "fieldtype": "int"}, -{ "fieldname": "m_szServerName", "fieldtype": "char [64]"}, -{ "fieldname": "m_szGameTags", "fieldtype": "char [128]"}, -{ "fieldname": "m_steamID", "fieldtype": "class CSteamID"}]} -,{"struct": "FavoritesListChanged_t","fields": [ -{ "fieldname": "m_nIP", "fieldtype": "uint32"}, -{ "fieldname": "m_nQueryPort", "fieldtype": "uint32"}, -{ "fieldname": "m_nConnPort", "fieldtype": "uint32"}, -{ "fieldname": "m_nAppID", "fieldtype": "uint32"}, -{ "fieldname": "m_nFlags", "fieldtype": "uint32"}, -{ "fieldname": "m_bAdd", "fieldtype": "_Bool"}, -{ "fieldname": "m_unAccountId", "fieldtype": "AccountID_t"}]} -,{"struct": "LobbyInvite_t","fields": [ -{ "fieldname": "m_ulSteamIDUser", "fieldtype": "uint64"}, -{ "fieldname": "m_ulSteamIDLobby", "fieldtype": "uint64"}, -{ "fieldname": "m_ulGameID", "fieldtype": "uint64"}]} -,{"struct": "LobbyEnter_t","fields": [ -{ "fieldname": "m_ulSteamIDLobby", "fieldtype": "uint64"}, -{ "fieldname": "m_rgfChatPermissions", "fieldtype": "uint32"}, -{ "fieldname": "m_bLocked", "fieldtype": "_Bool"}, -{ "fieldname": "m_EChatRoomEnterResponse", "fieldtype": "uint32"}]} -,{"struct": "LobbyDataUpdate_t","fields": [ -{ "fieldname": "m_ulSteamIDLobby", "fieldtype": "uint64"}, -{ "fieldname": "m_ulSteamIDMember", "fieldtype": "uint64"}, -{ "fieldname": "m_bSuccess", "fieldtype": "uint8"}]} -,{"struct": "LobbyChatUpdate_t","fields": [ -{ "fieldname": "m_ulSteamIDLobby", "fieldtype": "uint64"}, -{ "fieldname": "m_ulSteamIDUserChanged", "fieldtype": "uint64"}, -{ "fieldname": "m_ulSteamIDMakingChange", "fieldtype": "uint64"}, -{ "fieldname": "m_rgfChatMemberStateChange", "fieldtype": "uint32"}]} -,{"struct": "LobbyChatMsg_t","fields": [ -{ "fieldname": "m_ulSteamIDLobby", "fieldtype": "uint64"}, -{ "fieldname": "m_ulSteamIDUser", "fieldtype": "uint64"}, -{ "fieldname": "m_eChatEntryType", "fieldtype": "uint8"}, -{ "fieldname": "m_iChatID", "fieldtype": "uint32"}]} -,{"struct": "LobbyGameCreated_t","fields": [ -{ "fieldname": "m_ulSteamIDLobby", "fieldtype": "uint64"}, -{ "fieldname": "m_ulSteamIDGameServer", "fieldtype": "uint64"}, -{ "fieldname": "m_unIP", "fieldtype": "uint32"}, -{ "fieldname": "m_usPort", "fieldtype": "uint16"}]} -,{"struct": "LobbyMatchList_t","fields": [ -{ "fieldname": "m_nLobbiesMatching", "fieldtype": "uint32"}]} -,{"struct": "LobbyKicked_t","fields": [ -{ "fieldname": "m_ulSteamIDLobby", "fieldtype": "uint64"}, -{ "fieldname": "m_ulSteamIDAdmin", "fieldtype": "uint64"}, -{ "fieldname": "m_bKickedDueToDisconnect", "fieldtype": "uint8"}]} -,{"struct": "LobbyCreated_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_ulSteamIDLobby", "fieldtype": "uint64"}]} -,{"struct": "PSNGameBootInviteResult_t","fields": [ -{ "fieldname": "m_bGameBootInviteExists", "fieldtype": "_Bool"}, -{ "fieldname": "m_steamIDLobby", "fieldtype": "class CSteamID"}]} -,{"struct": "FavoritesListAccountsUpdated_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}]} -,{"struct": "SteamParamStringArray_t","fields": [ -{ "fieldname": "m_ppStrings", "fieldtype": "const char **"}, -{ "fieldname": "m_nNumStrings", "fieldtype": "int32"}]} -,{"struct": "RemoteStorageAppSyncedClient_t","fields": [ -{ "fieldname": "m_nAppID", "fieldtype": "AppId_t"}, -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_unNumDownloads", "fieldtype": "int"}]} -,{"struct": "RemoteStorageAppSyncedServer_t","fields": [ -{ "fieldname": "m_nAppID", "fieldtype": "AppId_t"}, -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_unNumUploads", "fieldtype": "int"}]} -,{"struct": "RemoteStorageAppSyncProgress_t","fields": [ -{ "fieldname": "m_rgchCurrentFile", "fieldtype": "char [260]"}, -{ "fieldname": "m_nAppID", "fieldtype": "AppId_t"}, -{ "fieldname": "m_uBytesTransferredThisChunk", "fieldtype": "uint32"}, -{ "fieldname": "m_dAppPercentComplete", "fieldtype": "double"}, -{ "fieldname": "m_bUploading", "fieldtype": "_Bool"}]} -,{"struct": "RemoteStorageAppSyncStatusCheck_t","fields": [ -{ "fieldname": "m_nAppID", "fieldtype": "AppId_t"}, -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}]} -,{"struct": "RemoteStorageConflictResolution_t","fields": [ -{ "fieldname": "m_nAppID", "fieldtype": "AppId_t"}, -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}]} -,{"struct": "RemoteStorageFileShareResult_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_hFile", "fieldtype": "UGCHandle_t"}, -{ "fieldname": "m_rgchFilename", "fieldtype": "char [260]"}]} -,{"struct": "RemoteStoragePublishFileResult_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}, -{ "fieldname": "m_bUserNeedsToAcceptWorkshopLegalAgreement", "fieldtype": "_Bool"}]} -,{"struct": "RemoteStorageDeletePublishedFileResult_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}]} -,{"struct": "RemoteStorageEnumerateUserPublishedFilesResult_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_nResultsReturned", "fieldtype": "int32"}, -{ "fieldname": "m_nTotalResultCount", "fieldtype": "int32"}, -{ "fieldname": "m_rgPublishedFileId", "fieldtype": "PublishedFileId_t [50]"}]} -,{"struct": "RemoteStorageSubscribePublishedFileResult_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}]} -,{"struct": "RemoteStorageEnumerateUserSubscribedFilesResult_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_nResultsReturned", "fieldtype": "int32"}, -{ "fieldname": "m_nTotalResultCount", "fieldtype": "int32"}, -{ "fieldname": "m_rgPublishedFileId", "fieldtype": "PublishedFileId_t [50]"}, -{ "fieldname": "m_rgRTimeSubscribed", "fieldtype": "uint32 [50]"}]} -,{"struct": "RemoteStorageUnsubscribePublishedFileResult_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}]} -,{"struct": "RemoteStorageUpdatePublishedFileResult_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}, -{ "fieldname": "m_bUserNeedsToAcceptWorkshopLegalAgreement", "fieldtype": "_Bool"}]} -,{"struct": "RemoteStorageDownloadUGCResult_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_hFile", "fieldtype": "UGCHandle_t"}, -{ "fieldname": "m_nAppID", "fieldtype": "AppId_t"}, -{ "fieldname": "m_nSizeInBytes", "fieldtype": "int32"}, -{ "fieldname": "m_pchFileName", "fieldtype": "char [260]"}, -{ "fieldname": "m_ulSteamIDOwner", "fieldtype": "uint64"}]} -,{"struct": "RemoteStorageGetPublishedFileDetailsResult_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}, -{ "fieldname": "m_nCreatorAppID", "fieldtype": "AppId_t"}, -{ "fieldname": "m_nConsumerAppID", "fieldtype": "AppId_t"}, -{ "fieldname": "m_rgchTitle", "fieldtype": "char [129]"}, -{ "fieldname": "m_rgchDescription", "fieldtype": "char [8000]"}, -{ "fieldname": "m_hFile", "fieldtype": "UGCHandle_t"}, -{ "fieldname": "m_hPreviewFile", "fieldtype": "UGCHandle_t"}, -{ "fieldname": "m_ulSteamIDOwner", "fieldtype": "uint64"}, -{ "fieldname": "m_rtimeCreated", "fieldtype": "uint32"}, -{ "fieldname": "m_rtimeUpdated", "fieldtype": "uint32"}, -{ "fieldname": "m_eVisibility", "fieldtype": "enum ERemoteStoragePublishedFileVisibility"}, -{ "fieldname": "m_bBanned", "fieldtype": "_Bool"}, -{ "fieldname": "m_rgchTags", "fieldtype": "char [1025]"}, -{ "fieldname": "m_bTagsTruncated", "fieldtype": "_Bool"}, -{ "fieldname": "m_pchFileName", "fieldtype": "char [260]"}, -{ "fieldname": "m_nFileSize", "fieldtype": "int32"}, -{ "fieldname": "m_nPreviewFileSize", "fieldtype": "int32"}, -{ "fieldname": "m_rgchURL", "fieldtype": "char [256]"}, -{ "fieldname": "m_eFileType", "fieldtype": "enum EWorkshopFileType"}, -{ "fieldname": "m_bAcceptedForUse", "fieldtype": "_Bool"}]} -,{"struct": "RemoteStorageEnumerateWorkshopFilesResult_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_nResultsReturned", "fieldtype": "int32"}, -{ "fieldname": "m_nTotalResultCount", "fieldtype": "int32"}, -{ "fieldname": "m_rgPublishedFileId", "fieldtype": "PublishedFileId_t [50]"}, -{ "fieldname": "m_rgScore", "fieldtype": "float [50]"}, -{ "fieldname": "m_nAppId", "fieldtype": "AppId_t"}, -{ "fieldname": "m_unStartIndex", "fieldtype": "uint32"}]} -,{"struct": "RemoteStorageGetPublishedItemVoteDetailsResult_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_unPublishedFileId", "fieldtype": "PublishedFileId_t"}, -{ "fieldname": "m_nVotesFor", "fieldtype": "int32"}, -{ "fieldname": "m_nVotesAgainst", "fieldtype": "int32"}, -{ "fieldname": "m_nReports", "fieldtype": "int32"}, -{ "fieldname": "m_fScore", "fieldtype": "float"}]} -,{"struct": "RemoteStoragePublishedFileSubscribed_t","fields": [ -{ "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}, -{ "fieldname": "m_nAppID", "fieldtype": "AppId_t"}]} -,{"struct": "RemoteStoragePublishedFileUnsubscribed_t","fields": [ -{ "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}, -{ "fieldname": "m_nAppID", "fieldtype": "AppId_t"}]} -,{"struct": "RemoteStoragePublishedFileDeleted_t","fields": [ -{ "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}, -{ "fieldname": "m_nAppID", "fieldtype": "AppId_t"}]} -,{"struct": "RemoteStorageUpdateUserPublishedItemVoteResult_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}]} -,{"struct": "RemoteStorageUserVoteDetails_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}, -{ "fieldname": "m_eVote", "fieldtype": "enum EWorkshopVote"}]} -,{"struct": "RemoteStorageEnumerateUserSharedWorkshopFilesResult_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_nResultsReturned", "fieldtype": "int32"}, -{ "fieldname": "m_nTotalResultCount", "fieldtype": "int32"}, -{ "fieldname": "m_rgPublishedFileId", "fieldtype": "PublishedFileId_t [50]"}]} -,{"struct": "RemoteStorageSetUserPublishedFileActionResult_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}, -{ "fieldname": "m_eAction", "fieldtype": "enum EWorkshopFileAction"}]} -,{"struct": "RemoteStorageEnumeratePublishedFilesByUserActionResult_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_eAction", "fieldtype": "enum EWorkshopFileAction"}, -{ "fieldname": "m_nResultsReturned", "fieldtype": "int32"}, -{ "fieldname": "m_nTotalResultCount", "fieldtype": "int32"}, -{ "fieldname": "m_rgPublishedFileId", "fieldtype": "PublishedFileId_t [50]"}, -{ "fieldname": "m_rgRTimeUpdated", "fieldtype": "uint32 [50]"}]} -,{"struct": "RemoteStoragePublishFileProgress_t","fields": [ -{ "fieldname": "m_dPercentFile", "fieldtype": "double"}, -{ "fieldname": "m_bPreview", "fieldtype": "_Bool"}]} -,{"struct": "RemoteStoragePublishedFileUpdated_t","fields": [ -{ "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}, -{ "fieldname": "m_nAppID", "fieldtype": "AppId_t"}, -{ "fieldname": "m_hFile", "fieldtype": "UGCHandle_t"}]} -,{"struct": "RemoteStorageFileWriteAsyncComplete_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}]} -,{"struct": "RemoteStorageFileReadAsyncComplete_t","fields": [ -{ "fieldname": "m_hFileReadAsync", "fieldtype": "SteamAPICall_t"}, -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_nOffset", "fieldtype": "uint32"}, -{ "fieldname": "m_cubRead", "fieldtype": "uint32"}]} -,{"struct": "LeaderboardEntry_t","fields": [ -{ "fieldname": "m_steamIDUser", "fieldtype": "class CSteamID"}, -{ "fieldname": "m_nGlobalRank", "fieldtype": "int32"}, -{ "fieldname": "m_nScore", "fieldtype": "int32"}, -{ "fieldname": "m_cDetails", "fieldtype": "int32"}, -{ "fieldname": "m_hUGC", "fieldtype": "UGCHandle_t"}]} -,{"struct": "UserStatsReceived_t","fields": [ -{ "fieldname": "m_nGameID", "fieldtype": "uint64"}, -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_steamIDUser", "fieldtype": "class CSteamID"}]} -,{"struct": "UserStatsStored_t","fields": [ -{ "fieldname": "m_nGameID", "fieldtype": "uint64"}, -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}]} -,{"struct": "UserAchievementStored_t","fields": [ -{ "fieldname": "m_nGameID", "fieldtype": "uint64"}, -{ "fieldname": "m_bGroupAchievement", "fieldtype": "_Bool"}, -{ "fieldname": "m_rgchAchievementName", "fieldtype": "char [128]"}, -{ "fieldname": "m_nCurProgress", "fieldtype": "uint32"}, -{ "fieldname": "m_nMaxProgress", "fieldtype": "uint32"}]} -,{"struct": "LeaderboardFindResult_t","fields": [ -{ "fieldname": "m_hSteamLeaderboard", "fieldtype": "SteamLeaderboard_t"}, -{ "fieldname": "m_bLeaderboardFound", "fieldtype": "uint8"}]} -,{"struct": "LeaderboardScoresDownloaded_t","fields": [ -{ "fieldname": "m_hSteamLeaderboard", "fieldtype": "SteamLeaderboard_t"}, -{ "fieldname": "m_hSteamLeaderboardEntries", "fieldtype": "SteamLeaderboardEntries_t"}, -{ "fieldname": "m_cEntryCount", "fieldtype": "int"}]} -,{"struct": "LeaderboardScoreUploaded_t","fields": [ -{ "fieldname": "m_bSuccess", "fieldtype": "uint8"}, -{ "fieldname": "m_hSteamLeaderboard", "fieldtype": "SteamLeaderboard_t"}, -{ "fieldname": "m_nScore", "fieldtype": "int32"}, -{ "fieldname": "m_bScoreChanged", "fieldtype": "uint8"}, -{ "fieldname": "m_nGlobalRankNew", "fieldtype": "int"}, -{ "fieldname": "m_nGlobalRankPrevious", "fieldtype": "int"}]} -,{"struct": "NumberOfCurrentPlayers_t","fields": [ -{ "fieldname": "m_bSuccess", "fieldtype": "uint8"}, -{ "fieldname": "m_cPlayers", "fieldtype": "int32"}]} -,{"struct": "UserStatsUnloaded_t","fields": [ -{ "fieldname": "m_steamIDUser", "fieldtype": "class CSteamID"}]} -,{"struct": "UserAchievementIconFetched_t","fields": [ -{ "fieldname": "m_nGameID", "fieldtype": "class CGameID"}, -{ "fieldname": "m_rgchAchievementName", "fieldtype": "char [128]"}, -{ "fieldname": "m_bAchieved", "fieldtype": "_Bool"}, -{ "fieldname": "m_nIconHandle", "fieldtype": "int"}]} -,{"struct": "GlobalAchievementPercentagesReady_t","fields": [ -{ "fieldname": "m_nGameID", "fieldtype": "uint64"}, -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}]} -,{"struct": "LeaderboardUGCSet_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_hSteamLeaderboard", "fieldtype": "SteamLeaderboard_t"}]} -,{"struct": "PS3TrophiesInstalled_t","fields": [ -{ "fieldname": "m_nGameID", "fieldtype": "uint64"}, -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_ulRequiredDiskSpace", "fieldtype": "uint64"}]} -,{"struct": "GlobalStatsReceived_t","fields": [ -{ "fieldname": "m_nGameID", "fieldtype": "uint64"}, -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}]} -,{"struct": "DlcInstalled_t","fields": [ -{ "fieldname": "m_nAppID", "fieldtype": "AppId_t"}]} -,{"struct": "RegisterActivationCodeResponse_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum ERegisterActivationCodeResult"}, -{ "fieldname": "m_unPackageRegistered", "fieldtype": "uint32"}]} -,{"struct": "AppProofOfPurchaseKeyResponse_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_nAppID", "fieldtype": "uint32"}, -{ "fieldname": "m_rgchKey", "fieldtype": "char [64]"}]} -,{"struct": "P2PSessionState_t","fields": [ -{ "fieldname": "m_bConnectionActive", "fieldtype": "uint8"}, -{ "fieldname": "m_bConnecting", "fieldtype": "uint8"}, -{ "fieldname": "m_eP2PSessionError", "fieldtype": "uint8"}, -{ "fieldname": "m_bUsingRelay", "fieldtype": "uint8"}, -{ "fieldname": "m_nBytesQueuedForSend", "fieldtype": "int32"}, -{ "fieldname": "m_nPacketsQueuedForSend", "fieldtype": "int32"}, -{ "fieldname": "m_nRemoteIP", "fieldtype": "uint32"}, -{ "fieldname": "m_nRemotePort", "fieldtype": "uint16"}]} -,{"struct": "P2PSessionRequest_t","fields": [ -{ "fieldname": "m_steamIDRemote", "fieldtype": "class CSteamID"}]} -,{"struct": "P2PSessionConnectFail_t","fields": [ -{ "fieldname": "m_steamIDRemote", "fieldtype": "class CSteamID"}, -{ "fieldname": "m_eP2PSessionError", "fieldtype": "uint8"}]} -,{"struct": "SocketStatusCallback_t","fields": [ -{ "fieldname": "m_hSocket", "fieldtype": "SNetSocket_t"}, -{ "fieldname": "m_hListenSocket", "fieldtype": "SNetListenSocket_t"}, -{ "fieldname": "m_steamIDRemote", "fieldtype": "class CSteamID"}, -{ "fieldname": "m_eSNetSocketState", "fieldtype": "int"}]} -,{"struct": "ScreenshotReady_t","fields": [ -{ "fieldname": "m_hLocal", "fieldtype": "ScreenshotHandle"}, -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}]} -,{"struct": "VolumeHasChanged_t","fields": [ -{ "fieldname": "m_flNewVolume", "fieldtype": "float"}]} -,{"struct": "MusicPlayerWantsShuffled_t","fields": [ -{ "fieldname": "m_bShuffled", "fieldtype": "_Bool"}]} -,{"struct": "MusicPlayerWantsLooped_t","fields": [ -{ "fieldname": "m_bLooped", "fieldtype": "_Bool"}]} -,{"struct": "MusicPlayerWantsVolume_t","fields": [ -{ "fieldname": "m_flNewVolume", "fieldtype": "float"}]} -,{"struct": "MusicPlayerSelectsQueueEntry_t","fields": [ -{ "fieldname": "nID", "fieldtype": "int"}]} -,{"struct": "MusicPlayerSelectsPlaylistEntry_t","fields": [ -{ "fieldname": "nID", "fieldtype": "int"}]} -,{"struct": "MusicPlayerWantsPlayingRepeatStatus_t","fields": [ -{ "fieldname": "m_nPlayingRepeatStatus", "fieldtype": "int"}]} -,{"struct": "HTTPRequestCompleted_t","fields": [ -{ "fieldname": "m_hRequest", "fieldtype": "HTTPRequestHandle"}, -{ "fieldname": "m_ulContextValue", "fieldtype": "uint64"}, -{ "fieldname": "m_bRequestSuccessful", "fieldtype": "_Bool"}, -{ "fieldname": "m_eStatusCode", "fieldtype": "enum EHTTPStatusCode"}, -{ "fieldname": "m_unBodySize", "fieldtype": "uint32"}]} -,{"struct": "HTTPRequestHeadersReceived_t","fields": [ -{ "fieldname": "m_hRequest", "fieldtype": "HTTPRequestHandle"}, -{ "fieldname": "m_ulContextValue", "fieldtype": "uint64"}]} -,{"struct": "HTTPRequestDataReceived_t","fields": [ -{ "fieldname": "m_hRequest", "fieldtype": "HTTPRequestHandle"}, -{ "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"}, -{ "fieldname": "y", "fieldtype": "float"}, -{ "fieldname": "bActive", "fieldtype": "_Bool"}]} -,{"struct": "ControllerDigitalActionData_t","fields": [ -{ "fieldname": "bState", "fieldtype": "_Bool"}, -{ "fieldname": "bActive", "fieldtype": "_Bool"}]} -,{"struct": "SteamUGCDetails_t","fields": [ -{ "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}, -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_eFileType", "fieldtype": "enum EWorkshopFileType"}, -{ "fieldname": "m_nCreatorAppID", "fieldtype": "AppId_t"}, -{ "fieldname": "m_nConsumerAppID", "fieldtype": "AppId_t"}, -{ "fieldname": "m_rgchTitle", "fieldtype": "char [129]"}, -{ "fieldname": "m_rgchDescription", "fieldtype": "char [8000]"}, -{ "fieldname": "m_ulSteamIDOwner", "fieldtype": "uint64"}, -{ "fieldname": "m_rtimeCreated", "fieldtype": "uint32"}, -{ "fieldname": "m_rtimeUpdated", "fieldtype": "uint32"}, -{ "fieldname": "m_rtimeAddedToUserList", "fieldtype": "uint32"}, -{ "fieldname": "m_eVisibility", "fieldtype": "enum ERemoteStoragePublishedFileVisibility"}, -{ "fieldname": "m_bBanned", "fieldtype": "_Bool"}, -{ "fieldname": "m_bAcceptedForUse", "fieldtype": "_Bool"}, -{ "fieldname": "m_bTagsTruncated", "fieldtype": "_Bool"}, -{ "fieldname": "m_rgchTags", "fieldtype": "char [1025]"}, -{ "fieldname": "m_hFile", "fieldtype": "UGCHandle_t"}, -{ "fieldname": "m_hPreviewFile", "fieldtype": "UGCHandle_t"}, -{ "fieldname": "m_pchFileName", "fieldtype": "char [260]"}, -{ "fieldname": "m_nFileSize", "fieldtype": "int32"}, -{ "fieldname": "m_nPreviewFileSize", "fieldtype": "int32"}, -{ "fieldname": "m_rgchURL", "fieldtype": "char [256]"}, -{ "fieldname": "m_unVotesUp", "fieldtype": "uint32"}, -{ "fieldname": "m_unVotesDown", "fieldtype": "uint32"}, -{ "fieldname": "m_flScore", "fieldtype": "float"}, -{ "fieldname": "m_unNumChildren", "fieldtype": "uint32"}]} -,{"struct": "SteamUGCQueryCompleted_t","fields": [ -{ "fieldname": "m_handle", "fieldtype": "UGCQueryHandle_t"}, -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_unNumResultsReturned", "fieldtype": "uint32"}, -{ "fieldname": "m_unTotalMatchingResults", "fieldtype": "uint32"}, -{ "fieldname": "m_bCachedData", "fieldtype": "_Bool"}]} -,{"struct": "SteamUGCRequestUGCDetailsResult_t","fields": [ -{ "fieldname": "m_details", "fieldtype": "struct SteamUGCDetails_t"}, -{ "fieldname": "m_bCachedData", "fieldtype": "_Bool"}]} -,{"struct": "CreateItemResult_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}, -{ "fieldname": "m_bUserNeedsToAcceptWorkshopLegalAgreement", "fieldtype": "_Bool"}]} -,{"struct": "SubmitItemUpdateResult_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_bUserNeedsToAcceptWorkshopLegalAgreement", "fieldtype": "_Bool"}]} -,{"struct": "DownloadItemResult_t","fields": [ -{ "fieldname": "m_unAppID", "fieldtype": "AppId_t"}, -{ "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}, -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}]} -,{"struct": "UserFavoriteItemsListChanged_t","fields": [ -{ "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}, -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_bWasAddRequest", "fieldtype": "_Bool"}]} -,{"struct": "SetUserItemVoteResult_t","fields": [ -{ "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}, -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_bVoteUp", "fieldtype": "_Bool"}]} -,{"struct": "GetUserItemVoteResult_t","fields": [ -{ "fieldname": "m_nPublishedFileId", "fieldtype": "PublishedFileId_t"}, -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_bVotedUp", "fieldtype": "_Bool"}, -{ "fieldname": "m_bVotedDown", "fieldtype": "_Bool"}, -{ "fieldname": "m_bVoteSkipped", "fieldtype": "_Bool"}]} -,{"struct": "SteamAppInstalled_t","fields": [ -{ "fieldname": "m_nAppID", "fieldtype": "AppId_t"}]} -,{"struct": "SteamAppUninstalled_t","fields": [ -{ "fieldname": "m_nAppID", "fieldtype": "AppId_t"}]} -,{"struct": "HTML_BrowserReady_t","fields": [ -{ "fieldname": "unBrowserHandle", "fieldtype": "HHTMLBrowser"}]} -,{"struct": "HTML_NeedsPaint_t","fields": [ -{ "fieldname": "unBrowserHandle", "fieldtype": "HHTMLBrowser"}, -{ "fieldname": "pBGRA", "fieldtype": "const char *"}, -{ "fieldname": "unWide", "fieldtype": "uint32"}, -{ "fieldname": "unTall", "fieldtype": "uint32"}, -{ "fieldname": "unUpdateX", "fieldtype": "uint32"}, -{ "fieldname": "unUpdateY", "fieldtype": "uint32"}, -{ "fieldname": "unUpdateWide", "fieldtype": "uint32"}, -{ "fieldname": "unUpdateTall", "fieldtype": "uint32"}, -{ "fieldname": "unScrollX", "fieldtype": "uint32"}, -{ "fieldname": "unScrollY", "fieldtype": "uint32"}, -{ "fieldname": "flPageScale", "fieldtype": "float"}, -{ "fieldname": "unPageSerial", "fieldtype": "uint32"}]} -,{"struct": "HTML_StartRequest_t","fields": [ -{ "fieldname": "unBrowserHandle", "fieldtype": "HHTMLBrowser"}, -{ "fieldname": "pchURL", "fieldtype": "const char *"}, -{ "fieldname": "pchTarget", "fieldtype": "const char *"}, -{ "fieldname": "pchPostData", "fieldtype": "const char *"}, -{ "fieldname": "bIsRedirect", "fieldtype": "_Bool"}]} -,{"struct": "HTML_CloseBrowser_t","fields": [ -{ "fieldname": "unBrowserHandle", "fieldtype": "HHTMLBrowser"}]} -,{"struct": "HTML_URLChanged_t","fields": [ -{ "fieldname": "unBrowserHandle", "fieldtype": "HHTMLBrowser"}, -{ "fieldname": "pchURL", "fieldtype": "const char *"}, -{ "fieldname": "pchPostData", "fieldtype": "const char *"}, -{ "fieldname": "bIsRedirect", "fieldtype": "_Bool"}, -{ "fieldname": "pchPageTitle", "fieldtype": "const char *"}, -{ "fieldname": "bNewNavigation", "fieldtype": "_Bool"}]} -,{"struct": "HTML_FinishedRequest_t","fields": [ -{ "fieldname": "unBrowserHandle", "fieldtype": "HHTMLBrowser"}, -{ "fieldname": "pchURL", "fieldtype": "const char *"}, -{ "fieldname": "pchPageTitle", "fieldtype": "const char *"}]} -,{"struct": "HTML_OpenLinkInNewTab_t","fields": [ -{ "fieldname": "unBrowserHandle", "fieldtype": "HHTMLBrowser"}, -{ "fieldname": "pchURL", "fieldtype": "const char *"}]} -,{"struct": "HTML_ChangedTitle_t","fields": [ -{ "fieldname": "unBrowserHandle", "fieldtype": "HHTMLBrowser"}, -{ "fieldname": "pchTitle", "fieldtype": "const char *"}]} -,{"struct": "HTML_SearchResults_t","fields": [ -{ "fieldname": "unBrowserHandle", "fieldtype": "HHTMLBrowser"}, -{ "fieldname": "unResults", "fieldtype": "uint32"}, -{ "fieldname": "unCurrentMatch", "fieldtype": "uint32"}]} -,{"struct": "HTML_CanGoBackAndForward_t","fields": [ -{ "fieldname": "unBrowserHandle", "fieldtype": "HHTMLBrowser"}, -{ "fieldname": "bCanGoBack", "fieldtype": "_Bool"}, -{ "fieldname": "bCanGoForward", "fieldtype": "_Bool"}]} -,{"struct": "HTML_HorizontalScroll_t","fields": [ -{ "fieldname": "unBrowserHandle", "fieldtype": "HHTMLBrowser"}, -{ "fieldname": "unScrollMax", "fieldtype": "uint32"}, -{ "fieldname": "unScrollCurrent", "fieldtype": "uint32"}, -{ "fieldname": "flPageScale", "fieldtype": "float"}, -{ "fieldname": "bVisible", "fieldtype": "_Bool"}, -{ "fieldname": "unPageSize", "fieldtype": "uint32"}]} -,{"struct": "HTML_VerticalScroll_t","fields": [ -{ "fieldname": "unBrowserHandle", "fieldtype": "HHTMLBrowser"}, -{ "fieldname": "unScrollMax", "fieldtype": "uint32"}, -{ "fieldname": "unScrollCurrent", "fieldtype": "uint32"}, -{ "fieldname": "flPageScale", "fieldtype": "float"}, -{ "fieldname": "bVisible", "fieldtype": "_Bool"}, -{ "fieldname": "unPageSize", "fieldtype": "uint32"}]} -,{"struct": "HTML_LinkAtPosition_t","fields": [ -{ "fieldname": "unBrowserHandle", "fieldtype": "HHTMLBrowser"}, -{ "fieldname": "x", "fieldtype": "uint32"}, -{ "fieldname": "y", "fieldtype": "uint32"}, -{ "fieldname": "pchURL", "fieldtype": "const char *"}, -{ "fieldname": "bInput", "fieldtype": "_Bool"}, -{ "fieldname": "bLiveLink", "fieldtype": "_Bool"}]} -,{"struct": "HTML_JSAlert_t","fields": [ -{ "fieldname": "unBrowserHandle", "fieldtype": "HHTMLBrowser"}, -{ "fieldname": "pchMessage", "fieldtype": "const char *"}]} -,{"struct": "HTML_JSConfirm_t","fields": [ -{ "fieldname": "unBrowserHandle", "fieldtype": "HHTMLBrowser"}, -{ "fieldname": "pchMessage", "fieldtype": "const char *"}]} -,{"struct": "HTML_FileOpenDialog_t","fields": [ -{ "fieldname": "unBrowserHandle", "fieldtype": "HHTMLBrowser"}, -{ "fieldname": "pchTitle", "fieldtype": "const char *"}, -{ "fieldname": "pchInitialFile", "fieldtype": "const char *"}]} -,{"struct": "HTML_NewWindow_t","fields": [ -{ "fieldname": "unBrowserHandle", "fieldtype": "HHTMLBrowser"}, -{ "fieldname": "pchURL", "fieldtype": "const char *"}, -{ "fieldname": "unX", "fieldtype": "uint32"}, -{ "fieldname": "unY", "fieldtype": "uint32"}, -{ "fieldname": "unWide", "fieldtype": "uint32"}, -{ "fieldname": "unTall", "fieldtype": "uint32"}, -{ "fieldname": "unNewWindow_BrowserHandle", "fieldtype": "HHTMLBrowser"}]} -,{"struct": "HTML_SetCursor_t","fields": [ -{ "fieldname": "unBrowserHandle", "fieldtype": "HHTMLBrowser"}, -{ "fieldname": "eMouseCursor", "fieldtype": "uint32"}]} -,{"struct": "HTML_StatusText_t","fields": [ -{ "fieldname": "unBrowserHandle", "fieldtype": "HHTMLBrowser"}, -{ "fieldname": "pchMsg", "fieldtype": "const char *"}]} -,{"struct": "HTML_ShowToolTip_t","fields": [ -{ "fieldname": "unBrowserHandle", "fieldtype": "HHTMLBrowser"}, -{ "fieldname": "pchMsg", "fieldtype": "const char *"}]} -,{"struct": "HTML_UpdateToolTip_t","fields": [ -{ "fieldname": "unBrowserHandle", "fieldtype": "HHTMLBrowser"}, -{ "fieldname": "pchMsg", "fieldtype": "const char *"}]} -,{"struct": "HTML_HideToolTip_t","fields": [ -{ "fieldname": "unBrowserHandle", "fieldtype": "HHTMLBrowser"}]} -,{"struct": "SteamItemDetails_t","fields": [ -{ "fieldname": "m_itemId", "fieldtype": "SteamItemInstanceID_t"}, -{ "fieldname": "m_iDefinition", "fieldtype": "SteamItemDef_t"}, -{ "fieldname": "m_unQuantity", "fieldtype": "uint16"}, -{ "fieldname": "m_unFlags", "fieldtype": "uint16"}]} -,{"struct": "SteamInventoryResultReady_t","fields": [ -{ "fieldname": "m_handle", "fieldtype": "SteamInventoryResult_t"}, -{ "fieldname": "m_result", "fieldtype": "enum EResult"}]} -,{"struct": "SteamInventoryFullUpdate_t","fields": [ -{ "fieldname": "m_handle", "fieldtype": "SteamInventoryResult_t"}]} -,{"struct": "BroadcastUploadStop_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EBroadcastUploadResult"}]} -,{"struct": "GetVideoURLResult_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_unVideoAppID", "fieldtype": "AppId_t"}, -{ "fieldname": "m_rgchURL", "fieldtype": "char [256]"}]} -,{"struct": "CCallbackBase","fields": [ -{ "fieldname": "m_nCallbackFlags", "fieldtype": "uint8"}, -{ "fieldname": "m_iCallback", "fieldtype": "int"}]} -,{"struct": "CCallResult","fields": [ -{ "fieldname": "m_hAPICall", "fieldtype": "SteamAPICall_t"}, -{ "fieldname": "m_pObj", "fieldtype": "T *"}, -{ "fieldname": "m_Func", "fieldtype": "func_t"}]} -,{"struct": "CCallback","fields": [ -{ "fieldname": "m_pObj", "fieldtype": "T *"}, -{ "fieldname": "m_Func", "fieldtype": "func_t"}]} -,{"struct": "CSteamAPIContext","fields": [ -{ "fieldname": "m_pSteamUser", "fieldtype": "class ISteamUser *"}, -{ "fieldname": "m_pSteamFriends", "fieldtype": "class ISteamFriends *"}, -{ "fieldname": "m_pSteamUtils", "fieldtype": "class ISteamUtils *"}, -{ "fieldname": "m_pSteamMatchmaking", "fieldtype": "class ISteamMatchmaking *"}, -{ "fieldname": "m_pSteamUserStats", "fieldtype": "class ISteamUserStats *"}, -{ "fieldname": "m_pSteamApps", "fieldtype": "class ISteamApps *"}, -{ "fieldname": "m_pSteamMatchmakingServers", "fieldtype": "class ISteamMatchmakingServers *"}, -{ "fieldname": "m_pSteamNetworking", "fieldtype": "class ISteamNetworking *"}, -{ "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 *"}, -{ "fieldname": "m_pSteamMusic", "fieldtype": "class ISteamMusic *"}, -{ "fieldname": "m_pSteamMusicRemote", "fieldtype": "class ISteamMusicRemote *"}, -{ "fieldname": "m_pSteamHTMLSurface", "fieldtype": "class ISteamHTMLSurface *"}, -{ "fieldname": "m_pSteamInventory", "fieldtype": "class ISteamInventory *"}, -{ "fieldname": "m_pSteamVideo", "fieldtype": "class ISteamVideo *"}]} -,{"struct": "GSClientApprove_t","fields": [ -{ "fieldname": "m_SteamID", "fieldtype": "class CSteamID"}, -{ "fieldname": "m_OwnerSteamID", "fieldtype": "class CSteamID"}]} -,{"struct": "GSClientDeny_t","fields": [ -{ "fieldname": "m_SteamID", "fieldtype": "class CSteamID"}, -{ "fieldname": "m_eDenyReason", "fieldtype": "enum EDenyReason"}, -{ "fieldname": "m_rgchOptionalText", "fieldtype": "char [128]"}]} -,{"struct": "GSClientKick_t","fields": [ -{ "fieldname": "m_SteamID", "fieldtype": "class CSteamID"}, -{ "fieldname": "m_eDenyReason", "fieldtype": "enum EDenyReason"}]} -,{"struct": "GSClientAchievementStatus_t","fields": [ -{ "fieldname": "m_SteamID", "fieldtype": "uint64"}, -{ "fieldname": "m_pchAchievement", "fieldtype": "char [128]"}, -{ "fieldname": "m_bUnlocked", "fieldtype": "_Bool"}]} -,{"struct": "GSPolicyResponse_t","fields": [ -{ "fieldname": "m_bSecure", "fieldtype": "uint8"}]} -,{"struct": "GSGameplayStats_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_nRank", "fieldtype": "int32"}, -{ "fieldname": "m_unTotalConnects", "fieldtype": "uint32"}, -{ "fieldname": "m_unTotalMinutesPlayed", "fieldtype": "uint32"}]} -,{"struct": "GSClientGroupStatus_t","fields": [ -{ "fieldname": "m_SteamIDUser", "fieldtype": "class CSteamID"}, -{ "fieldname": "m_SteamIDGroup", "fieldtype": "class CSteamID"}, -{ "fieldname": "m_bMember", "fieldtype": "_Bool"}, -{ "fieldname": "m_bOfficer", "fieldtype": "_Bool"}]} -,{"struct": "GSReputation_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_unReputationScore", "fieldtype": "uint32"}, -{ "fieldname": "m_bBanned", "fieldtype": "_Bool"}, -{ "fieldname": "m_unBannedIP", "fieldtype": "uint32"}, -{ "fieldname": "m_usBannedPort", "fieldtype": "uint16"}, -{ "fieldname": "m_ulBannedGameID", "fieldtype": "uint64"}, -{ "fieldname": "m_unBanExpires", "fieldtype": "uint32"}]} -,{"struct": "AssociateWithClanResult_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}]} -,{"struct": "ComputeNewPlayerCompatibilityResult_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_cPlayersThatDontLikeCandidate", "fieldtype": "int"}, -{ "fieldname": "m_cPlayersThatCandidateDoesntLike", "fieldtype": "int"}, -{ "fieldname": "m_cClanPlayersThatDontLikeCandidate", "fieldtype": "int"}, -{ "fieldname": "m_SteamIDCandidate", "fieldtype": "class CSteamID"}]} -,{"struct": "GSStatsReceived_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_steamIDUser", "fieldtype": "class CSteamID"}]} -,{"struct": "GSStatsStored_t","fields": [ -{ "fieldname": "m_eResult", "fieldtype": "enum EResult"}, -{ "fieldname": "m_steamIDUser", "fieldtype": "class CSteamID"}]} -,{"struct": "GSStatsUnloaded_t","fields": [ -{ "fieldname": "m_steamIDUser", "fieldtype": "class CSteamID"}]} -], -"methods":[{ - "classname": "ISteamClient", - "methodname": "CreateSteamPipe", - "returntype": "HSteamPipe" -} -,{ - "classname": "ISteamClient", - "methodname": "BReleaseSteamPipe", - "returntype": "bool", - "params": [ -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "ConnectToGlobalUser", - "returntype": "HSteamUser", - "params": [ -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "CreateLocalUser", - "returntype": "HSteamUser", - "params": [ -{ "paramname": "phSteamPipe" ,"paramtype": "HSteamPipe *"}, -{ "paramname": "eAccountType" ,"paramtype": "EAccountType"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "ReleaseUser", - "returntype": "void", - "params": [ -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"}, -{ "paramname": "hUser" ,"paramtype": "HSteamUser"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "GetISteamUser", - "returntype": "class ISteamUser *", - "params": [ -{ "paramname": "hSteamUser" ,"paramtype": "HSteamUser"}, -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"}, -{ "paramname": "pchVersion" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "GetISteamGameServer", - "returntype": "class ISteamGameServer *", - "params": [ -{ "paramname": "hSteamUser" ,"paramtype": "HSteamUser"}, -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"}, -{ "paramname": "pchVersion" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "SetLocalIPBinding", - "returntype": "void", - "params": [ -{ "paramname": "unIP" ,"paramtype": "uint32"}, -{ "paramname": "usPort" ,"paramtype": "uint16"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "GetISteamFriends", - "returntype": "class ISteamFriends *", - "params": [ -{ "paramname": "hSteamUser" ,"paramtype": "HSteamUser"}, -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"}, -{ "paramname": "pchVersion" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "GetISteamUtils", - "returntype": "class ISteamUtils *", - "params": [ -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"}, -{ "paramname": "pchVersion" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "GetISteamMatchmaking", - "returntype": "class ISteamMatchmaking *", - "params": [ -{ "paramname": "hSteamUser" ,"paramtype": "HSteamUser"}, -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"}, -{ "paramname": "pchVersion" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "GetISteamMatchmakingServers", - "returntype": "class ISteamMatchmakingServers *", - "params": [ -{ "paramname": "hSteamUser" ,"paramtype": "HSteamUser"}, -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"}, -{ "paramname": "pchVersion" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "GetISteamGenericInterface", - "returntype": "void *", - "params": [ -{ "paramname": "hSteamUser" ,"paramtype": "HSteamUser"}, -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"}, -{ "paramname": "pchVersion" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "GetISteamUserStats", - "returntype": "class ISteamUserStats *", - "params": [ -{ "paramname": "hSteamUser" ,"paramtype": "HSteamUser"}, -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"}, -{ "paramname": "pchVersion" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "GetISteamGameServerStats", - "returntype": "class ISteamGameServerStats *", - "params": [ -{ "paramname": "hSteamuser" ,"paramtype": "HSteamUser"}, -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"}, -{ "paramname": "pchVersion" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "GetISteamApps", - "returntype": "class ISteamApps *", - "params": [ -{ "paramname": "hSteamUser" ,"paramtype": "HSteamUser"}, -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"}, -{ "paramname": "pchVersion" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "GetISteamNetworking", - "returntype": "class ISteamNetworking *", - "params": [ -{ "paramname": "hSteamUser" ,"paramtype": "HSteamUser"}, -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"}, -{ "paramname": "pchVersion" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "GetISteamRemoteStorage", - "returntype": "class ISteamRemoteStorage *", - "params": [ -{ "paramname": "hSteamuser" ,"paramtype": "HSteamUser"}, -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"}, -{ "paramname": "pchVersion" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "GetISteamScreenshots", - "returntype": "class ISteamScreenshots *", - "params": [ -{ "paramname": "hSteamuser" ,"paramtype": "HSteamUser"}, -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"}, -{ "paramname": "pchVersion" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "RunFrame", - "returntype": "void" -} -,{ - "classname": "ISteamClient", - "methodname": "GetIPCCallCount", - "returntype": "uint32" -} -,{ - "classname": "ISteamClient", - "methodname": "SetWarningMessageHook", - "returntype": "void", - "params": [ -{ "paramname": "pFunction" ,"paramtype": "SteamAPIWarningMessageHook_t"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "BShutdownIfAllPipesClosed", - "returntype": "bool" -} -,{ - "classname": "ISteamClient", - "methodname": "GetISteamHTTP", - "returntype": "class ISteamHTTP *", - "params": [ -{ "paramname": "hSteamuser" ,"paramtype": "HSteamUser"}, -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"}, -{ "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", - "returntype": "class ISteamController *", - "params": [ -{ "paramname": "hSteamUser" ,"paramtype": "HSteamUser"}, -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"}, -{ "paramname": "pchVersion" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "GetISteamUGC", - "returntype": "class ISteamUGC *", - "params": [ -{ "paramname": "hSteamUser" ,"paramtype": "HSteamUser"}, -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"}, -{ "paramname": "pchVersion" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "GetISteamAppList", - "returntype": "class ISteamAppList *", - "params": [ -{ "paramname": "hSteamUser" ,"paramtype": "HSteamUser"}, -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"}, -{ "paramname": "pchVersion" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "GetISteamMusic", - "returntype": "class ISteamMusic *", - "params": [ -{ "paramname": "hSteamuser" ,"paramtype": "HSteamUser"}, -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"}, -{ "paramname": "pchVersion" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "GetISteamMusicRemote", - "returntype": "class ISteamMusicRemote *", - "params": [ -{ "paramname": "hSteamuser" ,"paramtype": "HSteamUser"}, -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"}, -{ "paramname": "pchVersion" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "GetISteamHTMLSurface", - "returntype": "class ISteamHTMLSurface *", - "params": [ -{ "paramname": "hSteamuser" ,"paramtype": "HSteamUser"}, -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"}, -{ "paramname": "pchVersion" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "Set_SteamAPI_CPostAPIResultInProcess", - "returntype": "void", - "params": [ -{ "paramname": "func" ,"paramtype": "SteamAPI_PostAPIResultInProcess_t"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "Remove_SteamAPI_CPostAPIResultInProcess", - "returntype": "void", - "params": [ -{ "paramname": "func" ,"paramtype": "SteamAPI_PostAPIResultInProcess_t"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "Set_SteamAPI_CCheckCallbackRegisteredInProcess", - "returntype": "void", - "params": [ -{ "paramname": "func" ,"paramtype": "SteamAPI_CheckCallbackRegistered_t"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "GetISteamInventory", - "returntype": "class ISteamInventory *", - "params": [ -{ "paramname": "hSteamuser" ,"paramtype": "HSteamUser"}, -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"}, -{ "paramname": "pchVersion" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamClient", - "methodname": "GetISteamVideo", - "returntype": "class ISteamVideo *", - "params": [ -{ "paramname": "hSteamuser" ,"paramtype": "HSteamUser"}, -{ "paramname": "hSteamPipe" ,"paramtype": "HSteamPipe"}, -{ "paramname": "pchVersion" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamUser", - "methodname": "GetHSteamUser", - "returntype": "HSteamUser" -} -,{ - "classname": "ISteamUser", - "methodname": "BLoggedOn", - "returntype": "bool" -} -,{ - "classname": "ISteamUser", - "methodname": "GetSteamID", - "returntype": "class CSteamID" -} -,{ - "classname": "ISteamUser", - "methodname": "InitiateGameConnection", - "returntype": "int", - "params": [ -{ "paramname": "pAuthBlob" ,"paramtype": "void *"}, -{ "paramname": "cbMaxAuthBlob" ,"paramtype": "int"}, -{ "paramname": "steamIDGameServer" ,"paramtype": "class CSteamID"}, -{ "paramname": "unIPServer" ,"paramtype": "uint32"}, -{ "paramname": "usPortServer" ,"paramtype": "uint16"}, -{ "paramname": "bSecure" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamUser", - "methodname": "TerminateGameConnection", - "returntype": "void", - "params": [ -{ "paramname": "unIPServer" ,"paramtype": "uint32"}, -{ "paramname": "usPortServer" ,"paramtype": "uint16"} - ] -} -,{ - "classname": "ISteamUser", - "methodname": "TrackAppUsageEvent", - "returntype": "void", - "params": [ -{ "paramname": "gameID" ,"paramtype": "class CGameID"}, -{ "paramname": "eAppUsageEvent" ,"paramtype": "int"}, -{ "paramname": "pchExtraInfo" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamUser", - "methodname": "GetUserDataFolder", - "returntype": "bool", - "params": [ -{ "paramname": "pchBuffer" ,"paramtype": "char *"}, -{ "paramname": "cubBuffer" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamUser", - "methodname": "StartVoiceRecording", - "returntype": "void" -} -,{ - "classname": "ISteamUser", - "methodname": "StopVoiceRecording", - "returntype": "void" -} -,{ - "classname": "ISteamUser", - "methodname": "GetAvailableVoice", - "returntype": "EVoiceResult", - "params": [ -{ "paramname": "pcbCompressed" ,"paramtype": "uint32 *"}, -{ "paramname": "pcbUncompressed" ,"paramtype": "uint32 *"}, -{ "paramname": "nUncompressedVoiceDesiredSampleRate" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamUser", - "methodname": "GetVoice", - "returntype": "EVoiceResult", - "params": [ -{ "paramname": "bWantCompressed" ,"paramtype": "bool"}, -{ "paramname": "pDestBuffer" ,"paramtype": "void *"}, -{ "paramname": "cbDestBufferSize" ,"paramtype": "uint32"}, -{ "paramname": "nBytesWritten" ,"paramtype": "uint32 *"}, -{ "paramname": "bWantUncompressed" ,"paramtype": "bool"}, -{ "paramname": "pUncompressedDestBuffer" ,"paramtype": "void *"}, -{ "paramname": "cbUncompressedDestBufferSize" ,"paramtype": "uint32"}, -{ "paramname": "nUncompressBytesWritten" ,"paramtype": "uint32 *"}, -{ "paramname": "nUncompressedVoiceDesiredSampleRate" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamUser", - "methodname": "DecompressVoice", - "returntype": "EVoiceResult", - "params": [ -{ "paramname": "pCompressed" ,"paramtype": "const void *"}, -{ "paramname": "cbCompressed" ,"paramtype": "uint32"}, -{ "paramname": "pDestBuffer" ,"paramtype": "void *"}, -{ "paramname": "cbDestBufferSize" ,"paramtype": "uint32"}, -{ "paramname": "nBytesWritten" ,"paramtype": "uint32 *"}, -{ "paramname": "nDesiredSampleRate" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamUser", - "methodname": "GetVoiceOptimalSampleRate", - "returntype": "uint32" -} -,{ - "classname": "ISteamUser", - "methodname": "GetAuthSessionTicket", - "returntype": "HAuthTicket", - "params": [ -{ "paramname": "pTicket" ,"paramtype": "void *"}, -{ "paramname": "cbMaxTicket" ,"paramtype": "int"}, -{ "paramname": "pcbTicket" ,"paramtype": "uint32 *"} - ] -} -,{ - "classname": "ISteamUser", - "methodname": "BeginAuthSession", - "returntype": "EBeginAuthSessionResult", - "params": [ -{ "paramname": "pAuthTicket" ,"paramtype": "const void *"}, -{ "paramname": "cbAuthTicket" ,"paramtype": "int"}, -{ "paramname": "steamID" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamUser", - "methodname": "EndAuthSession", - "returntype": "void", - "params": [ -{ "paramname": "steamID" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamUser", - "methodname": "CancelAuthTicket", - "returntype": "void", - "params": [ -{ "paramname": "hAuthTicket" ,"paramtype": "HAuthTicket"} - ] -} -,{ - "classname": "ISteamUser", - "methodname": "UserHasLicenseForApp", - "returntype": "EUserHasLicenseForAppResult", - "params": [ -{ "paramname": "steamID" ,"paramtype": "class CSteamID"}, -{ "paramname": "appID" ,"paramtype": "AppId_t"} - ] -} -,{ - "classname": "ISteamUser", - "methodname": "BIsBehindNAT", - "returntype": "bool" -} -,{ - "classname": "ISteamUser", - "methodname": "AdvertiseGame", - "returntype": "void", - "params": [ -{ "paramname": "steamIDGameServer" ,"paramtype": "class CSteamID"}, -{ "paramname": "unIPServer" ,"paramtype": "uint32"}, -{ "paramname": "usPortServer" ,"paramtype": "uint16"} - ] -} -,{ - "classname": "ISteamUser", - "methodname": "RequestEncryptedAppTicket", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "pDataToInclude" ,"paramtype": "void *"}, -{ "paramname": "cbDataToInclude" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamUser", - "methodname": "GetEncryptedAppTicket", - "returntype": "bool", - "params": [ -{ "paramname": "pTicket" ,"paramtype": "void *"}, -{ "paramname": "cbMaxTicket" ,"paramtype": "int"}, -{ "paramname": "pcbTicket" ,"paramtype": "uint32 *"} - ] -} -,{ - "classname": "ISteamUser", - "methodname": "GetGameBadgeLevel", - "returntype": "int", - "params": [ -{ "paramname": "nSeries" ,"paramtype": "int"}, -{ "paramname": "bFoil" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamUser", - "methodname": "GetPlayerSteamLevel", - "returntype": "int" -} -,{ - "classname": "ISteamUser", - "methodname": "RequestStoreAuthURL", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "pchRedirectURL" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetPersonaName", - "returntype": "const char *" -} -,{ - "classname": "ISteamFriends", - "methodname": "SetPersonaName", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "pchPersonaName" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetPersonaState", - "returntype": "EPersonaState" -} -,{ - "classname": "ISteamFriends", - "methodname": "GetFriendCount", - "returntype": "int", - "params": [ -{ "paramname": "iFriendFlags" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetFriendByIndex", - "returntype": "class CSteamID", - "params": [ -{ "paramname": "iFriend" ,"paramtype": "int"}, -{ "paramname": "iFriendFlags" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetFriendRelationship", - "returntype": "EFriendRelationship", - "params": [ -{ "paramname": "steamIDFriend" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetFriendPersonaState", - "returntype": "EPersonaState", - "params": [ -{ "paramname": "steamIDFriend" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetFriendPersonaName", - "returntype": "const char *", - "params": [ -{ "paramname": "steamIDFriend" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetFriendGamePlayed", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDFriend" ,"paramtype": "class CSteamID"}, -{ "paramname": "pFriendGameInfo" ,"out_struct": " " ,"paramtype": "struct FriendGameInfo_t *"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetFriendPersonaNameHistory", - "returntype": "const char *", - "params": [ -{ "paramname": "steamIDFriend" ,"paramtype": "class CSteamID"}, -{ "paramname": "iPersonaName" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetFriendSteamLevel", - "returntype": "int", - "params": [ -{ "paramname": "steamIDFriend" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetPlayerNickname", - "returntype": "const char *", - "params": [ -{ "paramname": "steamIDPlayer" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetFriendsGroupCount", - "returntype": "int" -} -,{ - "classname": "ISteamFriends", - "methodname": "GetFriendsGroupIDByIndex", - "returntype": "FriendsGroupID_t", - "params": [ -{ "paramname": "iFG" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetFriendsGroupName", - "returntype": "const char *", - "params": [ -{ "paramname": "friendsGroupID" ,"paramtype": "FriendsGroupID_t"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetFriendsGroupMembersCount", - "returntype": "int", - "params": [ -{ "paramname": "friendsGroupID" ,"paramtype": "FriendsGroupID_t"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetFriendsGroupMembersList", - "returntype": "void", - "params": [ -{ "paramname": "friendsGroupID" ,"paramtype": "FriendsGroupID_t"}, -{ "paramname": "pOutSteamIDMembers" ,"out_array_call": "nMembersCount,GetFriendsGroupMembersCount,friendsGroupID" ,"paramtype": "class CSteamID *"}, -{ "paramname": "nMembersCount" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "HasFriend", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDFriend" ,"paramtype": "class CSteamID"}, -{ "paramname": "iFriendFlags" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetClanCount", - "returntype": "int" -} -,{ - "classname": "ISteamFriends", - "methodname": "GetClanByIndex", - "returntype": "class CSteamID", - "params": [ -{ "paramname": "iClan" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetClanName", - "returntype": "const char *", - "params": [ -{ "paramname": "steamIDClan" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetClanTag", - "returntype": "const char *", - "params": [ -{ "paramname": "steamIDClan" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetClanActivityCounts", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDClan" ,"paramtype": "class CSteamID"}, -{ "paramname": "pnOnline" ,"paramtype": "int *"}, -{ "paramname": "pnInGame" ,"paramtype": "int *"}, -{ "paramname": "pnChatting" ,"paramtype": "int *"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "DownloadClanActivityCounts", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "psteamIDClans" ,"array_count": "cClansToRequest" ,"paramtype": "class CSteamID *"}, -{ "paramname": "cClansToRequest" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetFriendCountFromSource", - "returntype": "int", - "params": [ -{ "paramname": "steamIDSource" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetFriendFromSourceByIndex", - "returntype": "class CSteamID", - "params": [ -{ "paramname": "steamIDSource" ,"paramtype": "class CSteamID"}, -{ "paramname": "iFriend" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "IsUserInSource", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDUser" ,"paramtype": "class CSteamID"}, -{ "paramname": "steamIDSource" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "SetInGameVoiceSpeaking", - "returntype": "void", - "params": [ -{ "paramname": "steamIDUser" ,"paramtype": "class CSteamID"}, -{ "paramname": "bSpeaking" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "ActivateGameOverlay", - "returntype": "void", - "params": [ -{ "paramname": "pchDialog" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "ActivateGameOverlayToUser", - "returntype": "void", - "params": [ -{ "paramname": "pchDialog" ,"paramtype": "const char *"}, -{ "paramname": "steamID" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "ActivateGameOverlayToWebPage", - "returntype": "void", - "params": [ -{ "paramname": "pchURL" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "ActivateGameOverlayToStore", - "returntype": "void", - "params": [ -{ "paramname": "nAppID" ,"paramtype": "AppId_t"}, -{ "paramname": "eFlag" ,"paramtype": "EOverlayToStoreFlag"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "SetPlayedWith", - "returntype": "void", - "params": [ -{ "paramname": "steamIDUserPlayedWith" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "ActivateGameOverlayInviteDialog", - "returntype": "void", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetSmallFriendAvatar", - "returntype": "int", - "params": [ -{ "paramname": "steamIDFriend" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetMediumFriendAvatar", - "returntype": "int", - "params": [ -{ "paramname": "steamIDFriend" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetLargeFriendAvatar", - "returntype": "int", - "params": [ -{ "paramname": "steamIDFriend" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "RequestUserInformation", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDUser" ,"paramtype": "class CSteamID"}, -{ "paramname": "bRequireNameOnly" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "RequestClanOfficerList", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "steamIDClan" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetClanOwner", - "returntype": "class CSteamID", - "params": [ -{ "paramname": "steamIDClan" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetClanOfficerCount", - "returntype": "int", - "params": [ -{ "paramname": "steamIDClan" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetClanOfficerByIndex", - "returntype": "class CSteamID", - "params": [ -{ "paramname": "steamIDClan" ,"paramtype": "class CSteamID"}, -{ "paramname": "iOfficer" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetUserRestrictions", - "returntype": "uint32" -} -,{ - "classname": "ISteamFriends", - "methodname": "SetRichPresence", - "returntype": "bool", - "params": [ -{ "paramname": "pchKey" ,"paramtype": "const char *"}, -{ "paramname": "pchValue" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "ClearRichPresence", - "returntype": "void" -} -,{ - "classname": "ISteamFriends", - "methodname": "GetFriendRichPresence", - "returntype": "const char *", - "params": [ -{ "paramname": "steamIDFriend" ,"paramtype": "class CSteamID"}, -{ "paramname": "pchKey" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetFriendRichPresenceKeyCount", - "returntype": "int", - "params": [ -{ "paramname": "steamIDFriend" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetFriendRichPresenceKeyByIndex", - "returntype": "const char *", - "params": [ -{ "paramname": "steamIDFriend" ,"paramtype": "class CSteamID"}, -{ "paramname": "iKey" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "RequestFriendRichPresence", - "returntype": "void", - "params": [ -{ "paramname": "steamIDFriend" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "InviteUserToGame", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDFriend" ,"paramtype": "class CSteamID"}, -{ "paramname": "pchConnectString" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetCoplayFriendCount", - "returntype": "int" -} -,{ - "classname": "ISteamFriends", - "methodname": "GetCoplayFriend", - "returntype": "class CSteamID", - "params": [ -{ "paramname": "iCoplayFriend" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetFriendCoplayTime", - "returntype": "int", - "params": [ -{ "paramname": "steamIDFriend" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetFriendCoplayGame", - "returntype": "AppId_t", - "params": [ -{ "paramname": "steamIDFriend" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "JoinClanChatRoom", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "steamIDClan" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "LeaveClanChatRoom", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDClan" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetClanChatMemberCount", - "returntype": "int", - "params": [ -{ "paramname": "steamIDClan" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetChatMemberByIndex", - "returntype": "class CSteamID", - "params": [ -{ "paramname": "steamIDClan" ,"paramtype": "class CSteamID"}, -{ "paramname": "iUser" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "SendClanChatMessage", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDClanChat" ,"paramtype": "class CSteamID"}, -{ "paramname": "pchText" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetClanChatMessage", - "returntype": "int", - "params": [ -{ "paramname": "steamIDClanChat" ,"paramtype": "class CSteamID"}, -{ "paramname": "iMessage" ,"paramtype": "int"}, -{ "paramname": "prgchText" ,"paramtype": "void *"}, -{ "paramname": "cchTextMax" ,"paramtype": "int"}, -{ "paramname": "peChatEntryType" ,"paramtype": "EChatEntryType *"}, -{ "paramname": "psteamidChatter" ,"out_struct": " " ,"paramtype": "class CSteamID *"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "IsClanChatAdmin", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDClanChat" ,"paramtype": "class CSteamID"}, -{ "paramname": "steamIDUser" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "IsClanChatWindowOpenInSteam", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDClanChat" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "OpenClanChatWindowInSteam", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDClanChat" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "CloseClanChatWindowInSteam", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDClanChat" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "SetListenForFriendsMessages", - "returntype": "bool", - "params": [ -{ "paramname": "bInterceptEnabled" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "ReplyToFriendMessage", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDFriend" ,"paramtype": "class CSteamID"}, -{ "paramname": "pchMsgToSend" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetFriendMessage", - "returntype": "int", - "params": [ -{ "paramname": "steamIDFriend" ,"paramtype": "class CSteamID"}, -{ "paramname": "iMessageID" ,"paramtype": "int"}, -{ "paramname": "pvData" ,"paramtype": "void *"}, -{ "paramname": "cubData" ,"paramtype": "int"}, -{ "paramname": "peChatEntryType" ,"paramtype": "EChatEntryType *"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "GetFollowerCount", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "steamID" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "IsFollowing", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "steamID" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamFriends", - "methodname": "EnumerateFollowingList", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "unStartIndex" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamUtils", - "methodname": "GetSecondsSinceAppActive", - "returntype": "uint32" -} -,{ - "classname": "ISteamUtils", - "methodname": "GetSecondsSinceComputerActive", - "returntype": "uint32" -} -,{ - "classname": "ISteamUtils", - "methodname": "GetConnectedUniverse", - "returntype": "EUniverse" -} -,{ - "classname": "ISteamUtils", - "methodname": "GetServerRealTime", - "returntype": "uint32" -} -,{ - "classname": "ISteamUtils", - "methodname": "GetIPCountry", - "returntype": "const char *" -} -,{ - "classname": "ISteamUtils", - "methodname": "GetImageSize", - "returntype": "bool", - "params": [ -{ "paramname": "iImage" ,"paramtype": "int"}, -{ "paramname": "pnWidth" ,"paramtype": "uint32 *"}, -{ "paramname": "pnHeight" ,"paramtype": "uint32 *"} - ] -} -,{ - "classname": "ISteamUtils", - "methodname": "GetImageRGBA", - "returntype": "bool", - "params": [ -{ "paramname": "iImage" ,"paramtype": "int"}, -{ "paramname": "pubDest" ,"paramtype": "uint8 *"}, -{ "paramname": "nDestBufferSize" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamUtils", - "methodname": "GetCSERIPPort", - "returntype": "bool", - "params": [ -{ "paramname": "unIP" ,"paramtype": "uint32 *"}, -{ "paramname": "usPort" ,"paramtype": "uint16 *"} - ] -} -,{ - "classname": "ISteamUtils", - "methodname": "GetCurrentBatteryPower", - "returntype": "uint8" -} -,{ - "classname": "ISteamUtils", - "methodname": "GetAppID", - "returntype": "uint32" -} -,{ - "classname": "ISteamUtils", - "methodname": "SetOverlayNotificationPosition", - "returntype": "void", - "params": [ -{ "paramname": "eNotificationPosition" ,"paramtype": "ENotificationPosition"} - ] -} -,{ - "classname": "ISteamUtils", - "methodname": "IsAPICallCompleted", - "returntype": "bool", - "params": [ -{ "paramname": "hSteamAPICall" ,"paramtype": "SteamAPICall_t"}, -{ "paramname": "pbFailed" ,"paramtype": "bool *"} - ] -} -,{ - "classname": "ISteamUtils", - "methodname": "GetAPICallFailureReason", - "returntype": "ESteamAPICallFailure", - "params": [ -{ "paramname": "hSteamAPICall" ,"paramtype": "SteamAPICall_t"} - ] -} -,{ - "classname": "ISteamUtils", - "methodname": "GetAPICallResult", - "returntype": "bool", - "params": [ -{ "paramname": "hSteamAPICall" ,"paramtype": "SteamAPICall_t"}, -{ "paramname": "pCallback" ,"paramtype": "void *"}, -{ "paramname": "cubCallback" ,"paramtype": "int"}, -{ "paramname": "iCallbackExpected" ,"paramtype": "int"}, -{ "paramname": "pbFailed" ,"paramtype": "bool *"} - ] -} -,{ - "classname": "ISteamUtils", - "methodname": "RunFrame", - "returntype": "void" -} -,{ - "classname": "ISteamUtils", - "methodname": "GetIPCCallCount", - "returntype": "uint32" -} -,{ - "classname": "ISteamUtils", - "methodname": "SetWarningMessageHook", - "returntype": "void", - "params": [ -{ "paramname": "pFunction" ,"paramtype": "SteamAPIWarningMessageHook_t"} - ] -} -,{ - "classname": "ISteamUtils", - "methodname": "IsOverlayEnabled", - "returntype": "bool" -} -,{ - "classname": "ISteamUtils", - "methodname": "BOverlayNeedsPresent", - "returntype": "bool" -} -,{ - "classname": "ISteamUtils", - "methodname": "CheckFileSignature", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "szFileName" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamUtils", - "methodname": "ShowGamepadTextInput", - "returntype": "bool", - "params": [ -{ "paramname": "eInputMode" ,"paramtype": "EGamepadTextInputMode"}, -{ "paramname": "eLineInputMode" ,"paramtype": "EGamepadTextInputLineMode"}, -{ "paramname": "pchDescription" ,"paramtype": "const char *"}, -{ "paramname": "unCharMax" ,"paramtype": "uint32"}, -{ "paramname": "pchExistingText" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamUtils", - "methodname": "GetEnteredGamepadTextLength", - "returntype": "uint32" -} -,{ - "classname": "ISteamUtils", - "methodname": "GetEnteredGamepadTextInput", - "returntype": "bool", - "params": [ -{ "paramname": "pchText" ,"paramtype": "char *"}, -{ "paramname": "cchText" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamUtils", - "methodname": "GetSteamUILanguage", - "returntype": "const char *" -} -,{ - "classname": "ISteamUtils", - "methodname": "IsSteamRunningInVR", - "returntype": "bool" -} -,{ - "classname": "ISteamUtils", - "methodname": "SetOverlayNotificationInset", - "returntype": "void", - "params": [ -{ "paramname": "nHorizontalInset" ,"paramtype": "int"}, -{ "paramname": "nVerticalInset" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "GetFavoriteGameCount", - "returntype": "int" -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "GetFavoriteGame", - "returntype": "bool", - "params": [ -{ "paramname": "iGame" ,"paramtype": "int"}, -{ "paramname": "pnAppID" ,"paramtype": "AppId_t *"}, -{ "paramname": "pnIP" ,"paramtype": "uint32 *"}, -{ "paramname": "pnConnPort" ,"paramtype": "uint16 *"}, -{ "paramname": "pnQueryPort" ,"paramtype": "uint16 *"}, -{ "paramname": "punFlags" ,"paramtype": "uint32 *"}, -{ "paramname": "pRTime32LastPlayedOnServer" ,"paramtype": "uint32 *"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "AddFavoriteGame", - "returntype": "int", - "params": [ -{ "paramname": "nAppID" ,"paramtype": "AppId_t"}, -{ "paramname": "nIP" ,"paramtype": "uint32"}, -{ "paramname": "nConnPort" ,"paramtype": "uint16"}, -{ "paramname": "nQueryPort" ,"paramtype": "uint16"}, -{ "paramname": "unFlags" ,"paramtype": "uint32"}, -{ "paramname": "rTime32LastPlayedOnServer" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "RemoveFavoriteGame", - "returntype": "bool", - "params": [ -{ "paramname": "nAppID" ,"paramtype": "AppId_t"}, -{ "paramname": "nIP" ,"paramtype": "uint32"}, -{ "paramname": "nConnPort" ,"paramtype": "uint16"}, -{ "paramname": "nQueryPort" ,"paramtype": "uint16"}, -{ "paramname": "unFlags" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "RequestLobbyList", - "returntype": "SteamAPICall_t" -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "AddRequestLobbyListStringFilter", - "returntype": "void", - "params": [ -{ "paramname": "pchKeyToMatch" ,"paramtype": "const char *"}, -{ "paramname": "pchValueToMatch" ,"paramtype": "const char *"}, -{ "paramname": "eComparisonType" ,"paramtype": "ELobbyComparison"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "AddRequestLobbyListNumericalFilter", - "returntype": "void", - "params": [ -{ "paramname": "pchKeyToMatch" ,"paramtype": "const char *"}, -{ "paramname": "nValueToMatch" ,"paramtype": "int"}, -{ "paramname": "eComparisonType" ,"paramtype": "ELobbyComparison"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "AddRequestLobbyListNearValueFilter", - "returntype": "void", - "params": [ -{ "paramname": "pchKeyToMatch" ,"paramtype": "const char *"}, -{ "paramname": "nValueToBeCloseTo" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "AddRequestLobbyListFilterSlotsAvailable", - "returntype": "void", - "params": [ -{ "paramname": "nSlotsAvailable" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "AddRequestLobbyListDistanceFilter", - "returntype": "void", - "params": [ -{ "paramname": "eLobbyDistanceFilter" ,"paramtype": "ELobbyDistanceFilter"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "AddRequestLobbyListResultCountFilter", - "returntype": "void", - "params": [ -{ "paramname": "cMaxResults" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "AddRequestLobbyListCompatibleMembersFilter", - "returntype": "void", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "GetLobbyByIndex", - "returntype": "class CSteamID", - "params": [ -{ "paramname": "iLobby" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "CreateLobby", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "eLobbyType" ,"paramtype": "ELobbyType"}, -{ "paramname": "cMaxMembers" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "JoinLobby", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "LeaveLobby", - "returntype": "void", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "InviteUserToLobby", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"}, -{ "paramname": "steamIDInvitee" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "GetNumLobbyMembers", - "returntype": "int", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "GetLobbyMemberByIndex", - "returntype": "class CSteamID", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"}, -{ "paramname": "iMember" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "GetLobbyData", - "returntype": "const char *", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"}, -{ "paramname": "pchKey" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "SetLobbyData", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"}, -{ "paramname": "pchKey" ,"paramtype": "const char *"}, -{ "paramname": "pchValue" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "GetLobbyDataCount", - "returntype": "int", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "GetLobbyDataByIndex", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"}, -{ "paramname": "iLobbyData" ,"paramtype": "int"}, -{ "paramname": "pchKey" ,"paramtype": "char *"}, -{ "paramname": "cchKeyBufferSize" ,"paramtype": "int"}, -{ "paramname": "pchValue" ,"paramtype": "char *"}, -{ "paramname": "cchValueBufferSize" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "DeleteLobbyData", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"}, -{ "paramname": "pchKey" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "GetLobbyMemberData", - "returntype": "const char *", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"}, -{ "paramname": "steamIDUser" ,"paramtype": "class CSteamID"}, -{ "paramname": "pchKey" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "SetLobbyMemberData", - "returntype": "void", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"}, -{ "paramname": "pchKey" ,"paramtype": "const char *"}, -{ "paramname": "pchValue" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "SendLobbyChatMsg", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"}, -{ "paramname": "pvMsgBody" ,"paramtype": "const void *"}, -{ "paramname": "cubMsgBody" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "GetLobbyChatEntry", - "returntype": "int", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"}, -{ "paramname": "iChatID" ,"paramtype": "int"}, -{ "paramname": "pSteamIDUser" ,"out_struct": " " ,"paramtype": "class CSteamID *"}, -{ "paramname": "pvData" ,"paramtype": "void *"}, -{ "paramname": "cubData" ,"paramtype": "int"}, -{ "paramname": "peChatEntryType" ,"paramtype": "EChatEntryType *"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "RequestLobbyData", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "SetLobbyGameServer", - "returntype": "void", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"}, -{ "paramname": "unGameServerIP" ,"paramtype": "uint32"}, -{ "paramname": "unGameServerPort" ,"paramtype": "uint16"}, -{ "paramname": "steamIDGameServer" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "GetLobbyGameServer", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"}, -{ "paramname": "punGameServerIP" ,"paramtype": "uint32 *"}, -{ "paramname": "punGameServerPort" ,"paramtype": "uint16 *"}, -{ "paramname": "psteamIDGameServer" ,"out_struct": " " ,"paramtype": "class CSteamID *"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "SetLobbyMemberLimit", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"}, -{ "paramname": "cMaxMembers" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "GetLobbyMemberLimit", - "returntype": "int", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "SetLobbyType", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"}, -{ "paramname": "eLobbyType" ,"paramtype": "ELobbyType"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "SetLobbyJoinable", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"}, -{ "paramname": "bLobbyJoinable" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "GetLobbyOwner", - "returntype": "class CSteamID", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "SetLobbyOwner", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"}, -{ "paramname": "steamIDNewOwner" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamMatchmaking", - "methodname": "SetLinkedLobby", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDLobby" ,"paramtype": "class CSteamID"}, -{ "paramname": "steamIDLobbyDependent" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamMatchmakingServerListResponse", - "methodname": "ServerResponded", - "returntype": "void", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HServerListRequest"}, -{ "paramname": "iServer" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamMatchmakingServerListResponse", - "methodname": "ServerFailedToRespond", - "returntype": "void", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HServerListRequest"}, -{ "paramname": "iServer" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamMatchmakingServerListResponse", - "methodname": "RefreshComplete", - "returntype": "void", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HServerListRequest"}, -{ "paramname": "response" ,"paramtype": "EMatchMakingServerResponse"} - ] -} -,{ - "classname": "ISteamMatchmakingPingResponse", - "methodname": "ServerResponded", - "returntype": "void", - "params": [ -{ "paramname": "server" ,"paramtype": "class gameserveritem_t &"} - ] -} -,{ - "classname": "ISteamMatchmakingPingResponse", - "methodname": "ServerFailedToRespond", - "returntype": "void" -} -,{ - "classname": "ISteamMatchmakingPlayersResponse", - "methodname": "AddPlayerToList", - "returntype": "void", - "params": [ -{ "paramname": "pchName" ,"paramtype": "const char *"}, -{ "paramname": "nScore" ,"paramtype": "int"}, -{ "paramname": "flTimePlayed" ,"paramtype": "float"} - ] -} -,{ - "classname": "ISteamMatchmakingPlayersResponse", - "methodname": "PlayersFailedToRespond", - "returntype": "void" -} -,{ - "classname": "ISteamMatchmakingPlayersResponse", - "methodname": "PlayersRefreshComplete", - "returntype": "void" -} -,{ - "classname": "ISteamMatchmakingRulesResponse", - "methodname": "RulesResponded", - "returntype": "void", - "params": [ -{ "paramname": "pchRule" ,"paramtype": "const char *"}, -{ "paramname": "pchValue" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamMatchmakingRulesResponse", - "methodname": "RulesFailedToRespond", - "returntype": "void" -} -,{ - "classname": "ISteamMatchmakingRulesResponse", - "methodname": "RulesRefreshComplete", - "returntype": "void" -} -,{ - "classname": "ISteamMatchmakingServers", - "methodname": "RequestInternetServerList", - "returntype": "HServerListRequest", - "params": [ -{ "paramname": "iApp" ,"paramtype": "AppId_t"}, -{ "paramname": "ppchFilters" ,"array_count": "nFilters" ,"paramtype": "struct MatchMakingKeyValuePair_t **"}, -{ "paramname": "nFilters" ,"paramtype": "uint32"}, -{ "paramname": "pRequestServersResponse" ,"paramtype": "class ISteamMatchmakingServerListResponse *"} - ] -} -,{ - "classname": "ISteamMatchmakingServers", - "methodname": "RequestLANServerList", - "returntype": "HServerListRequest", - "params": [ -{ "paramname": "iApp" ,"paramtype": "AppId_t"}, -{ "paramname": "pRequestServersResponse" ,"paramtype": "class ISteamMatchmakingServerListResponse *"} - ] -} -,{ - "classname": "ISteamMatchmakingServers", - "methodname": "RequestFriendsServerList", - "returntype": "HServerListRequest", - "params": [ -{ "paramname": "iApp" ,"paramtype": "AppId_t"}, -{ "paramname": "ppchFilters" ,"array_count": "nFilters" ,"paramtype": "struct MatchMakingKeyValuePair_t **"}, -{ "paramname": "nFilters" ,"paramtype": "uint32"}, -{ "paramname": "pRequestServersResponse" ,"paramtype": "class ISteamMatchmakingServerListResponse *"} - ] -} -,{ - "classname": "ISteamMatchmakingServers", - "methodname": "RequestFavoritesServerList", - "returntype": "HServerListRequest", - "params": [ -{ "paramname": "iApp" ,"paramtype": "AppId_t"}, -{ "paramname": "ppchFilters" ,"array_count": "nFilters" ,"paramtype": "struct MatchMakingKeyValuePair_t **"}, -{ "paramname": "nFilters" ,"paramtype": "uint32"}, -{ "paramname": "pRequestServersResponse" ,"paramtype": "class ISteamMatchmakingServerListResponse *"} - ] -} -,{ - "classname": "ISteamMatchmakingServers", - "methodname": "RequestHistoryServerList", - "returntype": "HServerListRequest", - "params": [ -{ "paramname": "iApp" ,"paramtype": "AppId_t"}, -{ "paramname": "ppchFilters" ,"array_count": "nFilters" ,"paramtype": "struct MatchMakingKeyValuePair_t **"}, -{ "paramname": "nFilters" ,"paramtype": "uint32"}, -{ "paramname": "pRequestServersResponse" ,"paramtype": "class ISteamMatchmakingServerListResponse *"} - ] -} -,{ - "classname": "ISteamMatchmakingServers", - "methodname": "RequestSpectatorServerList", - "returntype": "HServerListRequest", - "params": [ -{ "paramname": "iApp" ,"paramtype": "AppId_t"}, -{ "paramname": "ppchFilters" ,"array_count": "nFilters" ,"paramtype": "struct MatchMakingKeyValuePair_t **"}, -{ "paramname": "nFilters" ,"paramtype": "uint32"}, -{ "paramname": "pRequestServersResponse" ,"paramtype": "class ISteamMatchmakingServerListResponse *"} - ] -} -,{ - "classname": "ISteamMatchmakingServers", - "methodname": "ReleaseRequest", - "returntype": "void", - "params": [ -{ "paramname": "hServerListRequest" ,"paramtype": "HServerListRequest"} - ] -} -,{ - "classname": "ISteamMatchmakingServers", - "methodname": "GetServerDetails", - "returntype": "class gameserveritem_t *", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HServerListRequest"}, -{ "paramname": "iServer" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamMatchmakingServers", - "methodname": "CancelQuery", - "returntype": "void", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HServerListRequest"} - ] -} -,{ - "classname": "ISteamMatchmakingServers", - "methodname": "RefreshQuery", - "returntype": "void", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HServerListRequest"} - ] -} -,{ - "classname": "ISteamMatchmakingServers", - "methodname": "IsRefreshing", - "returntype": "bool", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HServerListRequest"} - ] -} -,{ - "classname": "ISteamMatchmakingServers", - "methodname": "GetServerCount", - "returntype": "int", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HServerListRequest"} - ] -} -,{ - "classname": "ISteamMatchmakingServers", - "methodname": "RefreshServer", - "returntype": "void", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HServerListRequest"}, -{ "paramname": "iServer" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamMatchmakingServers", - "methodname": "PingServer", - "returntype": "HServerQuery", - "params": [ -{ "paramname": "unIP" ,"paramtype": "uint32"}, -{ "paramname": "usPort" ,"paramtype": "uint16"}, -{ "paramname": "pRequestServersResponse" ,"paramtype": "class ISteamMatchmakingPingResponse *"} - ] -} -,{ - "classname": "ISteamMatchmakingServers", - "methodname": "PlayerDetails", - "returntype": "HServerQuery", - "params": [ -{ "paramname": "unIP" ,"paramtype": "uint32"}, -{ "paramname": "usPort" ,"paramtype": "uint16"}, -{ "paramname": "pRequestServersResponse" ,"paramtype": "class ISteamMatchmakingPlayersResponse *"} - ] -} -,{ - "classname": "ISteamMatchmakingServers", - "methodname": "ServerRules", - "returntype": "HServerQuery", - "params": [ -{ "paramname": "unIP" ,"paramtype": "uint32"}, -{ "paramname": "usPort" ,"paramtype": "uint16"}, -{ "paramname": "pRequestServersResponse" ,"paramtype": "class ISteamMatchmakingRulesResponse *"} - ] -} -,{ - "classname": "ISteamMatchmakingServers", - "methodname": "CancelServerQuery", - "returntype": "void", - "params": [ -{ "paramname": "hServerQuery" ,"paramtype": "HServerQuery"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "FileWrite", - "returntype": "bool", - "params": [ -{ "paramname": "pchFile" ,"paramtype": "const char *"}, -{ "paramname": "pvData" ,"paramtype": "const void *"}, -{ "paramname": "cubData" ,"paramtype": "int32"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "FileRead", - "returntype": "int32", - "params": [ -{ "paramname": "pchFile" ,"paramtype": "const char *"}, -{ "paramname": "pvData" ,"paramtype": "void *"}, -{ "paramname": "cubDataToRead" ,"paramtype": "int32"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "FileWriteAsync", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "pchFile" ,"paramtype": "const char *"}, -{ "paramname": "pvData" ,"paramtype": "const void *"}, -{ "paramname": "cubData" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "FileReadAsync", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "pchFile" ,"paramtype": "const char *"}, -{ "paramname": "nOffset" ,"paramtype": "uint32"}, -{ "paramname": "cubToRead" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "FileReadAsyncComplete", - "returntype": "bool", - "params": [ -{ "paramname": "hReadCall" ,"paramtype": "SteamAPICall_t"}, -{ "paramname": "pvBuffer" ,"paramtype": "void *"}, -{ "paramname": "cubToRead" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "FileForget", - "returntype": "bool", - "params": [ -{ "paramname": "pchFile" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "FileDelete", - "returntype": "bool", - "params": [ -{ "paramname": "pchFile" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "FileShare", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "pchFile" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "SetSyncPlatforms", - "returntype": "bool", - "params": [ -{ "paramname": "pchFile" ,"paramtype": "const char *"}, -{ "paramname": "eRemoteStoragePlatform" ,"paramtype": "ERemoteStoragePlatform"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "FileWriteStreamOpen", - "returntype": "UGCFileWriteStreamHandle_t", - "params": [ -{ "paramname": "pchFile" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "FileWriteStreamWriteChunk", - "returntype": "bool", - "params": [ -{ "paramname": "writeHandle" ,"paramtype": "UGCFileWriteStreamHandle_t"}, -{ "paramname": "pvData" ,"paramtype": "const void *"}, -{ "paramname": "cubData" ,"paramtype": "int32"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "FileWriteStreamClose", - "returntype": "bool", - "params": [ -{ "paramname": "writeHandle" ,"paramtype": "UGCFileWriteStreamHandle_t"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "FileWriteStreamCancel", - "returntype": "bool", - "params": [ -{ "paramname": "writeHandle" ,"paramtype": "UGCFileWriteStreamHandle_t"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "FileExists", - "returntype": "bool", - "params": [ -{ "paramname": "pchFile" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "FilePersisted", - "returntype": "bool", - "params": [ -{ "paramname": "pchFile" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "GetFileSize", - "returntype": "int32", - "params": [ -{ "paramname": "pchFile" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "GetFileTimestamp", - "returntype": "int64", - "params": [ -{ "paramname": "pchFile" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "GetSyncPlatforms", - "returntype": "ERemoteStoragePlatform", - "params": [ -{ "paramname": "pchFile" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "GetFileCount", - "returntype": "int32" -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "GetFileNameAndSize", - "returntype": "const char *", - "params": [ -{ "paramname": "iFile" ,"paramtype": "int"}, -{ "paramname": "pnFileSizeInBytes" ,"paramtype": "int32 *"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "GetQuota", - "returntype": "bool", - "params": [ -{ "paramname": "pnTotalBytes" ,"paramtype": "int32 *"}, -{ "paramname": "puAvailableBytes" ,"paramtype": "int32 *"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "IsCloudEnabledForAccount", - "returntype": "bool" -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "IsCloudEnabledForApp", - "returntype": "bool" -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "SetCloudEnabledForApp", - "returntype": "void", - "params": [ -{ "paramname": "bEnabled" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "UGCDownload", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "hContent" ,"paramtype": "UGCHandle_t"}, -{ "paramname": "unPriority" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "GetUGCDownloadProgress", - "returntype": "bool", - "params": [ -{ "paramname": "hContent" ,"paramtype": "UGCHandle_t"}, -{ "paramname": "pnBytesDownloaded" ,"paramtype": "int32 *"}, -{ "paramname": "pnBytesExpected" ,"paramtype": "int32 *"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "GetUGCDetails", - "returntype": "bool", - "params": [ -{ "paramname": "hContent" ,"paramtype": "UGCHandle_t"}, -{ "paramname": "pnAppID" ,"paramtype": "AppId_t *"}, -{ "paramname": "ppchName" ,"paramtype": "char **"}, -{ "paramname": "pnFileSizeInBytes" ,"paramtype": "int32 *"}, -{ "paramname": "pSteamIDOwner" ,"out_struct": " " ,"paramtype": "class CSteamID *"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "UGCRead", - "returntype": "int32", - "params": [ -{ "paramname": "hContent" ,"paramtype": "UGCHandle_t"}, -{ "paramname": "pvData" ,"paramtype": "void *"}, -{ "paramname": "cubDataToRead" ,"paramtype": "int32"}, -{ "paramname": "cOffset" ,"paramtype": "uint32"}, -{ "paramname": "eAction" ,"paramtype": "EUGCReadAction"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "GetCachedUGCCount", - "returntype": "int32" -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "GetCachedUGCHandle", - "returntype": "UGCHandle_t", - "params": [ -{ "paramname": "iCachedContent" ,"paramtype": "int32"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "PublishWorkshopFile", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "pchFile" ,"paramtype": "const char *"}, -{ "paramname": "pchPreviewFile" ,"paramtype": "const char *"}, -{ "paramname": "nConsumerAppId" ,"paramtype": "AppId_t"}, -{ "paramname": "pchTitle" ,"paramtype": "const char *"}, -{ "paramname": "pchDescription" ,"paramtype": "const char *"}, -{ "paramname": "eVisibility" ,"paramtype": "ERemoteStoragePublishedFileVisibility"}, -{ "paramname": "pTags" ,"paramtype": "struct SteamParamStringArray_t *"}, -{ "paramname": "eWorkshopFileType" ,"paramtype": "EWorkshopFileType"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "CreatePublishedFileUpdateRequest", - "returntype": "PublishedFileUpdateHandle_t", - "params": [ -{ "paramname": "unPublishedFileId" ,"paramtype": "PublishedFileId_t"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "UpdatePublishedFileFile", - "returntype": "bool", - "params": [ -{ "paramname": "updateHandle" ,"paramtype": "PublishedFileUpdateHandle_t"}, -{ "paramname": "pchFile" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "UpdatePublishedFilePreviewFile", - "returntype": "bool", - "params": [ -{ "paramname": "updateHandle" ,"paramtype": "PublishedFileUpdateHandle_t"}, -{ "paramname": "pchPreviewFile" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "UpdatePublishedFileTitle", - "returntype": "bool", - "params": [ -{ "paramname": "updateHandle" ,"paramtype": "PublishedFileUpdateHandle_t"}, -{ "paramname": "pchTitle" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "UpdatePublishedFileDescription", - "returntype": "bool", - "params": [ -{ "paramname": "updateHandle" ,"paramtype": "PublishedFileUpdateHandle_t"}, -{ "paramname": "pchDescription" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "UpdatePublishedFileVisibility", - "returntype": "bool", - "params": [ -{ "paramname": "updateHandle" ,"paramtype": "PublishedFileUpdateHandle_t"}, -{ "paramname": "eVisibility" ,"paramtype": "ERemoteStoragePublishedFileVisibility"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "UpdatePublishedFileTags", - "returntype": "bool", - "params": [ -{ "paramname": "updateHandle" ,"paramtype": "PublishedFileUpdateHandle_t"}, -{ "paramname": "pTags" ,"paramtype": "struct SteamParamStringArray_t *"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "CommitPublishedFileUpdate", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "updateHandle" ,"paramtype": "PublishedFileUpdateHandle_t"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "GetPublishedFileDetails", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "unPublishedFileId" ,"paramtype": "PublishedFileId_t"}, -{ "paramname": "unMaxSecondsOld" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "DeletePublishedFile", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "unPublishedFileId" ,"paramtype": "PublishedFileId_t"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "EnumerateUserPublishedFiles", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "unStartIndex" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "SubscribePublishedFile", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "unPublishedFileId" ,"paramtype": "PublishedFileId_t"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "EnumerateUserSubscribedFiles", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "unStartIndex" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "UnsubscribePublishedFile", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "unPublishedFileId" ,"paramtype": "PublishedFileId_t"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "UpdatePublishedFileSetChangeDescription", - "returntype": "bool", - "params": [ -{ "paramname": "updateHandle" ,"paramtype": "PublishedFileUpdateHandle_t"}, -{ "paramname": "pchChangeDescription" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "GetPublishedItemVoteDetails", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "unPublishedFileId" ,"paramtype": "PublishedFileId_t"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "UpdateUserPublishedItemVote", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "unPublishedFileId" ,"paramtype": "PublishedFileId_t"}, -{ "paramname": "bVoteUp" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "GetUserPublishedItemVoteDetails", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "unPublishedFileId" ,"paramtype": "PublishedFileId_t"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "EnumerateUserSharedWorkshopFiles", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "steamId" ,"paramtype": "class CSteamID"}, -{ "paramname": "unStartIndex" ,"paramtype": "uint32"}, -{ "paramname": "pRequiredTags" ,"paramtype": "struct SteamParamStringArray_t *"}, -{ "paramname": "pExcludedTags" ,"paramtype": "struct SteamParamStringArray_t *"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "PublishVideo", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "eVideoProvider" ,"paramtype": "EWorkshopVideoProvider"}, -{ "paramname": "pchVideoAccount" ,"paramtype": "const char *"}, -{ "paramname": "pchVideoIdentifier" ,"paramtype": "const char *"}, -{ "paramname": "pchPreviewFile" ,"paramtype": "const char *"}, -{ "paramname": "nConsumerAppId" ,"paramtype": "AppId_t"}, -{ "paramname": "pchTitle" ,"paramtype": "const char *"}, -{ "paramname": "pchDescription" ,"paramtype": "const char *"}, -{ "paramname": "eVisibility" ,"paramtype": "ERemoteStoragePublishedFileVisibility"}, -{ "paramname": "pTags" ,"paramtype": "struct SteamParamStringArray_t *"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "SetUserPublishedFileAction", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "unPublishedFileId" ,"paramtype": "PublishedFileId_t"}, -{ "paramname": "eAction" ,"paramtype": "EWorkshopFileAction"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "EnumeratePublishedFilesByUserAction", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "eAction" ,"paramtype": "EWorkshopFileAction"}, -{ "paramname": "unStartIndex" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "EnumeratePublishedWorkshopFiles", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "eEnumerationType" ,"paramtype": "EWorkshopEnumerationType"}, -{ "paramname": "unStartIndex" ,"paramtype": "uint32"}, -{ "paramname": "unCount" ,"paramtype": "uint32"}, -{ "paramname": "unDays" ,"paramtype": "uint32"}, -{ "paramname": "pTags" ,"paramtype": "struct SteamParamStringArray_t *"}, -{ "paramname": "pUserTags" ,"paramtype": "struct SteamParamStringArray_t *"} - ] -} -,{ - "classname": "ISteamRemoteStorage", - "methodname": "UGCDownloadToLocation", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "hContent" ,"paramtype": "UGCHandle_t"}, -{ "paramname": "pchLocation" ,"paramtype": "const char *"}, -{ "paramname": "unPriority" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "RequestCurrentStats", - "returntype": "bool" -} -,{ - "classname": "ISteamUserStats", - "methodname": "GetStat", - "returntype": "bool", - "params": [ -{ "paramname": "pchName" ,"paramtype": "const char *"}, -{ "paramname": "pData" ,"paramtype": "int32 *"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "GetStat", - "returntype": "bool", - "params": [ -{ "paramname": "pchName" ,"paramtype": "const char *"}, -{ "paramname": "pData" ,"paramtype": "float *"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "SetStat", - "returntype": "bool", - "params": [ -{ "paramname": "pchName" ,"paramtype": "const char *"}, -{ "paramname": "nData" ,"paramtype": "int32"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "SetStat", - "returntype": "bool", - "params": [ -{ "paramname": "pchName" ,"paramtype": "const char *"}, -{ "paramname": "fData" ,"paramtype": "float"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "UpdateAvgRateStat", - "returntype": "bool", - "params": [ -{ "paramname": "pchName" ,"paramtype": "const char *"}, -{ "paramname": "flCountThisSession" ,"paramtype": "float"}, -{ "paramname": "dSessionLength" ,"paramtype": "double"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "GetAchievement", - "returntype": "bool", - "params": [ -{ "paramname": "pchName" ,"paramtype": "const char *"}, -{ "paramname": "pbAchieved" ,"paramtype": "bool *"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "SetAchievement", - "returntype": "bool", - "params": [ -{ "paramname": "pchName" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "ClearAchievement", - "returntype": "bool", - "params": [ -{ "paramname": "pchName" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "GetAchievementAndUnlockTime", - "returntype": "bool", - "params": [ -{ "paramname": "pchName" ,"paramtype": "const char *"}, -{ "paramname": "pbAchieved" ,"paramtype": "bool *"}, -{ "paramname": "punUnlockTime" ,"paramtype": "uint32 *"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "StoreStats", - "returntype": "bool" -} -,{ - "classname": "ISteamUserStats", - "methodname": "GetAchievementIcon", - "returntype": "int", - "params": [ -{ "paramname": "pchName" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "GetAchievementDisplayAttribute", - "returntype": "const char *", - "params": [ -{ "paramname": "pchName" ,"paramtype": "const char *"}, -{ "paramname": "pchKey" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "IndicateAchievementProgress", - "returntype": "bool", - "params": [ -{ "paramname": "pchName" ,"paramtype": "const char *"}, -{ "paramname": "nCurProgress" ,"paramtype": "uint32"}, -{ "paramname": "nMaxProgress" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "GetNumAchievements", - "returntype": "uint32" -} -,{ - "classname": "ISteamUserStats", - "methodname": "GetAchievementName", - "returntype": "const char *", - "params": [ -{ "paramname": "iAchievement" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "RequestUserStats", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "steamIDUser" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "GetUserStat", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDUser" ,"paramtype": "class CSteamID"}, -{ "paramname": "pchName" ,"paramtype": "const char *"}, -{ "paramname": "pData" ,"paramtype": "int32 *"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "GetUserStat", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDUser" ,"paramtype": "class CSteamID"}, -{ "paramname": "pchName" ,"paramtype": "const char *"}, -{ "paramname": "pData" ,"paramtype": "float *"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "GetUserAchievement", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDUser" ,"paramtype": "class CSteamID"}, -{ "paramname": "pchName" ,"paramtype": "const char *"}, -{ "paramname": "pbAchieved" ,"paramtype": "bool *"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "GetUserAchievementAndUnlockTime", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDUser" ,"paramtype": "class CSteamID"}, -{ "paramname": "pchName" ,"paramtype": "const char *"}, -{ "paramname": "pbAchieved" ,"paramtype": "bool *"}, -{ "paramname": "punUnlockTime" ,"paramtype": "uint32 *"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "ResetAllStats", - "returntype": "bool", - "params": [ -{ "paramname": "bAchievementsToo" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "FindOrCreateLeaderboard", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "pchLeaderboardName" ,"paramtype": "const char *"}, -{ "paramname": "eLeaderboardSortMethod" ,"paramtype": "ELeaderboardSortMethod"}, -{ "paramname": "eLeaderboardDisplayType" ,"paramtype": "ELeaderboardDisplayType"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "FindLeaderboard", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "pchLeaderboardName" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "GetLeaderboardName", - "returntype": "const char *", - "params": [ -{ "paramname": "hSteamLeaderboard" ,"paramtype": "SteamLeaderboard_t"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "GetLeaderboardEntryCount", - "returntype": "int", - "params": [ -{ "paramname": "hSteamLeaderboard" ,"paramtype": "SteamLeaderboard_t"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "GetLeaderboardSortMethod", - "returntype": "ELeaderboardSortMethod", - "params": [ -{ "paramname": "hSteamLeaderboard" ,"paramtype": "SteamLeaderboard_t"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "GetLeaderboardDisplayType", - "returntype": "ELeaderboardDisplayType", - "params": [ -{ "paramname": "hSteamLeaderboard" ,"paramtype": "SteamLeaderboard_t"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "DownloadLeaderboardEntries", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "hSteamLeaderboard" ,"paramtype": "SteamLeaderboard_t"}, -{ "paramname": "eLeaderboardDataRequest" ,"paramtype": "ELeaderboardDataRequest"}, -{ "paramname": "nRangeStart" ,"paramtype": "int"}, -{ "paramname": "nRangeEnd" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "DownloadLeaderboardEntriesForUsers", "desc": "Downloads leaderboard entries for an arbitrary set of users - ELeaderboardDataRequest is k_ELeaderboardDataRequestUsers", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "hSteamLeaderboard" ,"paramtype": "SteamLeaderboard_t"}, -{ "paramname": "prgUsers" ,"array_count": "cUsers" ,"desc": "Array of users to retrieve" ,"paramtype": "class CSteamID *"}, -{ "paramname": "cUsers" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "GetDownloadedLeaderboardEntry", - "returntype": "bool", - "params": [ -{ "paramname": "hSteamLeaderboardEntries" ,"paramtype": "SteamLeaderboardEntries_t"}, -{ "paramname": "index" ,"paramtype": "int"}, -{ "paramname": "pLeaderboardEntry" ,"paramtype": "struct LeaderboardEntry_t *"}, -{ "paramname": "pDetails" ,"paramtype": "int32 *"}, -{ "paramname": "cDetailsMax" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "UploadLeaderboardScore", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "hSteamLeaderboard" ,"paramtype": "SteamLeaderboard_t"}, -{ "paramname": "eLeaderboardUploadScoreMethod" ,"paramtype": "ELeaderboardUploadScoreMethod"}, -{ "paramname": "nScore" ,"paramtype": "int32"}, -{ "paramname": "pScoreDetails" ,"paramtype": "const int32 *"}, -{ "paramname": "cScoreDetailsCount" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "AttachLeaderboardUGC", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "hSteamLeaderboard" ,"paramtype": "SteamLeaderboard_t"}, -{ "paramname": "hUGC" ,"paramtype": "UGCHandle_t"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "GetNumberOfCurrentPlayers", - "returntype": "SteamAPICall_t" -} -,{ - "classname": "ISteamUserStats", - "methodname": "RequestGlobalAchievementPercentages", - "returntype": "SteamAPICall_t" -} -,{ - "classname": "ISteamUserStats", - "methodname": "GetMostAchievedAchievementInfo", - "returntype": "int", - "params": [ -{ "paramname": "pchName" ,"paramtype": "char *"}, -{ "paramname": "unNameBufLen" ,"paramtype": "uint32"}, -{ "paramname": "pflPercent" ,"paramtype": "float *"}, -{ "paramname": "pbAchieved" ,"paramtype": "bool *"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "GetNextMostAchievedAchievementInfo", - "returntype": "int", - "params": [ -{ "paramname": "iIteratorPrevious" ,"paramtype": "int"}, -{ "paramname": "pchName" ,"paramtype": "char *"}, -{ "paramname": "unNameBufLen" ,"paramtype": "uint32"}, -{ "paramname": "pflPercent" ,"paramtype": "float *"}, -{ "paramname": "pbAchieved" ,"paramtype": "bool *"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "GetAchievementAchievedPercent", - "returntype": "bool", - "params": [ -{ "paramname": "pchName" ,"paramtype": "const char *"}, -{ "paramname": "pflPercent" ,"paramtype": "float *"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "RequestGlobalStats", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "nHistoryDays" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "GetGlobalStat", - "returntype": "bool", - "params": [ -{ "paramname": "pchStatName" ,"paramtype": "const char *"}, -{ "paramname": "pData" ,"paramtype": "int64 *"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "GetGlobalStat", - "returntype": "bool", - "params": [ -{ "paramname": "pchStatName" ,"paramtype": "const char *"}, -{ "paramname": "pData" ,"paramtype": "double *"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "GetGlobalStatHistory", - "returntype": "int32", - "params": [ -{ "paramname": "pchStatName" ,"paramtype": "const char *"}, -{ "paramname": "pData" ,"array_count": "cubData" ,"paramtype": "int64 *"}, -{ "paramname": "cubData" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamUserStats", - "methodname": "GetGlobalStatHistory", - "returntype": "int32", - "params": [ -{ "paramname": "pchStatName" ,"paramtype": "const char *"}, -{ "paramname": "pData" ,"array_count": "cubData" ,"paramtype": "double *"}, -{ "paramname": "cubData" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamApps", - "methodname": "BIsSubscribed", - "returntype": "bool" -} -,{ - "classname": "ISteamApps", - "methodname": "BIsLowViolence", - "returntype": "bool" -} -,{ - "classname": "ISteamApps", - "methodname": "BIsCybercafe", - "returntype": "bool" -} -,{ - "classname": "ISteamApps", - "methodname": "BIsVACBanned", - "returntype": "bool" -} -,{ - "classname": "ISteamApps", - "methodname": "GetCurrentGameLanguage", - "returntype": "const char *" -} -,{ - "classname": "ISteamApps", - "methodname": "GetAvailableGameLanguages", - "returntype": "const char *" -} -,{ - "classname": "ISteamApps", - "methodname": "BIsSubscribedApp", - "returntype": "bool", - "params": [ -{ "paramname": "appID" ,"paramtype": "AppId_t"} - ] -} -,{ - "classname": "ISteamApps", - "methodname": "BIsDlcInstalled", - "returntype": "bool", - "params": [ -{ "paramname": "appID" ,"paramtype": "AppId_t"} - ] -} -,{ - "classname": "ISteamApps", - "methodname": "GetEarliestPurchaseUnixTime", - "returntype": "uint32", - "params": [ -{ "paramname": "nAppID" ,"paramtype": "AppId_t"} - ] -} -,{ - "classname": "ISteamApps", - "methodname": "BIsSubscribedFromFreeWeekend", - "returntype": "bool" -} -,{ - "classname": "ISteamApps", - "methodname": "GetDLCCount", - "returntype": "int" -} -,{ - "classname": "ISteamApps", - "methodname": "BGetDLCDataByIndex", - "returntype": "bool", - "params": [ -{ "paramname": "iDLC" ,"paramtype": "int"}, -{ "paramname": "pAppID" ,"paramtype": "AppId_t *"}, -{ "paramname": "pbAvailable" ,"paramtype": "bool *"}, -{ "paramname": "pchName" ,"paramtype": "char *"}, -{ "paramname": "cchNameBufferSize" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamApps", - "methodname": "InstallDLC", - "returntype": "void", - "params": [ -{ "paramname": "nAppID" ,"paramtype": "AppId_t"} - ] -} -,{ - "classname": "ISteamApps", - "methodname": "UninstallDLC", - "returntype": "void", - "params": [ -{ "paramname": "nAppID" ,"paramtype": "AppId_t"} - ] -} -,{ - "classname": "ISteamApps", - "methodname": "RequestAppProofOfPurchaseKey", - "returntype": "void", - "params": [ -{ "paramname": "nAppID" ,"paramtype": "AppId_t"} - ] -} -,{ - "classname": "ISteamApps", - "methodname": "GetCurrentBetaName", - "returntype": "bool", - "params": [ -{ "paramname": "pchName" ,"paramtype": "char *"}, -{ "paramname": "cchNameBufferSize" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamApps", - "methodname": "MarkContentCorrupt", - "returntype": "bool", - "params": [ -{ "paramname": "bMissingFilesOnly" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamApps", - "methodname": "GetInstalledDepots", - "returntype": "uint32", - "params": [ -{ "paramname": "appID" ,"paramtype": "AppId_t"}, -{ "paramname": "pvecDepots" ,"paramtype": "DepotId_t *"}, -{ "paramname": "cMaxDepots" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamApps", - "methodname": "GetAppInstallDir", - "returntype": "uint32", - "params": [ -{ "paramname": "appID" ,"paramtype": "AppId_t"}, -{ "paramname": "pchFolder" ,"paramtype": "char *"}, -{ "paramname": "cchFolderBufferSize" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamApps", - "methodname": "BIsAppInstalled", - "returntype": "bool", - "params": [ -{ "paramname": "appID" ,"paramtype": "AppId_t"} - ] -} -,{ - "classname": "ISteamApps", - "methodname": "GetAppOwner", - "returntype": "class CSteamID" -} -,{ - "classname": "ISteamApps", - "methodname": "GetLaunchQueryParam", - "returntype": "const char *", - "params": [ -{ "paramname": "pchKey" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamApps", - "methodname": "GetDlcDownloadProgress", - "returntype": "bool", - "params": [ -{ "paramname": "nAppID" ,"paramtype": "AppId_t"}, -{ "paramname": "punBytesDownloaded" ,"paramtype": "uint64 *"}, -{ "paramname": "punBytesTotal" ,"paramtype": "uint64 *"} - ] -} -,{ - "classname": "ISteamApps", - "methodname": "GetAppBuildId", - "returntype": "int" -} -,{ - "classname": "ISteamNetworking", - "methodname": "SendP2PPacket", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDRemote" ,"paramtype": "class CSteamID"}, -{ "paramname": "pubData" ,"paramtype": "const void *"}, -{ "paramname": "cubData" ,"paramtype": "uint32"}, -{ "paramname": "eP2PSendType" ,"paramtype": "EP2PSend"}, -{ "paramname": "nChannel" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamNetworking", - "methodname": "IsP2PPacketAvailable", - "returntype": "bool", - "params": [ -{ "paramname": "pcubMsgSize" ,"paramtype": "uint32 *"}, -{ "paramname": "nChannel" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamNetworking", - "methodname": "ReadP2PPacket", - "returntype": "bool", - "params": [ -{ "paramname": "pubDest" ,"paramtype": "void *"}, -{ "paramname": "cubDest" ,"paramtype": "uint32"}, -{ "paramname": "pcubMsgSize" ,"paramtype": "uint32 *"}, -{ "paramname": "psteamIDRemote" ,"paramtype": "class CSteamID *"}, -{ "paramname": "nChannel" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamNetworking", - "methodname": "AcceptP2PSessionWithUser", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDRemote" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamNetworking", - "methodname": "CloseP2PSessionWithUser", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDRemote" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamNetworking", - "methodname": "CloseP2PChannelWithUser", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDRemote" ,"paramtype": "class CSteamID"}, -{ "paramname": "nChannel" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamNetworking", - "methodname": "GetP2PSessionState", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDRemote" ,"paramtype": "class CSteamID"}, -{ "paramname": "pConnectionState" ,"paramtype": "struct P2PSessionState_t *"} - ] -} -,{ - "classname": "ISteamNetworking", - "methodname": "AllowP2PPacketRelay", - "returntype": "bool", - "params": [ -{ "paramname": "bAllow" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamNetworking", - "methodname": "CreateListenSocket", - "returntype": "SNetListenSocket_t", - "params": [ -{ "paramname": "nVirtualP2PPort" ,"paramtype": "int"}, -{ "paramname": "nIP" ,"paramtype": "uint32"}, -{ "paramname": "nPort" ,"paramtype": "uint16"}, -{ "paramname": "bAllowUseOfPacketRelay" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamNetworking", - "methodname": "CreateP2PConnectionSocket", - "returntype": "SNetSocket_t", - "params": [ -{ "paramname": "steamIDTarget" ,"paramtype": "class CSteamID"}, -{ "paramname": "nVirtualPort" ,"paramtype": "int"}, -{ "paramname": "nTimeoutSec" ,"paramtype": "int"}, -{ "paramname": "bAllowUseOfPacketRelay" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamNetworking", - "methodname": "CreateConnectionSocket", - "returntype": "SNetSocket_t", - "params": [ -{ "paramname": "nIP" ,"paramtype": "uint32"}, -{ "paramname": "nPort" ,"paramtype": "uint16"}, -{ "paramname": "nTimeoutSec" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamNetworking", - "methodname": "DestroySocket", - "returntype": "bool", - "params": [ -{ "paramname": "hSocket" ,"paramtype": "SNetSocket_t"}, -{ "paramname": "bNotifyRemoteEnd" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamNetworking", - "methodname": "DestroyListenSocket", - "returntype": "bool", - "params": [ -{ "paramname": "hSocket" ,"paramtype": "SNetListenSocket_t"}, -{ "paramname": "bNotifyRemoteEnd" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamNetworking", - "methodname": "SendDataOnSocket", - "returntype": "bool", - "params": [ -{ "paramname": "hSocket" ,"paramtype": "SNetSocket_t"}, -{ "paramname": "pubData" ,"paramtype": "void *"}, -{ "paramname": "cubData" ,"paramtype": "uint32"}, -{ "paramname": "bReliable" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamNetworking", - "methodname": "IsDataAvailableOnSocket", - "returntype": "bool", - "params": [ -{ "paramname": "hSocket" ,"paramtype": "SNetSocket_t"}, -{ "paramname": "pcubMsgSize" ,"paramtype": "uint32 *"} - ] -} -,{ - "classname": "ISteamNetworking", - "methodname": "RetrieveDataFromSocket", - "returntype": "bool", - "params": [ -{ "paramname": "hSocket" ,"paramtype": "SNetSocket_t"}, -{ "paramname": "pubDest" ,"paramtype": "void *"}, -{ "paramname": "cubDest" ,"paramtype": "uint32"}, -{ "paramname": "pcubMsgSize" ,"paramtype": "uint32 *"} - ] -} -,{ - "classname": "ISteamNetworking", - "methodname": "IsDataAvailable", - "returntype": "bool", - "params": [ -{ "paramname": "hListenSocket" ,"paramtype": "SNetListenSocket_t"}, -{ "paramname": "pcubMsgSize" ,"paramtype": "uint32 *"}, -{ "paramname": "phSocket" ,"paramtype": "SNetSocket_t *"} - ] -} -,{ - "classname": "ISteamNetworking", - "methodname": "RetrieveData", - "returntype": "bool", - "params": [ -{ "paramname": "hListenSocket" ,"paramtype": "SNetListenSocket_t"}, -{ "paramname": "pubDest" ,"paramtype": "void *"}, -{ "paramname": "cubDest" ,"paramtype": "uint32"}, -{ "paramname": "pcubMsgSize" ,"paramtype": "uint32 *"}, -{ "paramname": "phSocket" ,"paramtype": "SNetSocket_t *"} - ] -} -,{ - "classname": "ISteamNetworking", - "methodname": "GetSocketInfo", - "returntype": "bool", - "params": [ -{ "paramname": "hSocket" ,"paramtype": "SNetSocket_t"}, -{ "paramname": "pSteamIDRemote" ,"paramtype": "class CSteamID *"}, -{ "paramname": "peSocketStatus" ,"paramtype": "int *"}, -{ "paramname": "punIPRemote" ,"paramtype": "uint32 *"}, -{ "paramname": "punPortRemote" ,"paramtype": "uint16 *"} - ] -} -,{ - "classname": "ISteamNetworking", - "methodname": "GetListenSocketInfo", - "returntype": "bool", - "params": [ -{ "paramname": "hListenSocket" ,"paramtype": "SNetListenSocket_t"}, -{ "paramname": "pnIP" ,"paramtype": "uint32 *"}, -{ "paramname": "pnPort" ,"paramtype": "uint16 *"} - ] -} -,{ - "classname": "ISteamNetworking", - "methodname": "GetSocketConnectionType", - "returntype": "ESNetSocketConnectionType", - "params": [ -{ "paramname": "hSocket" ,"paramtype": "SNetSocket_t"} - ] -} -,{ - "classname": "ISteamNetworking", - "methodname": "GetMaxPacketSize", - "returntype": "int", - "params": [ -{ "paramname": "hSocket" ,"paramtype": "SNetSocket_t"} - ] -} -,{ - "classname": "ISteamScreenshots", - "methodname": "WriteScreenshot", - "returntype": "ScreenshotHandle", - "params": [ -{ "paramname": "pubRGB" ,"paramtype": "void *"}, -{ "paramname": "cubRGB" ,"paramtype": "uint32"}, -{ "paramname": "nWidth" ,"paramtype": "int"}, -{ "paramname": "nHeight" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamScreenshots", - "methodname": "AddScreenshotToLibrary", - "returntype": "ScreenshotHandle", - "params": [ -{ "paramname": "pchFilename" ,"paramtype": "const char *"}, -{ "paramname": "pchThumbnailFilename" ,"paramtype": "const char *"}, -{ "paramname": "nWidth" ,"paramtype": "int"}, -{ "paramname": "nHeight" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamScreenshots", - "methodname": "TriggerScreenshot", - "returntype": "void" -} -,{ - "classname": "ISteamScreenshots", - "methodname": "HookScreenshots", - "returntype": "void", - "params": [ -{ "paramname": "bHook" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamScreenshots", - "methodname": "SetLocation", - "returntype": "bool", - "params": [ -{ "paramname": "hScreenshot" ,"paramtype": "ScreenshotHandle"}, -{ "paramname": "pchLocation" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamScreenshots", - "methodname": "TagUser", - "returntype": "bool", - "params": [ -{ "paramname": "hScreenshot" ,"paramtype": "ScreenshotHandle"}, -{ "paramname": "steamID" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamScreenshots", - "methodname": "TagPublishedFile", - "returntype": "bool", - "params": [ -{ "paramname": "hScreenshot" ,"paramtype": "ScreenshotHandle"}, -{ "paramname": "unPublishedFileID" ,"paramtype": "PublishedFileId_t"} - ] -} -,{ - "classname": "ISteamMusic", - "methodname": "BIsEnabled", - "returntype": "bool" -} -,{ - "classname": "ISteamMusic", - "methodname": "BIsPlaying", - "returntype": "bool" -} -,{ - "classname": "ISteamMusic", - "methodname": "GetPlaybackStatus", - "returntype": "AudioPlayback_Status" -} -,{ - "classname": "ISteamMusic", - "methodname": "Play", - "returntype": "void" -} -,{ - "classname": "ISteamMusic", - "methodname": "Pause", - "returntype": "void" -} -,{ - "classname": "ISteamMusic", - "methodname": "PlayPrevious", - "returntype": "void" -} -,{ - "classname": "ISteamMusic", - "methodname": "PlayNext", - "returntype": "void" -} -,{ - "classname": "ISteamMusic", - "methodname": "SetVolume", - "returntype": "void", - "params": [ -{ "paramname": "flVolume" ,"paramtype": "float"} - ] -} -,{ - "classname": "ISteamMusic", - "methodname": "GetVolume", - "returntype": "float" -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "RegisterSteamMusicRemote", - "returntype": "bool", - "params": [ -{ "paramname": "pchName" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "DeregisterSteamMusicRemote", - "returntype": "bool" -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "BIsCurrentMusicRemote", - "returntype": "bool" -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "BActivationSuccess", - "returntype": "bool", - "params": [ -{ "paramname": "bValue" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "SetDisplayName", - "returntype": "bool", - "params": [ -{ "paramname": "pchDisplayName" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "SetPNGIcon_64x64", - "returntype": "bool", - "params": [ -{ "paramname": "pvBuffer" ,"paramtype": "void *"}, -{ "paramname": "cbBufferLength" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "EnablePlayPrevious", - "returntype": "bool", - "params": [ -{ "paramname": "bValue" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "EnablePlayNext", - "returntype": "bool", - "params": [ -{ "paramname": "bValue" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "EnableShuffled", - "returntype": "bool", - "params": [ -{ "paramname": "bValue" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "EnableLooped", - "returntype": "bool", - "params": [ -{ "paramname": "bValue" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "EnableQueue", - "returntype": "bool", - "params": [ -{ "paramname": "bValue" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "EnablePlaylists", - "returntype": "bool", - "params": [ -{ "paramname": "bValue" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "UpdatePlaybackStatus", - "returntype": "bool", - "params": [ -{ "paramname": "nStatus" ,"paramtype": "AudioPlayback_Status"} - ] -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "UpdateShuffled", - "returntype": "bool", - "params": [ -{ "paramname": "bValue" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "UpdateLooped", - "returntype": "bool", - "params": [ -{ "paramname": "bValue" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "UpdateVolume", - "returntype": "bool", - "params": [ -{ "paramname": "flValue" ,"paramtype": "float"} - ] -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "CurrentEntryWillChange", - "returntype": "bool" -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "CurrentEntryIsAvailable", - "returntype": "bool", - "params": [ -{ "paramname": "bAvailable" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "UpdateCurrentEntryText", - "returntype": "bool", - "params": [ -{ "paramname": "pchText" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "UpdateCurrentEntryElapsedSeconds", - "returntype": "bool", - "params": [ -{ "paramname": "nValue" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "UpdateCurrentEntryCoverArt", - "returntype": "bool", - "params": [ -{ "paramname": "pvBuffer" ,"paramtype": "void *"}, -{ "paramname": "cbBufferLength" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "CurrentEntryDidChange", - "returntype": "bool" -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "QueueWillChange", - "returntype": "bool" -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "ResetQueueEntries", - "returntype": "bool" -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "SetQueueEntry", - "returntype": "bool", - "params": [ -{ "paramname": "nID" ,"paramtype": "int"}, -{ "paramname": "nPosition" ,"paramtype": "int"}, -{ "paramname": "pchEntryText" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "SetCurrentQueueEntry", - "returntype": "bool", - "params": [ -{ "paramname": "nID" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "QueueDidChange", - "returntype": "bool" -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "PlaylistWillChange", - "returntype": "bool" -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "ResetPlaylistEntries", - "returntype": "bool" -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "SetPlaylistEntry", - "returntype": "bool", - "params": [ -{ "paramname": "nID" ,"paramtype": "int"}, -{ "paramname": "nPosition" ,"paramtype": "int"}, -{ "paramname": "pchEntryText" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "SetCurrentPlaylistEntry", - "returntype": "bool", - "params": [ -{ "paramname": "nID" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamMusicRemote", - "methodname": "PlaylistDidChange", - "returntype": "bool" -} -,{ - "classname": "ISteamHTTP", - "methodname": "CreateHTTPRequest", - "returntype": "HTTPRequestHandle", - "params": [ -{ "paramname": "eHTTPRequestMethod" ,"paramtype": "EHTTPMethod"}, -{ "paramname": "pchAbsoluteURL" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamHTTP", - "methodname": "SetHTTPRequestContextValue", - "returntype": "bool", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HTTPRequestHandle"}, -{ "paramname": "ulContextValue" ,"paramtype": "uint64"} - ] -} -,{ - "classname": "ISteamHTTP", - "methodname": "SetHTTPRequestNetworkActivityTimeout", - "returntype": "bool", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HTTPRequestHandle"}, -{ "paramname": "unTimeoutSeconds" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamHTTP", - "methodname": "SetHTTPRequestHeaderValue", - "returntype": "bool", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HTTPRequestHandle"}, -{ "paramname": "pchHeaderName" ,"paramtype": "const char *"}, -{ "paramname": "pchHeaderValue" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamHTTP", - "methodname": "SetHTTPRequestGetOrPostParameter", - "returntype": "bool", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HTTPRequestHandle"}, -{ "paramname": "pchParamName" ,"paramtype": "const char *"}, -{ "paramname": "pchParamValue" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamHTTP", - "methodname": "SendHTTPRequest", - "returntype": "bool", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HTTPRequestHandle"}, -{ "paramname": "pCallHandle" ,"paramtype": "SteamAPICall_t *"} - ] -} -,{ - "classname": "ISteamHTTP", - "methodname": "SendHTTPRequestAndStreamResponse", - "returntype": "bool", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HTTPRequestHandle"}, -{ "paramname": "pCallHandle" ,"paramtype": "SteamAPICall_t *"} - ] -} -,{ - "classname": "ISteamHTTP", - "methodname": "DeferHTTPRequest", - "returntype": "bool", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HTTPRequestHandle"} - ] -} -,{ - "classname": "ISteamHTTP", - "methodname": "PrioritizeHTTPRequest", - "returntype": "bool", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HTTPRequestHandle"} - ] -} -,{ - "classname": "ISteamHTTP", - "methodname": "GetHTTPResponseHeaderSize", - "returntype": "bool", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HTTPRequestHandle"}, -{ "paramname": "pchHeaderName" ,"paramtype": "const char *"}, -{ "paramname": "unResponseHeaderSize" ,"paramtype": "uint32 *"} - ] -} -,{ - "classname": "ISteamHTTP", - "methodname": "GetHTTPResponseHeaderValue", - "returntype": "bool", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HTTPRequestHandle"}, -{ "paramname": "pchHeaderName" ,"paramtype": "const char *"}, -{ "paramname": "pHeaderValueBuffer" ,"paramtype": "uint8 *"}, -{ "paramname": "unBufferSize" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamHTTP", - "methodname": "GetHTTPResponseBodySize", - "returntype": "bool", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HTTPRequestHandle"}, -{ "paramname": "unBodySize" ,"paramtype": "uint32 *"} - ] -} -,{ - "classname": "ISteamHTTP", - "methodname": "GetHTTPResponseBodyData", - "returntype": "bool", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HTTPRequestHandle"}, -{ "paramname": "pBodyDataBuffer" ,"paramtype": "uint8 *"}, -{ "paramname": "unBufferSize" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamHTTP", - "methodname": "GetHTTPStreamingResponseBodyData", - "returntype": "bool", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HTTPRequestHandle"}, -{ "paramname": "cOffset" ,"paramtype": "uint32"}, -{ "paramname": "pBodyDataBuffer" ,"paramtype": "uint8 *"}, -{ "paramname": "unBufferSize" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamHTTP", - "methodname": "ReleaseHTTPRequest", - "returntype": "bool", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HTTPRequestHandle"} - ] -} -,{ - "classname": "ISteamHTTP", - "methodname": "GetHTTPDownloadProgressPct", - "returntype": "bool", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HTTPRequestHandle"}, -{ "paramname": "pflPercentOut" ,"paramtype": "float *"} - ] -} -,{ - "classname": "ISteamHTTP", - "methodname": "SetHTTPRequestRawPostBody", - "returntype": "bool", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HTTPRequestHandle"}, -{ "paramname": "pchContentType" ,"paramtype": "const char *"}, -{ "paramname": "pubBody" ,"paramtype": "uint8 *"}, -{ "paramname": "unBodyLen" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamHTTP", - "methodname": "CreateCookieContainer", - "returntype": "HTTPCookieContainerHandle", - "params": [ -{ "paramname": "bAllowResponsesToModify" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamHTTP", - "methodname": "ReleaseCookieContainer", - "returntype": "bool", - "params": [ -{ "paramname": "hCookieContainer" ,"paramtype": "HTTPCookieContainerHandle"} - ] -} -,{ - "classname": "ISteamHTTP", - "methodname": "SetCookie", - "returntype": "bool", - "params": [ -{ "paramname": "hCookieContainer" ,"paramtype": "HTTPCookieContainerHandle"}, -{ "paramname": "pchHost" ,"paramtype": "const char *"}, -{ "paramname": "pchUrl" ,"paramtype": "const char *"}, -{ "paramname": "pchCookie" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamHTTP", - "methodname": "SetHTTPRequestCookieContainer", - "returntype": "bool", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HTTPRequestHandle"}, -{ "paramname": "hCookieContainer" ,"paramtype": "HTTPCookieContainerHandle"} - ] -} -,{ - "classname": "ISteamHTTP", - "methodname": "SetHTTPRequestUserAgentInfo", - "returntype": "bool", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HTTPRequestHandle"}, -{ "paramname": "pchUserAgentInfo" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamHTTP", - "methodname": "SetHTTPRequestRequiresVerifiedCertificate", - "returntype": "bool", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HTTPRequestHandle"}, -{ "paramname": "bRequireVerifiedCertificate" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamHTTP", - "methodname": "SetHTTPRequestAbsoluteTimeoutMS", - "returntype": "bool", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HTTPRequestHandle"}, -{ "paramname": "unMilliseconds" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamHTTP", - "methodname": "GetHTTPRequestWasTimedOut", - "returntype": "bool", - "params": [ -{ "paramname": "hRequest" ,"paramtype": "HTTPRequestHandle"}, -{ "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", - "returntype": "bool" -} -,{ - "classname": "ISteamController", - "methodname": "Shutdown", - "returntype": "bool" -} -,{ - "classname": "ISteamController", - "methodname": "RunFrame", - "returntype": "void" -} -,{ - "classname": "ISteamController", - "methodname": "GetConnectedControllers", - "returntype": "int", - "params": [ -{ "paramname": "handlesOut" ,"paramtype": "ControllerHandle_t *"} - ] -} -,{ - "classname": "ISteamController", - "methodname": "ShowBindingPanel", - "returntype": "bool", - "params": [ -{ "paramname": "controllerHandle" ,"paramtype": "ControllerHandle_t"} - ] -} -,{ - "classname": "ISteamController", - "methodname": "GetActionSetHandle", - "returntype": "ControllerActionSetHandle_t", - "params": [ -{ "paramname": "pszActionSetName" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamController", - "methodname": "ActivateActionSet", - "returntype": "void", - "params": [ -{ "paramname": "controllerHandle" ,"paramtype": "ControllerHandle_t"}, -{ "paramname": "actionSetHandle" ,"paramtype": "ControllerActionSetHandle_t"} - ] -} -,{ - "classname": "ISteamController", - "methodname": "GetCurrentActionSet", - "returntype": "ControllerActionSetHandle_t", - "params": [ -{ "paramname": "controllerHandle" ,"paramtype": "ControllerHandle_t"} - ] -} -,{ - "classname": "ISteamController", - "methodname": "GetDigitalActionHandle", - "returntype": "ControllerDigitalActionHandle_t", - "params": [ -{ "paramname": "pszActionName" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamController", - "methodname": "GetDigitalActionData", - "returntype": "struct ControllerDigitalActionData_t", - "params": [ -{ "paramname": "controllerHandle" ,"paramtype": "ControllerHandle_t"}, -{ "paramname": "digitalActionHandle" ,"paramtype": "ControllerDigitalActionHandle_t"} - ] -} -,{ - "classname": "ISteamController", - "methodname": "GetDigitalActionOrigins", - "returntype": "int", - "params": [ -{ "paramname": "controllerHandle" ,"paramtype": "ControllerHandle_t"}, -{ "paramname": "actionSetHandle" ,"paramtype": "ControllerActionSetHandle_t"}, -{ "paramname": "digitalActionHandle" ,"paramtype": "ControllerDigitalActionHandle_t"}, -{ "paramname": "originsOut" ,"paramtype": "EControllerActionOrigin *"} - ] -} -,{ - "classname": "ISteamController", - "methodname": "GetAnalogActionHandle", - "returntype": "ControllerAnalogActionHandle_t", - "params": [ -{ "paramname": "pszActionName" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamController", - "methodname": "GetAnalogActionData", - "returntype": "struct ControllerAnalogActionData_t", - "params": [ -{ "paramname": "controllerHandle" ,"paramtype": "ControllerHandle_t"}, -{ "paramname": "analogActionHandle" ,"paramtype": "ControllerAnalogActionHandle_t"} - ] -} -,{ - "classname": "ISteamController", - "methodname": "GetAnalogActionOrigins", - "returntype": "int", - "params": [ -{ "paramname": "controllerHandle" ,"paramtype": "ControllerHandle_t"}, -{ "paramname": "actionSetHandle" ,"paramtype": "ControllerActionSetHandle_t"}, -{ "paramname": "analogActionHandle" ,"paramtype": "ControllerAnalogActionHandle_t"}, -{ "paramname": "originsOut" ,"paramtype": "EControllerActionOrigin *"} - ] -} -,{ - "classname": "ISteamController", - "methodname": "StopAnalogActionMomentum", - "returntype": "void", - "params": [ -{ "paramname": "controllerHandle" ,"paramtype": "ControllerHandle_t"}, -{ "paramname": "eAction" ,"paramtype": "ControllerAnalogActionHandle_t"} - ] -} -,{ - "classname": "ISteamController", - "methodname": "TriggerHapticPulse", - "returntype": "void", - "params": [ -{ "paramname": "controllerHandle" ,"paramtype": "ControllerHandle_t"}, -{ "paramname": "eTargetPad" ,"paramtype": "ESteamControllerPad"}, -{ "paramname": "usDurationMicroSec" ,"paramtype": "unsigned short"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "CreateQueryUserUGCRequest", - "returntype": "UGCQueryHandle_t", - "params": [ -{ "paramname": "unAccountID" ,"paramtype": "AccountID_t"}, -{ "paramname": "eListType" ,"paramtype": "EUserUGCList"}, -{ "paramname": "eMatchingUGCType" ,"paramtype": "EUGCMatchingUGCType"}, -{ "paramname": "eSortOrder" ,"paramtype": "EUserUGCListSortOrder"}, -{ "paramname": "nCreatorAppID" ,"paramtype": "AppId_t"}, -{ "paramname": "nConsumerAppID" ,"paramtype": "AppId_t"}, -{ "paramname": "unPage" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "CreateQueryAllUGCRequest", - "returntype": "UGCQueryHandle_t", - "params": [ -{ "paramname": "eQueryType" ,"paramtype": "EUGCQuery"}, -{ "paramname": "eMatchingeMatchingUGCTypeFileType" ,"paramtype": "EUGCMatchingUGCType"}, -{ "paramname": "nCreatorAppID" ,"paramtype": "AppId_t"}, -{ "paramname": "nConsumerAppID" ,"paramtype": "AppId_t"}, -{ "paramname": "unPage" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "CreateQueryUGCDetailsRequest", - "returntype": "UGCQueryHandle_t", - "params": [ -{ "paramname": "pvecPublishedFileID" ,"paramtype": "PublishedFileId_t *"}, -{ "paramname": "unNumPublishedFileIDs" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "SendQueryUGCRequest", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "GetQueryUGCResult", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"}, -{ "paramname": "index" ,"paramtype": "uint32"}, -{ "paramname": "pDetails" ,"paramtype": "struct SteamUGCDetails_t *"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "GetQueryUGCPreviewURL", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"}, -{ "paramname": "index" ,"paramtype": "uint32"}, -{ "paramname": "pchURL" ,"paramtype": "char *"}, -{ "paramname": "cchURLSize" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "GetQueryUGCMetadata", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"}, -{ "paramname": "index" ,"paramtype": "uint32"}, -{ "paramname": "pchMetadata" ,"paramtype": "char *"}, -{ "paramname": "cchMetadatasize" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "GetQueryUGCChildren", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"}, -{ "paramname": "index" ,"paramtype": "uint32"}, -{ "paramname": "pvecPublishedFileID" ,"paramtype": "PublishedFileId_t *"}, -{ "paramname": "cMaxEntries" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "GetQueryUGCStatistic", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"}, -{ "paramname": "index" ,"paramtype": "uint32"}, -{ "paramname": "eStatType" ,"paramtype": "EItemStatistic"}, -{ "paramname": "pStatValue" ,"paramtype": "uint32 *"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "GetQueryUGCNumAdditionalPreviews", - "returntype": "uint32", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"}, -{ "paramname": "index" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "GetQueryUGCAdditionalPreview", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"}, -{ "paramname": "index" ,"paramtype": "uint32"}, -{ "paramname": "previewIndex" ,"paramtype": "uint32"}, -{ "paramname": "pchURLOrVideoID" ,"paramtype": "char *"}, -{ "paramname": "cchURLSize" ,"paramtype": "uint32"}, -{ "paramname": "pbIsImage" ,"paramtype": "bool *"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "GetQueryUGCNumKeyValueTags", - "returntype": "uint32", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"}, -{ "paramname": "index" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "GetQueryUGCKeyValueTag", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"}, -{ "paramname": "index" ,"paramtype": "uint32"}, -{ "paramname": "keyValueTagIndex" ,"paramtype": "uint32"}, -{ "paramname": "pchKey" ,"paramtype": "char *"}, -{ "paramname": "cchKeySize" ,"paramtype": "uint32"}, -{ "paramname": "pchValue" ,"paramtype": "char *"}, -{ "paramname": "cchValueSize" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "ReleaseQueryUGCRequest", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "AddRequiredTag", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"}, -{ "paramname": "pTagName" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "AddExcludedTag", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"}, -{ "paramname": "pTagName" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "SetReturnKeyValueTags", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"}, -{ "paramname": "bReturnKeyValueTags" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "SetReturnLongDescription", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"}, -{ "paramname": "bReturnLongDescription" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "SetReturnMetadata", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"}, -{ "paramname": "bReturnMetadata" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "SetReturnChildren", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"}, -{ "paramname": "bReturnChildren" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "SetReturnAdditionalPreviews", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"}, -{ "paramname": "bReturnAdditionalPreviews" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "SetReturnTotalOnly", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"}, -{ "paramname": "bReturnTotalOnly" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "SetLanguage", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"}, -{ "paramname": "pchLanguage" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "SetAllowCachedResponse", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"}, -{ "paramname": "unMaxAgeSeconds" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "SetCloudFileNameFilter", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"}, -{ "paramname": "pMatchCloudFileName" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "SetMatchAnyTag", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"}, -{ "paramname": "bMatchAnyTag" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "SetSearchText", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"}, -{ "paramname": "pSearchText" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "SetRankedByTrendDays", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"}, -{ "paramname": "unDays" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "AddRequiredKeyValueTag", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCQueryHandle_t"}, -{ "paramname": "pKey" ,"paramtype": "const char *"}, -{ "paramname": "pValue" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "RequestUGCDetails", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "nPublishedFileID" ,"paramtype": "PublishedFileId_t"}, -{ "paramname": "unMaxAgeSeconds" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "CreateItem", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "nConsumerAppId" ,"paramtype": "AppId_t"}, -{ "paramname": "eFileType" ,"paramtype": "EWorkshopFileType"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "StartItemUpdate", - "returntype": "UGCUpdateHandle_t", - "params": [ -{ "paramname": "nConsumerAppId" ,"paramtype": "AppId_t"}, -{ "paramname": "nPublishedFileID" ,"paramtype": "PublishedFileId_t"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "SetItemTitle", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCUpdateHandle_t"}, -{ "paramname": "pchTitle" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "SetItemDescription", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCUpdateHandle_t"}, -{ "paramname": "pchDescription" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "SetItemUpdateLanguage", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCUpdateHandle_t"}, -{ "paramname": "pchLanguage" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "SetItemMetadata", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCUpdateHandle_t"}, -{ "paramname": "pchMetaData" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "SetItemVisibility", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCUpdateHandle_t"}, -{ "paramname": "eVisibility" ,"paramtype": "ERemoteStoragePublishedFileVisibility"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "SetItemTags", - "returntype": "bool", - "params": [ -{ "paramname": "updateHandle" ,"paramtype": "UGCUpdateHandle_t"}, -{ "paramname": "pTags" ,"paramtype": "const struct SteamParamStringArray_t *"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "SetItemContent", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCUpdateHandle_t"}, -{ "paramname": "pszContentFolder" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "SetItemPreview", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCUpdateHandle_t"}, -{ "paramname": "pszPreviewFile" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "RemoveItemKeyValueTags", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCUpdateHandle_t"}, -{ "paramname": "pchKey" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "AddItemKeyValueTag", - "returntype": "bool", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCUpdateHandle_t"}, -{ "paramname": "pchKey" ,"paramtype": "const char *"}, -{ "paramname": "pchValue" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "SubmitItemUpdate", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCUpdateHandle_t"}, -{ "paramname": "pchChangeNote" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "GetItemUpdateProgress", - "returntype": "EItemUpdateStatus", - "params": [ -{ "paramname": "handle" ,"paramtype": "UGCUpdateHandle_t"}, -{ "paramname": "punBytesProcessed" ,"paramtype": "uint64 *"}, -{ "paramname": "punBytesTotal" ,"paramtype": "uint64 *"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "SetUserItemVote", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "nPublishedFileID" ,"paramtype": "PublishedFileId_t"}, -{ "paramname": "bVoteUp" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "GetUserItemVote", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "nPublishedFileID" ,"paramtype": "PublishedFileId_t"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "AddItemToFavorites", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "nAppId" ,"paramtype": "AppId_t"}, -{ "paramname": "nPublishedFileID" ,"paramtype": "PublishedFileId_t"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "RemoveItemFromFavorites", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "nAppId" ,"paramtype": "AppId_t"}, -{ "paramname": "nPublishedFileID" ,"paramtype": "PublishedFileId_t"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "SubscribeItem", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "nPublishedFileID" ,"paramtype": "PublishedFileId_t"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "UnsubscribeItem", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "nPublishedFileID" ,"paramtype": "PublishedFileId_t"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "GetNumSubscribedItems", - "returntype": "uint32" -} -,{ - "classname": "ISteamUGC", - "methodname": "GetSubscribedItems", - "returntype": "uint32", - "params": [ -{ "paramname": "pvecPublishedFileID" ,"paramtype": "PublishedFileId_t *"}, -{ "paramname": "cMaxEntries" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "GetItemState", - "returntype": "uint32", - "params": [ -{ "paramname": "nPublishedFileID" ,"paramtype": "PublishedFileId_t"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "GetItemInstallInfo", - "returntype": "bool", - "params": [ -{ "paramname": "nPublishedFileID" ,"paramtype": "PublishedFileId_t"}, -{ "paramname": "punSizeOnDisk" ,"paramtype": "uint64 *"}, -{ "paramname": "pchFolder" ,"paramtype": "char *"}, -{ "paramname": "cchFolderSize" ,"paramtype": "uint32"}, -{ "paramname": "punTimeStamp" ,"paramtype": "uint32 *"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "GetItemDownloadInfo", - "returntype": "bool", - "params": [ -{ "paramname": "nPublishedFileID" ,"paramtype": "PublishedFileId_t"}, -{ "paramname": "punBytesDownloaded" ,"paramtype": "uint64 *"}, -{ "paramname": "punBytesTotal" ,"paramtype": "uint64 *"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "DownloadItem", - "returntype": "bool", - "params": [ -{ "paramname": "nPublishedFileID" ,"paramtype": "PublishedFileId_t"}, -{ "paramname": "bHighPriority" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "BInitWorkshopForGameServer", - "returntype": "bool", - "params": [ -{ "paramname": "unWorkshopDepotID" ,"paramtype": "DepotId_t"}, -{ "paramname": "pszFolder" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamUGC", - "methodname": "SuspendDownloads", - "returntype": "void", - "params": [ -{ "paramname": "bSuspend" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamAppList", - "methodname": "GetNumInstalledApps", - "returntype": "uint32" -} -,{ - "classname": "ISteamAppList", - "methodname": "GetInstalledApps", - "returntype": "uint32", - "params": [ -{ "paramname": "pvecAppID" ,"paramtype": "AppId_t *"}, -{ "paramname": "unMaxAppIDs" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamAppList", - "methodname": "GetAppName", - "returntype": "int", - "params": [ -{ "paramname": "nAppID" ,"paramtype": "AppId_t"}, -{ "paramname": "pchName" ,"paramtype": "char *"}, -{ "paramname": "cchNameMax" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamAppList", - "methodname": "GetAppInstallDir", - "returntype": "int", - "params": [ -{ "paramname": "nAppID" ,"paramtype": "AppId_t"}, -{ "paramname": "pchDirectory" ,"paramtype": "char *"}, -{ "paramname": "cchNameMax" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamAppList", - "methodname": "GetAppBuildId", - "returntype": "int", - "params": [ -{ "paramname": "nAppID" ,"paramtype": "AppId_t"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "DestructISteamHTMLSurface", - "returntype": "void" -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "Init", - "returntype": "bool" -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "Shutdown", - "returntype": "bool" -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "CreateBrowser", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "pchUserAgent" ,"paramtype": "const char *"}, -{ "paramname": "pchUserCSS" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "RemoveBrowser", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "LoadURL", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"}, -{ "paramname": "pchURL" ,"paramtype": "const char *"}, -{ "paramname": "pchPostData" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "SetSize", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"}, -{ "paramname": "unWidth" ,"paramtype": "uint32"}, -{ "paramname": "unHeight" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "StopLoad", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "Reload", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "GoBack", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "GoForward", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "AddHeader", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"}, -{ "paramname": "pchKey" ,"paramtype": "const char *"}, -{ "paramname": "pchValue" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "ExecuteJavascript", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"}, -{ "paramname": "pchScript" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "MouseUp", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"}, -{ "paramname": "eMouseButton" ,"paramtype": "ISteamHTMLSurface::EHTMLMouseButton"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "MouseDown", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"}, -{ "paramname": "eMouseButton" ,"paramtype": "ISteamHTMLSurface::EHTMLMouseButton"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "MouseDoubleClick", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"}, -{ "paramname": "eMouseButton" ,"paramtype": "ISteamHTMLSurface::EHTMLMouseButton"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "MouseMove", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"}, -{ "paramname": "x" ,"paramtype": "int"}, -{ "paramname": "y" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "MouseWheel", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"}, -{ "paramname": "nDelta" ,"paramtype": "int32"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "KeyDown", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"}, -{ "paramname": "nNativeKeyCode" ,"paramtype": "uint32"}, -{ "paramname": "eHTMLKeyModifiers" ,"paramtype": "ISteamHTMLSurface::EHTMLKeyModifiers"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "KeyUp", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"}, -{ "paramname": "nNativeKeyCode" ,"paramtype": "uint32"}, -{ "paramname": "eHTMLKeyModifiers" ,"paramtype": "ISteamHTMLSurface::EHTMLKeyModifiers"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "KeyChar", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"}, -{ "paramname": "cUnicodeChar" ,"paramtype": "uint32"}, -{ "paramname": "eHTMLKeyModifiers" ,"paramtype": "ISteamHTMLSurface::EHTMLKeyModifiers"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "SetHorizontalScroll", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"}, -{ "paramname": "nAbsolutePixelScroll" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "SetVerticalScroll", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"}, -{ "paramname": "nAbsolutePixelScroll" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "SetKeyFocus", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"}, -{ "paramname": "bHasKeyFocus" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "ViewSource", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "CopyToClipboard", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "PasteFromClipboard", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "Find", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"}, -{ "paramname": "pchSearchStr" ,"paramtype": "const char *"}, -{ "paramname": "bCurrentlyInFind" ,"paramtype": "bool"}, -{ "paramname": "bReverse" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "StopFind", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "GetLinkAtPosition", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"}, -{ "paramname": "x" ,"paramtype": "int"}, -{ "paramname": "y" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "SetCookie", - "returntype": "void", - "params": [ -{ "paramname": "pchHostname" ,"paramtype": "const char *"}, -{ "paramname": "pchKey" ,"paramtype": "const char *"}, -{ "paramname": "pchValue" ,"paramtype": "const char *"}, -{ "paramname": "pchPath" ,"paramtype": "const char *"}, -{ "paramname": "nExpires" ,"paramtype": "RTime32"}, -{ "paramname": "bSecure" ,"paramtype": "bool"}, -{ "paramname": "bHTTPOnly" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "SetPageScaleFactor", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"}, -{ "paramname": "flZoom" ,"paramtype": "float"}, -{ "paramname": "nPointX" ,"paramtype": "int"}, -{ "paramname": "nPointY" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "SetBackgroundMode", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"}, -{ "paramname": "bBackgroundMode" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "AllowStartRequest", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"}, -{ "paramname": "bAllowed" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "JSDialogResponse", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"}, -{ "paramname": "bResult" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamHTMLSurface", - "methodname": "FileLoadDialogResponse", - "returntype": "void", - "params": [ -{ "paramname": "unBrowserHandle" ,"paramtype": "HHTMLBrowser"}, -{ "paramname": "pchSelectedFiles" ,"paramtype": "const char **"} - ] -} -,{ - "classname": "ISteamInventory", - "methodname": "GetResultStatus", "desc": "Find out the status of an asynchronous inventory result handle.", - "returntype": "EResult", - "params": [ -{ "paramname": "resultHandle" ,"paramtype": "SteamInventoryResult_t"} - ] -} -,{ - "classname": "ISteamInventory", - "methodname": "GetResultItems", "desc": "Copies the contents of a result set into a flat array. The specific contents of the result set depend on which query which was used.", - "returntype": "bool", - "params": [ -{ "paramname": "resultHandle" ,"paramtype": "SteamInventoryResult_t"}, -{ "paramname": "pOutItemsArray" ,"out_array_count": "punOutItemsArraySize" ,"desc": "Output array" ,"paramtype": "struct SteamItemDetails_t *"}, -{ "paramname": "punOutItemsArraySize" ,"paramtype": "uint32 *"} - ] -} -,{ - "classname": "ISteamInventory", - "methodname": "GetResultTimestamp", "desc": "Returns the server time at which the result was generated. Compare against the value of IClientUtils::GetServerRealTime() to determine age.", - "returntype": "uint32", - "params": [ -{ "paramname": "resultHandle" ,"paramtype": "SteamInventoryResult_t"} - ] -} -,{ - "classname": "ISteamInventory", - "methodname": "CheckResultSteamID", "desc": "Returns true if the result belongs to the target steam ID or false if the result does not. This is important when using DeserializeResult to verify that a remote player is not pretending to have a different users inventory.", - "returntype": "bool", - "params": [ -{ "paramname": "resultHandle" ,"paramtype": "SteamInventoryResult_t"}, -{ "paramname": "steamIDExpected" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamInventory", - "methodname": "DestroyResult", "desc": "Destroys a result handle and frees all associated memory.", - "returntype": "void", - "params": [ -{ "paramname": "resultHandle" ,"paramtype": "SteamInventoryResult_t"} - ] -} -,{ - "classname": "ISteamInventory", - "methodname": "GetAllItems", "desc": "Captures the entire state of the current users Steam inventory.", - "returntype": "bool", - "params": [ -{ "paramname": "pResultHandle" ,"paramtype": "SteamInventoryResult_t *"} - ] -} -,{ - "classname": "ISteamInventory", - "methodname": "GetItemsByID", "desc": "Captures the state of a subset of the current users Steam inventory identified by an array of item instance IDs.", - "returntype": "bool", - "params": [ -{ "paramname": "pResultHandle" ,"paramtype": "SteamInventoryResult_t *"}, -{ "paramname": "pInstanceIDs" ,"array_count": "unCountInstanceIDs" ,"paramtype": "const SteamItemInstanceID_t *"}, -{ "paramname": "unCountInstanceIDs" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamInventory", - "methodname": "SerializeResult", - "returntype": "bool", - "params": [ -{ "paramname": "resultHandle" ,"paramtype": "SteamInventoryResult_t"}, -{ "paramname": "pOutBuffer" ,"out_buffer_count": "punOutBufferSize" ,"paramtype": "void *"}, -{ "paramname": "punOutBufferSize" ,"paramtype": "uint32 *"} - ] -} -,{ - "classname": "ISteamInventory", - "methodname": "DeserializeResult", - "returntype": "bool", - "params": [ -{ "paramname": "pOutResultHandle" ,"paramtype": "SteamInventoryResult_t *"}, -{ "paramname": "pBuffer" ,"buffer_count": "punOutBufferSize" ,"paramtype": "const void *"}, -{ "paramname": "unBufferSize" ,"paramtype": "uint32"}, -{ "paramname": "bRESERVED_MUST_BE_FALSE" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamInventory", - "methodname": "GenerateItems", - "returntype": "bool", - "params": [ -{ "paramname": "pResultHandle" ,"paramtype": "SteamInventoryResult_t *"}, -{ "paramname": "pArrayItemDefs" ,"array_count": "unArrayLength" ,"paramtype": "const SteamItemDef_t *"}, -{ "paramname": "punArrayQuantity" ,"array_count": "unArrayLength" ,"paramtype": "const uint32 *"}, -{ "paramname": "unArrayLength" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamInventory", - "methodname": "GrantPromoItems", "desc": "GrantPromoItems() checks the list of promotional items for which the user may be eligible and grants the items (one time only).", - "returntype": "bool", - "params": [ -{ "paramname": "pResultHandle" ,"paramtype": "SteamInventoryResult_t *"} - ] -} -,{ - "classname": "ISteamInventory", - "methodname": "AddPromoItem", - "returntype": "bool", - "params": [ -{ "paramname": "pResultHandle" ,"paramtype": "SteamInventoryResult_t *"}, -{ "paramname": "itemDef" ,"paramtype": "SteamItemDef_t"} - ] -} -,{ - "classname": "ISteamInventory", - "methodname": "AddPromoItems", - "returntype": "bool", - "params": [ -{ "paramname": "pResultHandle" ,"paramtype": "SteamInventoryResult_t *"}, -{ "paramname": "pArrayItemDefs" ,"array_count": "unArrayLength" ,"paramtype": "const SteamItemDef_t *"}, -{ "paramname": "unArrayLength" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamInventory", - "methodname": "ConsumeItem", "desc": "ConsumeItem() removes items from the inventory permanently.", - "returntype": "bool", - "params": [ -{ "paramname": "pResultHandle" ,"paramtype": "SteamInventoryResult_t *"}, -{ "paramname": "itemConsume" ,"paramtype": "SteamItemInstanceID_t"}, -{ "paramname": "unQuantity" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamInventory", - "methodname": "ExchangeItems", - "returntype": "bool", - "params": [ -{ "paramname": "pResultHandle" ,"paramtype": "SteamInventoryResult_t *"}, -{ "paramname": "pArrayGenerate" ,"array_count": "unArrayGenerateLength" ,"paramtype": "const SteamItemDef_t *"}, -{ "paramname": "punArrayGenerateQuantity" ,"array_count": "unArrayGenerateLength" ,"paramtype": "const uint32 *"}, -{ "paramname": "unArrayGenerateLength" ,"paramtype": "uint32"}, -{ "paramname": "pArrayDestroy" ,"array_count": "unArrayDestroyLength" ,"paramtype": "const SteamItemInstanceID_t *"}, -{ "paramname": "punArrayDestroyQuantity" ,"array_count": "unArrayDestroyLength" ,"paramtype": "const uint32 *"}, -{ "paramname": "unArrayDestroyLength" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamInventory", - "methodname": "TransferItemQuantity", - "returntype": "bool", - "params": [ -{ "paramname": "pResultHandle" ,"paramtype": "SteamInventoryResult_t *"}, -{ "paramname": "itemIdSource" ,"paramtype": "SteamItemInstanceID_t"}, -{ "paramname": "unQuantity" ,"paramtype": "uint32"}, -{ "paramname": "itemIdDest" ,"paramtype": "SteamItemInstanceID_t"} - ] -} -,{ - "classname": "ISteamInventory", - "methodname": "SendItemDropHeartbeat", "desc": "Applications which use timed-drop mechanics should call SendItemDropHeartbeat() when active gameplay begins and at least once every two minutes afterwards.", - "returntype": "void" -} -,{ - "classname": "ISteamInventory", - "methodname": "TriggerItemDrop", "desc": "Playtime credit must be consumed and turned into item drops by your game.", - "returntype": "bool", - "params": [ -{ "paramname": "pResultHandle" ,"paramtype": "SteamInventoryResult_t *"}, -{ "paramname": "dropListDefinition" ,"paramtype": "SteamItemDef_t"} - ] -} -,{ - "classname": "ISteamInventory", - "methodname": "TradeItems", - "returntype": "bool", - "params": [ -{ "paramname": "pResultHandle" ,"paramtype": "SteamInventoryResult_t *"}, -{ "paramname": "steamIDTradePartner" ,"paramtype": "class CSteamID"}, -{ "paramname": "pArrayGive" ,"array_count": "nArrayGiveLength" ,"paramtype": "const SteamItemInstanceID_t *"}, -{ "paramname": "pArrayGiveQuantity" ,"array_count": "nArrayGiveLength" ,"paramtype": "const uint32 *"}, -{ "paramname": "nArrayGiveLength" ,"paramtype": "uint32"}, -{ "paramname": "pArrayGet" ,"array_count": "nArrayGetLength" ,"paramtype": "const SteamItemInstanceID_t *"}, -{ "paramname": "pArrayGetQuantity" ,"array_count": "nArrayGetLength" ,"paramtype": "const uint32 *"}, -{ "paramname": "nArrayGetLength" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamInventory", - "methodname": "LoadItemDefinitions", "desc": "LoadItemDefinitions triggers the automatic load and refresh of item definitions.", - "returntype": "bool" -} -,{ - "classname": "ISteamInventory", - "methodname": "GetItemDefinitionIDs", - "returntype": "bool", - "params": [ -{ "paramname": "pItemDefIDs" ,"out_array_count": "punItemDefIDsArraySize" ,"desc": "List of item definition IDs" ,"paramtype": "SteamItemDef_t *"}, -{ "paramname": "punItemDefIDsArraySize" ,"desc": "Size of array is passed in and actual size used is returned in this param" ,"paramtype": "uint32 *"} - ] -} -,{ - "classname": "ISteamInventory", - "methodname": "GetItemDefinitionProperty", - "returntype": "bool", - "params": [ -{ "paramname": "iDefinition" ,"paramtype": "SteamItemDef_t"}, -{ "paramname": "pchPropertyName" ,"paramtype": "const char *"}, -{ "paramname": "pchValueBuffer" ,"out_string_count": "punValueBufferSize" ,"paramtype": "char *"}, -{ "paramname": "punValueBufferSize" ,"paramtype": "uint32 *"} - ] -} -,{ - "classname": "ISteamVideo", - "methodname": "GetVideoURL", - "returntype": "void", - "params": [ -{ "paramname": "unVideoAppID" ,"paramtype": "AppId_t"} - ] -} -,{ - "classname": "ISteamVideo", - "methodname": "IsBroadcasting", - "returntype": "bool", - "params": [ -{ "paramname": "pnNumViewers" ,"paramtype": "int *"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "InitGameServer", - "returntype": "bool", - "params": [ -{ "paramname": "unIP" ,"paramtype": "uint32"}, -{ "paramname": "usGamePort" ,"paramtype": "uint16"}, -{ "paramname": "usQueryPort" ,"paramtype": "uint16"}, -{ "paramname": "unFlags" ,"paramtype": "uint32"}, -{ "paramname": "nGameAppId" ,"paramtype": "AppId_t"}, -{ "paramname": "pchVersionString" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "SetProduct", - "returntype": "void", - "params": [ -{ "paramname": "pszProduct" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "SetGameDescription", - "returntype": "void", - "params": [ -{ "paramname": "pszGameDescription" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "SetModDir", - "returntype": "void", - "params": [ -{ "paramname": "pszModDir" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "SetDedicatedServer", - "returntype": "void", - "params": [ -{ "paramname": "bDedicated" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "LogOn", - "returntype": "void", - "params": [ -{ "paramname": "pszToken" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "LogOnAnonymous", - "returntype": "void" -} -,{ - "classname": "ISteamGameServer", - "methodname": "LogOff", - "returntype": "void" -} -,{ - "classname": "ISteamGameServer", - "methodname": "BLoggedOn", - "returntype": "bool" -} -,{ - "classname": "ISteamGameServer", - "methodname": "BSecure", - "returntype": "bool" -} -,{ - "classname": "ISteamGameServer", - "methodname": "GetSteamID", - "returntype": "class CSteamID" -} -,{ - "classname": "ISteamGameServer", - "methodname": "WasRestartRequested", - "returntype": "bool" -} -,{ - "classname": "ISteamGameServer", - "methodname": "SetMaxPlayerCount", - "returntype": "void", - "params": [ -{ "paramname": "cPlayersMax" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "SetBotPlayerCount", - "returntype": "void", - "params": [ -{ "paramname": "cBotplayers" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "SetServerName", - "returntype": "void", - "params": [ -{ "paramname": "pszServerName" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "SetMapName", - "returntype": "void", - "params": [ -{ "paramname": "pszMapName" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "SetPasswordProtected", - "returntype": "void", - "params": [ -{ "paramname": "bPasswordProtected" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "SetSpectatorPort", - "returntype": "void", - "params": [ -{ "paramname": "unSpectatorPort" ,"paramtype": "uint16"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "SetSpectatorServerName", - "returntype": "void", - "params": [ -{ "paramname": "pszSpectatorServerName" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "ClearAllKeyValues", - "returntype": "void" -} -,{ - "classname": "ISteamGameServer", - "methodname": "SetKeyValue", - "returntype": "void", - "params": [ -{ "paramname": "pKey" ,"paramtype": "const char *"}, -{ "paramname": "pValue" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "SetGameTags", - "returntype": "void", - "params": [ -{ "paramname": "pchGameTags" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "SetGameData", - "returntype": "void", - "params": [ -{ "paramname": "pchGameData" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "SetRegion", - "returntype": "void", - "params": [ -{ "paramname": "pszRegion" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "SendUserConnectAndAuthenticate", - "returntype": "bool", - "params": [ -{ "paramname": "unIPClient" ,"paramtype": "uint32"}, -{ "paramname": "pvAuthBlob" ,"paramtype": "const void *"}, -{ "paramname": "cubAuthBlobSize" ,"paramtype": "uint32"}, -{ "paramname": "pSteamIDUser" ,"paramtype": "class CSteamID *"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "CreateUnauthenticatedUserConnection", - "returntype": "class CSteamID" -} -,{ - "classname": "ISteamGameServer", - "methodname": "SendUserDisconnect", - "returntype": "void", - "params": [ -{ "paramname": "steamIDUser" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "BUpdateUserData", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDUser" ,"paramtype": "class CSteamID"}, -{ "paramname": "pchPlayerName" ,"paramtype": "const char *"}, -{ "paramname": "uScore" ,"paramtype": "uint32"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "GetAuthSessionTicket", - "returntype": "HAuthTicket", - "params": [ -{ "paramname": "pTicket" ,"paramtype": "void *"}, -{ "paramname": "cbMaxTicket" ,"paramtype": "int"}, -{ "paramname": "pcbTicket" ,"paramtype": "uint32 *"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "BeginAuthSession", - "returntype": "EBeginAuthSessionResult", - "params": [ -{ "paramname": "pAuthTicket" ,"paramtype": "const void *"}, -{ "paramname": "cbAuthTicket" ,"paramtype": "int"}, -{ "paramname": "steamID" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "EndAuthSession", - "returntype": "void", - "params": [ -{ "paramname": "steamID" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "CancelAuthTicket", - "returntype": "void", - "params": [ -{ "paramname": "hAuthTicket" ,"paramtype": "HAuthTicket"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "UserHasLicenseForApp", - "returntype": "EUserHasLicenseForAppResult", - "params": [ -{ "paramname": "steamID" ,"paramtype": "class CSteamID"}, -{ "paramname": "appID" ,"paramtype": "AppId_t"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "RequestUserGroupStatus", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDUser" ,"paramtype": "class CSteamID"}, -{ "paramname": "steamIDGroup" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "GetGameplayStats", - "returntype": "void" -} -,{ - "classname": "ISteamGameServer", - "methodname": "GetServerReputation", - "returntype": "SteamAPICall_t" -} -,{ - "classname": "ISteamGameServer", - "methodname": "GetPublicIP", - "returntype": "uint32" -} -,{ - "classname": "ISteamGameServer", - "methodname": "HandleIncomingPacket", - "returntype": "bool", - "params": [ -{ "paramname": "pData" ,"paramtype": "const void *"}, -{ "paramname": "cbData" ,"paramtype": "int"}, -{ "paramname": "srcIP" ,"paramtype": "uint32"}, -{ "paramname": "srcPort" ,"paramtype": "uint16"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "GetNextOutgoingPacket", - "returntype": "int", - "params": [ -{ "paramname": "pOut" ,"paramtype": "void *"}, -{ "paramname": "cbMaxOut" ,"paramtype": "int"}, -{ "paramname": "pNetAdr" ,"paramtype": "uint32 *"}, -{ "paramname": "pPort" ,"paramtype": "uint16 *"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "EnableHeartbeats", - "returntype": "void", - "params": [ -{ "paramname": "bActive" ,"paramtype": "bool"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "SetHeartbeatInterval", - "returntype": "void", - "params": [ -{ "paramname": "iHeartbeatInterval" ,"paramtype": "int"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "ForceHeartbeat", - "returntype": "void" -} -,{ - "classname": "ISteamGameServer", - "methodname": "AssociateWithClan", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "steamIDClan" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamGameServer", - "methodname": "ComputeNewPlayerCompatibility", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "steamIDNewPlayer" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamGameServerStats", - "methodname": "RequestUserStats", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "steamIDUser" ,"paramtype": "class CSteamID"} - ] -} -,{ - "classname": "ISteamGameServerStats", - "methodname": "GetUserStat", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDUser" ,"paramtype": "class CSteamID"}, -{ "paramname": "pchName" ,"paramtype": "const char *"}, -{ "paramname": "pData" ,"paramtype": "int32 *"} - ] -} -,{ - "classname": "ISteamGameServerStats", - "methodname": "GetUserStat", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDUser" ,"paramtype": "class CSteamID"}, -{ "paramname": "pchName" ,"paramtype": "const char *"}, -{ "paramname": "pData" ,"paramtype": "float *"} - ] -} -,{ - "classname": "ISteamGameServerStats", - "methodname": "GetUserAchievement", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDUser" ,"paramtype": "class CSteamID"}, -{ "paramname": "pchName" ,"paramtype": "const char *"}, -{ "paramname": "pbAchieved" ,"paramtype": "bool *"} - ] -} -,{ - "classname": "ISteamGameServerStats", - "methodname": "SetUserStat", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDUser" ,"paramtype": "class CSteamID"}, -{ "paramname": "pchName" ,"paramtype": "const char *"}, -{ "paramname": "nData" ,"paramtype": "int32"} - ] -} -,{ - "classname": "ISteamGameServerStats", - "methodname": "SetUserStat", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDUser" ,"paramtype": "class CSteamID"}, -{ "paramname": "pchName" ,"paramtype": "const char *"}, -{ "paramname": "fData" ,"paramtype": "float"} - ] -} -,{ - "classname": "ISteamGameServerStats", - "methodname": "UpdateUserAvgRateStat", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDUser" ,"paramtype": "class CSteamID"}, -{ "paramname": "pchName" ,"paramtype": "const char *"}, -{ "paramname": "flCountThisSession" ,"paramtype": "float"}, -{ "paramname": "dSessionLength" ,"paramtype": "double"} - ] -} -,{ - "classname": "ISteamGameServerStats", - "methodname": "SetUserAchievement", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDUser" ,"paramtype": "class CSteamID"}, -{ "paramname": "pchName" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamGameServerStats", - "methodname": "ClearUserAchievement", - "returntype": "bool", - "params": [ -{ "paramname": "steamIDUser" ,"paramtype": "class CSteamID"}, -{ "paramname": "pchName" ,"paramtype": "const char *"} - ] -} -,{ - "classname": "ISteamGameServerStats", - "methodname": "StoreUserStats", - "returntype": "SteamAPICall_t", - "params": [ -{ "paramname": "steamIDUser" ,"paramtype": "class CSteamID"} - ] -} -] -} \ No newline at end of file diff --git a/public/steam/steam_api_flat.h b/public/steam/steam_api_flat.h index 0039a8b1..45ba7c3d 100644 --- a/public/steam/steam_api_flat.h +++ b/public/steam/steam_api_flat.h @@ -14,6 +14,135 @@ #include +typedef unsigned char uint8; +typedef unsigned char uint8; +typedef signed char int8; +typedef short int16; +typedef unsigned short uint16; +typedef int int32; +typedef unsigned int uint32; +typedef long long int64; +typedef unsigned long long uint64; +typedef int64 lint64; +typedef uint64 ulint64; +typedef uint8 Salt_t[8]; +typedef uint64 GID_t; +typedef uint64 JobID_t; +typedef GID_t TxnID_t; +typedef uint32 PackageId_t; +typedef uint32 BundleId_t; +typedef uint32 AppId_t; +typedef uint64 AssetClassId_t; +typedef uint32 PhysicalItemId_t; +typedef uint32 DepotId_t; +typedef uint32 RTime32; +typedef uint32 CellID_t; +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]; +typedef int32 HSteamPipe; +typedef int32 HSteamUser; +typedef int16 FriendsGroupID_t; +typedef void * HServerListRequest; +typedef int HServerQuery; +typedef uint64 UGCHandle_t; +typedef uint64 PublishedFileUpdateHandle_t; +typedef uint64 PublishedFileId_t; +typedef uint64 UGCFileWriteStreamHandle_t; +typedef char compile_time_assert_type[1]; +typedef uint64 SteamLeaderboard_t; +typedef uint64 SteamLeaderboardEntries_t; +typedef uint32 SNetSocket_t; +typedef uint32 SNetListenSocket_t; +typedef uint32 ScreenshotHandle; +typedef uint32 HTTPRequestHandle; +typedef uint32 HTTPCookieContainerHandle; +typedef uint64 ControllerHandle_t; +typedef uint64 ControllerActionSetHandle_t; +typedef uint64 ControllerDigitalActionHandle_t; +typedef uint64 ControllerAnalogActionHandle_t; +typedef uint64 UGCQueryHandle_t; +typedef uint64 UGCUpdateHandle_t; +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; +int const_k_iSteamFriendsCallbacks = 300; +int const_k_iSteamBillingCallbacks = 400; +int const_k_iSteamMatchmakingCallbacks = 500; +int const_k_iSteamContentServerCallbacks = 600; +int const_k_iSteamUtilsCallbacks = 700; +int const_k_iClientFriendsCallbacks = 800; +int const_k_iClientUserCallbacks = 900; +int const_k_iSteamAppsCallbacks = 1000; +int const_k_iSteamUserStatsCallbacks = 1100; +int const_k_iSteamNetworkingCallbacks = 1200; +int const_k_iClientRemoteStorageCallbacks = 1300; +int const_k_iClientDepotBuilderCallbacks = 1400; +int const_k_iSteamGameServerItemsCallbacks = 1500; +int const_k_iClientUtilsCallbacks = 1600; +int const_k_iSteamGameCoordinatorCallbacks = 1700; +int const_k_iSteamGameServerStatsCallbacks = 1800; +int const_k_iSteam2AsyncCallbacks = 1900; +int const_k_iSteamGameStatsCallbacks = 2000; +int const_k_iClientHTTPCallbacks = 2100; +int const_k_iClientScreenshotsCallbacks = 2200; +int const_k_iSteamScreenshotsCallbacks = 2300; +int const_k_iClientAudioCallbacks = 2400; +int const_k_iClientUnifiedMessagesCallbacks = 2500; +int const_k_iSteamStreamLauncherCallbacks = 2600; +int const_k_iClientControllerCallbacks = 2700; +int const_k_iSteamControllerCallbacks = 2800; +int const_k_iClientParentalSettingsCallbacks = 2900; +int const_k_iClientDeviceAuthCallbacks = 3000; +int const_k_iClientNetworkDeviceManagerCallbacks = 3100; +int const_k_iClientMusicCallbacks = 3200; +int const_k_iClientRemoteClientManagerCallbacks = 3300; +int const_k_iClientUGCCallbacks = 3400; +int const_k_iSteamStreamClientCallbacks = 3500; +int const_k_IClientProductBuilderCallbacks = 3600; +int const_k_iClientShortcutsCallbacks = 3700; +int const_k_iClientRemoteControlManagerCallbacks = 3800; +int const_k_iSteamAppListCallbacks = 3900; +int const_k_iSteamMusicCallbacks = 4000; +int const_k_iSteamMusicRemoteCallbacks = 4100; +int const_k_iClientVRCallbacks = 4200; +int const_k_iClientGameNotificationCallbacks = 4300; +int const_k_iSteamGameNotificationCallbacks = 4400; +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; +int const_k_cchMaxRichPresenceKeyLength = 64; +int const_k_cchMaxRichPresenceValueLength = 256; +int const_k_cchStatNameMax = 128; +int const_k_cchLeaderboardNameMax = 128; +int const_k_cLeaderboardDetailsMax = 64; +unsigned long const_k_SteamItemInstanceIDInvalid = 0xffffffff; +int const_k_SteamInventoryResultInvalid = -1; + + + +// OpenVR Enums +// OpenVR Structs + + + S_API HSteamPipe SteamAPI_ISteamClient_CreateSteamPipe(intptr_t instancePtr); S_API bool SteamAPI_ISteamClient_BReleaseSteamPipe(intptr_t instancePtr, HSteamPipe hSteamPipe); S_API HSteamUser SteamAPI_ISteamClient_ConnectToGlobalUser(intptr_t instancePtr, HSteamPipe hSteamPipe); @@ -33,23 +162,19 @@ S_API class ISteamApps * SteamAPI_ISteamClient_GetISteamApps(intptr_t instancePt S_API class ISteamNetworking * SteamAPI_ISteamClient_GetISteamNetworking(intptr_t instancePtr, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion); S_API class ISteamRemoteStorage * SteamAPI_ISteamClient_GetISteamRemoteStorage(intptr_t instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion); S_API class ISteamScreenshots * SteamAPI_ISteamClient_GetISteamScreenshots(intptr_t instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion); -S_API void SteamAPI_ISteamClient_RunFrame(intptr_t instancePtr); 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); S_API class ISteamMusic * SteamAPI_ISteamClient_GetISteamMusic(intptr_t instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion); S_API class ISteamMusicRemote * SteamAPI_ISteamClient_GetISteamMusicRemote(intptr_t instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion); S_API class ISteamHTMLSurface * SteamAPI_ISteamClient_GetISteamHTMLSurface(intptr_t instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion); -S_API void SteamAPI_ISteamClient_Set_SteamAPI_CPostAPIResultInProcess(intptr_t instancePtr, SteamAPI_PostAPIResultInProcess_t func); -S_API void SteamAPI_ISteamClient_Remove_SteamAPI_CPostAPIResultInProcess(intptr_t instancePtr, SteamAPI_PostAPIResultInProcess_t func); -S_API void SteamAPI_ISteamClient_Set_SteamAPI_CCheckCallbackRegisteredInProcess(intptr_t instancePtr, SteamAPI_CheckCallbackRegistered_t func); 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); @@ -59,8 +184,8 @@ S_API void SteamAPI_ISteamUser_TrackAppUsageEvent(intptr_t instancePtr, class CG S_API bool SteamAPI_ISteamUser_GetUserDataFolder(intptr_t instancePtr, char * pchBuffer, int cubBuffer); S_API void SteamAPI_ISteamUser_StartVoiceRecording(intptr_t instancePtr); S_API void SteamAPI_ISteamUser_StopVoiceRecording(intptr_t instancePtr); -S_API EVoiceResult SteamAPI_ISteamUser_GetAvailableVoice(intptr_t instancePtr, uint32 * pcbCompressed, uint32 * pcbUncompressed, uint32 nUncompressedVoiceDesiredSampleRate); -S_API EVoiceResult SteamAPI_ISteamUser_GetVoice(intptr_t instancePtr, bool bWantCompressed, void * pDestBuffer, uint32 cbDestBufferSize, uint32 * nBytesWritten, bool bWantUncompressed, void * pUncompressedDestBuffer, uint32 cbUncompressedDestBufferSize, uint32 * nUncompressBytesWritten, uint32 nUncompressedVoiceDesiredSampleRate); +S_API EVoiceResult SteamAPI_ISteamUser_GetAvailableVoice(intptr_t instancePtr, uint32 * pcbCompressed, uint32 * pcbUncompressed_Deprecated, uint32 nUncompressedVoiceDesiredSampleRate_Deprecated); +S_API EVoiceResult SteamAPI_ISteamUser_GetVoice(intptr_t instancePtr, bool bWantCompressed, void * pDestBuffer, uint32 cbDestBufferSize, uint32 * nBytesWritten, bool bWantUncompressed_Deprecated, void * pUncompressedDestBuffer_Deprecated, uint32 cbUncompressedDestBufferSize_Deprecated, uint32 * nUncompressBytesWritten_Deprecated, uint32 nUncompressedVoiceDesiredSampleRate_Deprecated); S_API EVoiceResult SteamAPI_ISteamUser_DecompressVoice(intptr_t instancePtr, const void * pCompressed, uint32 cbCompressed, void * pDestBuffer, uint32 cbDestBufferSize, uint32 * nBytesWritten, uint32 nDesiredSampleRate); S_API uint32 SteamAPI_ISteamUser_GetVoiceOptimalSampleRate(intptr_t instancePtr); S_API HAuthTicket SteamAPI_ISteamUser_GetAuthSessionTicket(intptr_t instancePtr, void * pTicket, int cbMaxTicket, uint32 * pcbTicket); @@ -75,6 +200,10 @@ S_API bool SteamAPI_ISteamUser_GetEncryptedAppTicket(intptr_t instancePtr, void S_API int SteamAPI_ISteamUser_GetGameBadgeLevel(intptr_t instancePtr, int nSeries, bool bFoil); S_API int SteamAPI_ISteamUser_GetPlayerSteamLevel(intptr_t instancePtr); S_API SteamAPICall_t SteamAPI_ISteamUser_RequestStoreAuthURL(intptr_t instancePtr, const char * pchRedirectURL); +S_API bool SteamAPI_ISteamUser_BIsPhoneVerified(intptr_t instancePtr); +S_API bool SteamAPI_ISteamUser_BIsTwoFactorEnabled(intptr_t instancePtr); +S_API bool SteamAPI_ISteamUser_BIsPhoneIdentifying(intptr_t instancePtr); +S_API bool SteamAPI_ISteamUser_BIsPhoneRequiringVerification(intptr_t instancePtr); S_API const char * SteamAPI_ISteamFriends_GetPersonaName(intptr_t instancePtr); S_API SteamAPICall_t SteamAPI_ISteamFriends_SetPersonaName(intptr_t instancePtr, const char * pchPersonaName); S_API EPersonaState SteamAPI_ISteamFriends_GetPersonaState(intptr_t instancePtr); @@ -145,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); @@ -159,7 +290,6 @@ S_API void SteamAPI_ISteamUtils_SetOverlayNotificationPosition(intptr_t instance S_API bool SteamAPI_ISteamUtils_IsAPICallCompleted(intptr_t instancePtr, SteamAPICall_t hSteamAPICall, bool * pbFailed); S_API ESteamAPICallFailure SteamAPI_ISteamUtils_GetAPICallFailureReason(intptr_t instancePtr, SteamAPICall_t hSteamAPICall); S_API bool SteamAPI_ISteamUtils_GetAPICallResult(intptr_t instancePtr, SteamAPICall_t hSteamAPICall, void * pCallback, int cubCallback, int iCallbackExpected, bool * pbFailed); -S_API void SteamAPI_ISteamUtils_RunFrame(intptr_t instancePtr); S_API uint32 SteamAPI_ISteamUtils_GetIPCCallCount(intptr_t instancePtr); S_API void SteamAPI_ISteamUtils_SetWarningMessageHook(intptr_t instancePtr, SteamAPIWarningMessageHook_t pFunction); S_API bool SteamAPI_ISteamUtils_IsOverlayEnabled(intptr_t instancePtr); @@ -171,6 +301,10 @@ S_API bool SteamAPI_ISteamUtils_GetEnteredGamepadTextInput(intptr_t instancePtr, S_API const char * SteamAPI_ISteamUtils_GetSteamUILanguage(intptr_t instancePtr); S_API bool SteamAPI_ISteamUtils_IsSteamRunningInVR(intptr_t instancePtr); S_API void SteamAPI_ISteamUtils_SetOverlayNotificationInset(intptr_t instancePtr, int nHorizontalInset, int nVerticalInset); +S_API bool SteamAPI_ISteamUtils_IsSteamInBigPictureMode(intptr_t instancePtr); +S_API void SteamAPI_ISteamUtils_StartVRDashboard(intptr_t instancePtr); +S_API bool SteamAPI_ISteamUtils_IsVRHeadsetStreamingEnabled(intptr_t instancePtr); +S_API void SteamAPI_ISteamUtils_SetVRHeadsetStreamingEnabled(intptr_t instancePtr, bool bEnabled); S_API int SteamAPI_ISteamMatchmaking_GetFavoriteGameCount(intptr_t instancePtr); S_API bool SteamAPI_ISteamMatchmaking_GetFavoriteGame(intptr_t instancePtr, int iGame, AppId_t * pnAppID, uint32 * pnIP, uint16 * pnConnPort, uint16 * pnQueryPort, uint32 * punFlags, uint32 * pRTime32LastPlayedOnServer); S_API int SteamAPI_ISteamMatchmaking_AddFavoriteGame(intptr_t instancePtr, AppId_t nAppID, uint32 nIP, uint16 nConnPort, uint16 nQueryPort, uint32 unFlags, uint32 rTime32LastPlayedOnServer); @@ -257,7 +391,7 @@ S_API int64 SteamAPI_ISteamRemoteStorage_GetFileTimestamp(intptr_t instancePtr, S_API ERemoteStoragePlatform SteamAPI_ISteamRemoteStorage_GetSyncPlatforms(intptr_t instancePtr, const char * pchFile); S_API int32 SteamAPI_ISteamRemoteStorage_GetFileCount(intptr_t instancePtr); S_API const char * SteamAPI_ISteamRemoteStorage_GetFileNameAndSize(intptr_t instancePtr, int iFile, int32 * pnFileSizeInBytes); -S_API bool SteamAPI_ISteamRemoteStorage_GetQuota(intptr_t instancePtr, int32 * pnTotalBytes, int32 * puAvailableBytes); +S_API bool SteamAPI_ISteamRemoteStorage_GetQuota(intptr_t instancePtr, uint64 * pnTotalBytes, uint64 * puAvailableBytes); S_API bool SteamAPI_ISteamRemoteStorage_IsCloudEnabledForAccount(intptr_t instancePtr); S_API bool SteamAPI_ISteamRemoteStorage_IsCloudEnabledForApp(intptr_t instancePtr); S_API void SteamAPI_ISteamRemoteStorage_SetCloudEnabledForApp(intptr_t instancePtr, bool bEnabled); @@ -359,6 +493,8 @@ S_API uint64 SteamAPI_ISteamApps_GetAppOwner(intptr_t instancePtr); S_API const char * SteamAPI_ISteamApps_GetLaunchQueryParam(intptr_t instancePtr, const char * pchKey); S_API bool SteamAPI_ISteamApps_GetDlcDownloadProgress(intptr_t instancePtr, AppId_t nAppID, uint64 * punBytesDownloaded, uint64 * punBytesTotal); S_API int SteamAPI_ISteamApps_GetAppBuildId(intptr_t instancePtr); +S_API void SteamAPI_ISteamApps_RequestAllProofOfPurchaseKeys(intptr_t instancePtr); +S_API SteamAPICall_t SteamAPI_ISteamApps_GetFileDetails(intptr_t instancePtr, const char * pszFileName); S_API bool SteamAPI_ISteamNetworking_SendP2PPacket(intptr_t instancePtr, class CSteamID steamIDRemote, const void * pubData, uint32 cubData, EP2PSend eP2PSendType, int nChannel); S_API bool SteamAPI_ISteamNetworking_IsP2PPacketAvailable(intptr_t instancePtr, uint32 * pcubMsgSize, int nChannel); S_API bool SteamAPI_ISteamNetworking_ReadP2PPacket(intptr_t instancePtr, void * pubDest, uint32 cubDest, uint32 * pcubMsgSize, class CSteamID * psteamIDRemote, int nChannel); @@ -388,6 +524,8 @@ S_API void SteamAPI_ISteamScreenshots_HookScreenshots(intptr_t instancePtr, bool S_API bool SteamAPI_ISteamScreenshots_SetLocation(intptr_t instancePtr, ScreenshotHandle hScreenshot, const char * pchLocation); S_API bool SteamAPI_ISteamScreenshots_TagUser(intptr_t instancePtr, ScreenshotHandle hScreenshot, class CSteamID steamID); S_API bool SteamAPI_ISteamScreenshots_TagPublishedFile(intptr_t instancePtr, ScreenshotHandle hScreenshot, PublishedFileId_t unPublishedFileID); +S_API bool SteamAPI_ISteamScreenshots_IsScreenshotsHooked(intptr_t instancePtr); +S_API ScreenshotHandle SteamAPI_ISteamScreenshots_AddVRScreenshotToLibrary(intptr_t instancePtr, EVRScreenshotType eType, const char * pchFilename, const char * pchVRFilename); S_API bool SteamAPI_ISteamMusic_BIsEnabled(intptr_t instancePtr); S_API bool SteamAPI_ISteamMusic_BIsPlaying(intptr_t instancePtr); S_API AudioPlayback_Status SteamAPI_ISteamMusic_GetPlaybackStatus(intptr_t instancePtr); @@ -454,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); @@ -467,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); @@ -475,6 +612,17 @@ S_API struct ControllerAnalogActionData_t SteamAPI_ISteamController_GetAnalogAct S_API int SteamAPI_ISteamController_GetAnalogActionOrigins(intptr_t instancePtr, ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle, ControllerAnalogActionHandle_t analogActionHandle, EControllerActionOrigin * originsOut); S_API void SteamAPI_ISteamController_StopAnalogActionMomentum(intptr_t instancePtr, ControllerHandle_t controllerHandle, ControllerAnalogActionHandle_t eAction); S_API void SteamAPI_ISteamController_TriggerHapticPulse(intptr_t instancePtr, ControllerHandle_t controllerHandle, ESteamControllerPad eTargetPad, unsigned short usDurationMicroSec); +S_API void SteamAPI_ISteamController_TriggerRepeatedHapticPulse(intptr_t instancePtr, ControllerHandle_t controllerHandle, ESteamControllerPad eTargetPad, unsigned short usDurationMicroSec, unsigned short usOffMicroSec, unsigned short unRepeat, unsigned int nFlags); +S_API void SteamAPI_ISteamController_TriggerVibration(intptr_t instancePtr, ControllerHandle_t controllerHandle, unsigned short usLeftSpeed, unsigned short usRightSpeed); +S_API void SteamAPI_ISteamController_SetLEDColor(intptr_t instancePtr, ControllerHandle_t controllerHandle, uint8 nColorR, uint8 nColorG, uint8 nColorB, unsigned int nFlags); +S_API int SteamAPI_ISteamController_GetGamepadIndexForController(intptr_t instancePtr, ControllerHandle_t ulControllerHandle); +S_API ControllerHandle_t SteamAPI_ISteamController_GetControllerForGamepadIndex(intptr_t instancePtr, int nIndex); +S_API struct ControllerMotionData_t SteamAPI_ISteamController_GetMotionData(intptr_t instancePtr, ControllerHandle_t controllerHandle); +S_API bool SteamAPI_ISteamController_ShowDigitalActionOrigins(intptr_t instancePtr, ControllerHandle_t controllerHandle, ControllerDigitalActionHandle_t digitalActionHandle, float flScale, float flXPosition, float flYPosition); +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); @@ -483,20 +631,22 @@ S_API bool SteamAPI_ISteamUGC_GetQueryUGCResult(intptr_t instancePtr, UGCQueryHa S_API bool SteamAPI_ISteamUGC_GetQueryUGCPreviewURL(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 index, char * pchURL, uint32 cchURLSize); S_API bool SteamAPI_ISteamUGC_GetQueryUGCMetadata(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 index, char * pchMetadata, uint32 cchMetadatasize); S_API bool SteamAPI_ISteamUGC_GetQueryUGCChildren(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 index, PublishedFileId_t * pvecPublishedFileID, uint32 cMaxEntries); -S_API bool SteamAPI_ISteamUGC_GetQueryUGCStatistic(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 index, EItemStatistic eStatType, uint32 * pStatValue); +S_API bool SteamAPI_ISteamUGC_GetQueryUGCStatistic(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 index, EItemStatistic eStatType, uint64 * pStatValue); S_API uint32 SteamAPI_ISteamUGC_GetQueryUGCNumAdditionalPreviews(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 index); -S_API bool SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 index, uint32 previewIndex, char * pchURLOrVideoID, uint32 cchURLSize, bool * pbIsImage); +S_API bool SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 index, uint32 previewIndex, char * pchURLOrVideoID, uint32 cchURLSize, char * pchOriginalFileName, uint32 cchOriginalFileNameSize, EItemPreviewType * pPreviewType); S_API uint32 SteamAPI_ISteamUGC_GetQueryUGCNumKeyValueTags(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 index); S_API bool SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 index, uint32 keyValueTagIndex, char * pchKey, uint32 cchKeySize, char * pchValue, uint32 cchValueSize); S_API bool SteamAPI_ISteamUGC_ReleaseQueryUGCRequest(intptr_t instancePtr, UGCQueryHandle_t handle); S_API bool SteamAPI_ISteamUGC_AddRequiredTag(intptr_t instancePtr, UGCQueryHandle_t handle, const char * pTagName); S_API bool SteamAPI_ISteamUGC_AddExcludedTag(intptr_t instancePtr, UGCQueryHandle_t handle, const char * pTagName); +S_API bool SteamAPI_ISteamUGC_SetReturnOnlyIDs(intptr_t instancePtr, UGCQueryHandle_t handle, bool bReturnOnlyIDs); S_API bool SteamAPI_ISteamUGC_SetReturnKeyValueTags(intptr_t instancePtr, UGCQueryHandle_t handle, bool bReturnKeyValueTags); S_API bool SteamAPI_ISteamUGC_SetReturnLongDescription(intptr_t instancePtr, UGCQueryHandle_t handle, bool bReturnLongDescription); S_API bool SteamAPI_ISteamUGC_SetReturnMetadata(intptr_t instancePtr, UGCQueryHandle_t handle, bool bReturnMetadata); S_API bool SteamAPI_ISteamUGC_SetReturnChildren(intptr_t instancePtr, UGCQueryHandle_t handle, bool bReturnChildren); S_API bool SteamAPI_ISteamUGC_SetReturnAdditionalPreviews(intptr_t instancePtr, UGCQueryHandle_t handle, bool bReturnAdditionalPreviews); S_API bool SteamAPI_ISteamUGC_SetReturnTotalOnly(intptr_t instancePtr, UGCQueryHandle_t handle, bool bReturnTotalOnly); +S_API bool SteamAPI_ISteamUGC_SetReturnPlaytimeStats(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 unDays); S_API bool SteamAPI_ISteamUGC_SetLanguage(intptr_t instancePtr, UGCQueryHandle_t handle, const char * pchLanguage); S_API bool SteamAPI_ISteamUGC_SetAllowCachedResponse(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 unMaxAgeSeconds); S_API bool SteamAPI_ISteamUGC_SetCloudFileNameFilter(intptr_t instancePtr, UGCQueryHandle_t handle, const char * pMatchCloudFileName); @@ -517,6 +667,11 @@ S_API bool SteamAPI_ISteamUGC_SetItemContent(intptr_t instancePtr, UGCUpdateHand S_API bool SteamAPI_ISteamUGC_SetItemPreview(intptr_t instancePtr, UGCUpdateHandle_t handle, const char * pszPreviewFile); S_API bool SteamAPI_ISteamUGC_RemoveItemKeyValueTags(intptr_t instancePtr, UGCUpdateHandle_t handle, const char * pchKey); S_API bool SteamAPI_ISteamUGC_AddItemKeyValueTag(intptr_t instancePtr, UGCUpdateHandle_t handle, const char * pchKey, const char * pchValue); +S_API bool SteamAPI_ISteamUGC_AddItemPreviewFile(intptr_t instancePtr, UGCUpdateHandle_t handle, const char * pszPreviewFile, EItemPreviewType type); +S_API bool SteamAPI_ISteamUGC_AddItemPreviewVideo(intptr_t instancePtr, UGCUpdateHandle_t handle, const char * pszVideoID); +S_API bool SteamAPI_ISteamUGC_UpdateItemPreviewFile(intptr_t instancePtr, UGCUpdateHandle_t handle, uint32 index, const char * pszPreviewFile); +S_API bool SteamAPI_ISteamUGC_UpdateItemPreviewVideo(intptr_t instancePtr, UGCUpdateHandle_t handle, uint32 index, const char * pszVideoID); +S_API bool SteamAPI_ISteamUGC_RemoveItemPreview(intptr_t instancePtr, UGCUpdateHandle_t handle, uint32 index); S_API SteamAPICall_t SteamAPI_ISteamUGC_SubmitItemUpdate(intptr_t instancePtr, UGCUpdateHandle_t handle, const char * pchChangeNote); S_API EItemUpdateStatus SteamAPI_ISteamUGC_GetItemUpdateProgress(intptr_t instancePtr, UGCUpdateHandle_t handle, uint64 * punBytesProcessed, uint64 * punBytesTotal); S_API SteamAPICall_t SteamAPI_ISteamUGC_SetUserItemVote(intptr_t instancePtr, PublishedFileId_t nPublishedFileID, bool bVoteUp); @@ -533,6 +688,15 @@ S_API bool SteamAPI_ISteamUGC_GetItemDownloadInfo(intptr_t instancePtr, Publishe S_API bool SteamAPI_ISteamUGC_DownloadItem(intptr_t instancePtr, PublishedFileId_t nPublishedFileID, bool bHighPriority); S_API bool SteamAPI_ISteamUGC_BInitWorkshopForGameServer(intptr_t instancePtr, DepotId_t unWorkshopDepotID, const char * pszFolder); S_API void SteamAPI_ISteamUGC_SuspendDownloads(intptr_t instancePtr, bool bSuspend); +S_API SteamAPICall_t SteamAPI_ISteamUGC_StartPlaytimeTracking(intptr_t instancePtr, PublishedFileId_t * pvecPublishedFileID, uint32 unNumPublishedFileIDs); +S_API SteamAPICall_t SteamAPI_ISteamUGC_StopPlaytimeTracking(intptr_t instancePtr, PublishedFileId_t * pvecPublishedFileID, uint32 unNumPublishedFileIDs); +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); @@ -571,11 +735,12 @@ 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 void SteamAPI_ISteamHTMLSurface_FileLoadDialogResponse(intptr_t instancePtr, HHTMLBrowser unBrowserHandle, const char ** pchSelectedFiles); S_API EResult SteamAPI_ISteamInventory_GetResultStatus(intptr_t instancePtr, SteamInventoryResult_t resultHandle); S_API bool SteamAPI_ISteamInventory_GetResultItems(intptr_t instancePtr, SteamInventoryResult_t resultHandle, struct SteamItemDetails_t * pOutItemsArray, uint32 * punOutItemsArraySize); +S_API bool SteamAPI_ISteamInventory_GetResultItemProperty(intptr_t instancePtr, SteamInventoryResult_t resultHandle, uint32 unItemIndex, const char * pchPropertyName, char * pchValueBuffer, uint32 * punValueBufferSizeOut); S_API uint32 SteamAPI_ISteamInventory_GetResultTimestamp(intptr_t instancePtr, SteamInventoryResult_t resultHandle); S_API bool SteamAPI_ISteamInventory_CheckResultSteamID(intptr_t instancePtr, SteamInventoryResult_t resultHandle, class CSteamID steamIDExpected); S_API void SteamAPI_ISteamInventory_DestroyResult(intptr_t instancePtr, SteamInventoryResult_t resultHandle); @@ -595,9 +760,31 @@ S_API bool SteamAPI_ISteamInventory_TriggerItemDrop(intptr_t instancePtr, SteamI S_API bool SteamAPI_ISteamInventory_TradeItems(intptr_t instancePtr, SteamInventoryResult_t * pResultHandle, class CSteamID steamIDTradePartner, const SteamItemInstanceID_t * pArrayGive, const uint32 * pArrayGiveQuantity, uint32 nArrayGiveLength, const SteamItemInstanceID_t * pArrayGet, const uint32 * pArrayGetQuantity, uint32 nArrayGetLength); S_API bool SteamAPI_ISteamInventory_LoadItemDefinitions(intptr_t instancePtr); S_API bool SteamAPI_ISteamInventory_GetItemDefinitionIDs(intptr_t instancePtr, SteamItemDef_t * pItemDefIDs, uint32 * punItemDefIDsArraySize); -S_API bool SteamAPI_ISteamInventory_GetItemDefinitionProperty(intptr_t instancePtr, SteamItemDef_t iDefinition, const char * pchPropertyName, char * pchValueBuffer, uint32 * punValueBufferSize); +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/public/steam/steam_api_internal.h b/public/steam/steam_api_internal.h new file mode 100644 index 00000000..f5e57211 --- /dev/null +++ b/public/steam/steam_api_internal.h @@ -0,0 +1,328 @@ +//====== Copyright 1996-2015, Valve Corporation, All rights reserved. ======= +// +// Purpose: Internal private Steamworks API declarations and definitions +// +//============================================================================= + +#ifndef STEAM_API_INTERNAL_H +#define STEAM_API_INTERNAL_H + +S_API HSteamUser SteamAPI_GetHSteamUser(); +S_API void * S_CALLTYPE SteamInternal_ContextInit( void *pContextInitData ); +S_API void * S_CALLTYPE SteamInternal_CreateInterface( const char *ver ); + +#if !defined( STEAM_API_EXPORTS ) + +inline void S_CALLTYPE SteamInternal_OnContextInit( void* p ) +{ + ((CSteamAPIContext*)p)->Clear(); + if ( SteamAPI_GetHSteamPipe() ) + ((CSteamAPIContext*)p)->Init(); +} +inline CSteamAPIContext& SteamInternal_ModuleContext() +{ + // SteamInternal_ContextInit takes a base pointer for the equivalent of + // struct { void (*pFn)(void* pCtx); uintp counter; CSteamAPIContext ctx; } + // Do not change layout of 2 + sizeof... or add non-pointer aligned data! + // NOTE: declaring "static CSteamAPIConext" creates a large function + // which queries the initialization status of the object. We know that + // it is pointer-aligned and fully memset with zeros, so just alias a + // static buffer of the appropriate size and call it a CSteamAPIContext. + static void* s_CallbackCounterAndContext[ 2 + sizeof(CSteamAPIContext)/sizeof(void*) ] = { (void*)&SteamInternal_OnContextInit, 0 }; + return *(CSteamAPIContext*)SteamInternal_ContextInit( s_CallbackCounterAndContext ); +} + +inline ISteamClient *SteamClient() { return SteamInternal_ModuleContext().SteamClient(); } +inline ISteamUser *SteamUser() { return SteamInternal_ModuleContext().SteamUser(); } +inline ISteamFriends *SteamFriends() { return SteamInternal_ModuleContext().SteamFriends(); } +inline ISteamUtils *SteamUtils() { return SteamInternal_ModuleContext().SteamUtils(); } +inline ISteamMatchmaking *SteamMatchmaking() { return SteamInternal_ModuleContext().SteamMatchmaking(); } +inline ISteamUserStats *SteamUserStats() { return SteamInternal_ModuleContext().SteamUserStats(); } +inline ISteamApps *SteamApps() { return SteamInternal_ModuleContext().SteamApps(); } +inline ISteamMatchmakingServers *SteamMatchmakingServers() { return SteamInternal_ModuleContext().SteamMatchmakingServers(); } +inline ISteamNetworking *SteamNetworking() { return SteamInternal_ModuleContext().SteamNetworking(); } +inline ISteamRemoteStorage *SteamRemoteStorage() { return SteamInternal_ModuleContext().SteamRemoteStorage(); } +inline ISteamScreenshots *SteamScreenshots() { return SteamInternal_ModuleContext().SteamScreenshots(); } +inline ISteamHTTP *SteamHTTP() { return SteamInternal_ModuleContext().SteamHTTP(); } +inline ISteamController *SteamController() { return SteamInternal_ModuleContext().SteamController(); } +inline ISteamUGC *SteamUGC() { return SteamInternal_ModuleContext().SteamUGC(); } +inline ISteamAppList *SteamAppList() { return SteamInternal_ModuleContext().SteamAppList(); } +inline ISteamMusic *SteamMusic() { return SteamInternal_ModuleContext().SteamMusic(); } +inline ISteamMusicRemote *SteamMusicRemote() { return SteamInternal_ModuleContext().SteamMusicRemote(); } +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 ) + + +inline void CSteamAPIContext::Clear() +{ + m_pSteamClient = NULL; + m_pSteamUser = NULL; + m_pSteamFriends = NULL; + m_pSteamUtils = NULL; + m_pSteamMatchmaking = NULL; + m_pSteamUserStats = NULL; + m_pSteamApps = NULL; + m_pSteamMatchmakingServers = NULL; + m_pSteamNetworking = NULL; + m_pSteamRemoteStorage = NULL; + m_pSteamHTTP = NULL; + m_pSteamScreenshots = NULL; + m_pSteamMusic = NULL; + m_pController = NULL; + m_pSteamUGC = NULL; + m_pSteamAppList = NULL; + m_pSteamMusic = NULL; + m_pSteamMusicRemote = NULL; + m_pSteamHTMLSurface = NULL; + m_pSteamInventory = NULL; + m_pSteamVideo = NULL; + m_pSteamParentalSettings = NULL; +} + + +// This function must be declared inline in the header so the module using steam_api.dll gets the version names they want. +inline bool CSteamAPIContext::Init() +{ + HSteamUser hSteamUser = SteamAPI_GetHSteamUser(); + HSteamPipe hSteamPipe = SteamAPI_GetHSteamPipe(); + if ( !hSteamPipe ) + return false; + + m_pSteamClient = (ISteamClient*) SteamInternal_CreateInterface( STEAMCLIENT_INTERFACE_VERSION ); + if ( !m_pSteamClient ) + return false; + + m_pSteamUser = m_pSteamClient->GetISteamUser( hSteamUser, hSteamPipe, STEAMUSER_INTERFACE_VERSION ); + if ( !m_pSteamUser ) + return false; + + m_pSteamFriends = m_pSteamClient->GetISteamFriends( hSteamUser, hSteamPipe, STEAMFRIENDS_INTERFACE_VERSION ); + if ( !m_pSteamFriends ) + return false; + + m_pSteamUtils = m_pSteamClient->GetISteamUtils( hSteamPipe, STEAMUTILS_INTERFACE_VERSION ); + if ( !m_pSteamUtils ) + return false; + + m_pSteamMatchmaking = m_pSteamClient->GetISteamMatchmaking( hSteamUser, hSteamPipe, STEAMMATCHMAKING_INTERFACE_VERSION ); + if ( !m_pSteamMatchmaking ) + return false; + + m_pSteamMatchmakingServers = m_pSteamClient->GetISteamMatchmakingServers( hSteamUser, hSteamPipe, STEAMMATCHMAKINGSERVERS_INTERFACE_VERSION ); + if ( !m_pSteamMatchmakingServers ) + return false; + + m_pSteamUserStats = m_pSteamClient->GetISteamUserStats( hSteamUser, hSteamPipe, STEAMUSERSTATS_INTERFACE_VERSION ); + if ( !m_pSteamUserStats ) + return false; + + m_pSteamApps = m_pSteamClient->GetISteamApps( hSteamUser, hSteamPipe, STEAMAPPS_INTERFACE_VERSION ); + if ( !m_pSteamApps ) + return false; + + m_pSteamNetworking = m_pSteamClient->GetISteamNetworking( hSteamUser, hSteamPipe, STEAMNETWORKING_INTERFACE_VERSION ); + if ( !m_pSteamNetworking ) + return false; + + m_pSteamRemoteStorage = m_pSteamClient->GetISteamRemoteStorage( hSteamUser, hSteamPipe, STEAMREMOTESTORAGE_INTERFACE_VERSION ); + if ( !m_pSteamRemoteStorage ) + return false; + + m_pSteamScreenshots = m_pSteamClient->GetISteamScreenshots( hSteamUser, hSteamPipe, STEAMSCREENSHOTS_INTERFACE_VERSION ); + if ( !m_pSteamScreenshots ) + return false; + + m_pSteamHTTP = m_pSteamClient->GetISteamHTTP( hSteamUser, hSteamPipe, STEAMHTTP_INTERFACE_VERSION ); + if ( !m_pSteamHTTP ) + return false; + + m_pController = m_pSteamClient->GetISteamController( hSteamUser, hSteamPipe, STEAMCONTROLLER_INTERFACE_VERSION ); + if ( !m_pController ) + return false; + + m_pSteamUGC = m_pSteamClient->GetISteamUGC( hSteamUser, hSteamPipe, STEAMUGC_INTERFACE_VERSION ); + if ( !m_pSteamUGC ) + return false; + + m_pSteamAppList = m_pSteamClient->GetISteamAppList( hSteamUser, hSteamPipe, STEAMAPPLIST_INTERFACE_VERSION ); + if ( !m_pSteamAppList ) + return false; + + m_pSteamMusic = m_pSteamClient->GetISteamMusic( hSteamUser, hSteamPipe, STEAMMUSIC_INTERFACE_VERSION ); + if ( !m_pSteamMusic ) + return false; + + m_pSteamMusicRemote = m_pSteamClient->GetISteamMusicRemote( hSteamUser, hSteamPipe, STEAMMUSICREMOTE_INTERFACE_VERSION ); + if ( !m_pSteamMusicRemote ) + return false; + + m_pSteamHTMLSurface = m_pSteamClient->GetISteamHTMLSurface( hSteamUser, hSteamPipe, STEAMHTMLSURFACE_INTERFACE_VERSION ); + if ( !m_pSteamHTMLSurface ) + return false; + + m_pSteamInventory = m_pSteamClient->GetISteamInventory( hSteamUser, hSteamPipe, STEAMINVENTORY_INTERFACE_VERSION ); + if ( !m_pSteamInventory ) + return false; + + m_pSteamVideo = m_pSteamClient->GetISteamVideo( hSteamUser, hSteamPipe, STEAMVIDEO_INTERFACE_VERSION ); + if ( !m_pSteamVideo ) + return false; + + m_pSteamParentalSettings = m_pSteamClient->GetISteamParentalSettings( hSteamUser, hSteamPipe, STEAMPARENTALSETTINGS_INTERFACE_VERSION ); + if ( !m_pSteamParentalSettings ) + return false; + + return true; +} + + +//----------------------------------------------------------------------------- +// The following macros are implementation details, not intended for public use +//----------------------------------------------------------------------------- +#define _STEAM_CALLBACK_AUTO_HOOK( thisclass, func, param ) +#define _STEAM_CALLBACK_HELPER( _1, _2, SELECTED, ... ) _STEAM_CALLBACK_##SELECTED +#define _STEAM_CALLBACK_SELECT( X, Y ) _STEAM_CALLBACK_HELPER X Y +#define _STEAM_CALLBACK_3( extra_code, thisclass, func, param ) \ + struct CCallbackInternal_ ## func : private CCallbackImpl< sizeof( param ) > { \ + CCallbackInternal_ ## func () { extra_code SteamAPI_RegisterCallback( this, param::k_iCallback ); } \ + CCallbackInternal_ ## func ( const CCallbackInternal_ ## func & ) { extra_code SteamAPI_RegisterCallback( this, param::k_iCallback ); } \ + CCallbackInternal_ ## func & operator=( const CCallbackInternal_ ## func & ) { return *this; } \ + private: virtual void Run( void *pvParam ) { _STEAM_CALLBACK_AUTO_HOOK( thisclass, func, param ) \ + thisclass *pOuter = reinterpret_cast( reinterpret_cast(this) - offsetof( thisclass, m_steamcallback_ ## func ) ); \ + pOuter->func( reinterpret_cast( pvParam ) ); \ + } \ + } m_steamcallback_ ## func ; void func( param *pParam ) +#define _STEAM_CALLBACK_4( _, thisclass, func, param, var ) \ + CCallback< thisclass, param > var; void func( param *pParam ) + + +//----------------------------------------------------------------------------- +// Purpose: maps a steam async call result to a class member function +// template params: T = local class, P = parameter struct +//----------------------------------------------------------------------------- +template< class T, class P > +inline CCallResult::CCallResult() +{ + m_hAPICall = k_uAPICallInvalid; + m_pObj = NULL; + m_Func = NULL; + m_iCallback = P::k_iCallback; +} + +template< class T, class P > +inline void CCallResult::Set( SteamAPICall_t hAPICall, T *p, func_t func ) +{ + if ( m_hAPICall ) + SteamAPI_UnregisterCallResult( this, m_hAPICall ); + + m_hAPICall = hAPICall; + m_pObj = p; + m_Func = func; + + if ( hAPICall ) + SteamAPI_RegisterCallResult( this, hAPICall ); +} + +template< class T, class P > +inline bool CCallResult::IsActive() const +{ + return (m_hAPICall != k_uAPICallInvalid); +} + +template< class T, class P > +inline void CCallResult::Cancel() +{ + if ( m_hAPICall != k_uAPICallInvalid ) + { + SteamAPI_UnregisterCallResult( this, m_hAPICall ); + m_hAPICall = k_uAPICallInvalid; + } + +} + +template< class T, class P > +inline CCallResult::~CCallResult() +{ + Cancel(); +} + +template< class T, class P > +inline void CCallResult::Run( void *pvParam ) +{ + m_hAPICall = k_uAPICallInvalid; // caller unregisters for us + (m_pObj->*m_Func)((P *)pvParam, false); +} + +template< class T, class P > +inline void CCallResult::Run( void *pvParam, bool bIOFailure, SteamAPICall_t hSteamAPICall ) +{ + if ( hSteamAPICall == m_hAPICall ) + { + m_hAPICall = k_uAPICallInvalid; // caller unregisters for us + (m_pObj->*m_Func)((P *)pvParam, bIOFailure); + } +} + + +//----------------------------------------------------------------------------- +// Purpose: maps a steam callback to a class member function +// template params: T = local class, P = parameter struct, +// bGameserver = listen for gameserver callbacks instead of client callbacks +//----------------------------------------------------------------------------- +template< class T, class P, bool bGameserver > +inline CCallback< T, P, bGameserver >::CCallback( T *pObj, func_t func ) + : m_pObj( NULL ), m_Func( NULL ) +{ + if ( bGameserver ) + { + this->SetGameserverFlag(); + } + Register( pObj, func ); +} + +template< class T, class P, bool bGameserver > +inline void CCallback< T, P, bGameserver >::Register( T *pObj, func_t func ) +{ + if ( !pObj || !func ) + return; + + if ( this->m_nCallbackFlags & CCallbackBase::k_ECallbackFlagsRegistered ) + Unregister(); + + m_pObj = pObj; + m_Func = func; + // SteamAPI_RegisterCallback sets k_ECallbackFlagsRegistered + SteamAPI_RegisterCallback( this, P::k_iCallback ); +} + +template< class T, class P, bool bGameserver > +inline void CCallback< T, P, bGameserver >::Unregister() +{ + // SteamAPI_UnregisterCallback removes k_ECallbackFlagsRegistered + SteamAPI_UnregisterCallback( this ); +} + +template< class T, class P, bool bGameserver > +inline void CCallback< T, P, bGameserver >::Run( void *pvParam ) +{ + (m_pObj->*m_Func)((P *)pvParam); +} + + +#if defined(USE_BREAKPAD_HANDLER) || defined(STEAM_API_EXPORTS) +// this should be called before the game initialized the steam APIs +// pchDate should be of the format "Mmm dd yyyy" (such as from the __ DATE __ macro ) +// pchTime should be of the format "hh:mm:ss" (such as from the __ TIME __ macro ) +// bFullMemoryDumps (Win32 only) -- writes out a uuid-full.dmp in the client/dumps folder +// pvContext-- can be NULL, will be the void * context passed into m_pfnPreMinidumpCallback +// PFNPreMinidumpCallback m_pfnPreMinidumpCallback -- optional callback which occurs just before a .dmp file is written during a crash. Applications can hook this to allow adding additional information into the .dmp comment stream. +S_API void S_CALLTYPE SteamAPI_UseBreakpadCrashHandler( char const *pchVersion, char const *pchDate, char const *pchTime, bool bFullMemoryDumps, void *pvContext, PFNPreMinidumpCallback m_pfnPreMinidumpCallback ); +S_API void S_CALLTYPE SteamAPI_SetBreakpadAppID( uint32 unAppID ); +#endif + + +#endif // STEAM_API_INTERNAL_H diff --git a/public/steam/steam_api_interop.cs b/public/steam/steam_api_interop.cs deleted file mode 100644 index 756186f5..00000000 --- a/public/steam/steam_api_interop.cs +++ /dev/null @@ -1,8803 +0,0 @@ -//=== === Copyright 1996-2014, Valve Corporation, All rights reserved. ======= -// -// Purpose: This file contains C#/managed code bindings for the SteamAPI interfaces -// This file is auto-generated, do not edit it. -// -//============================================================================= - -using System; -using System.Runtime.InteropServices; -using Valve.Steamworks; -using Valve.Interop; -using Valve.VR; - -namespace Valve.Interop -{ - -class NativeEntrypoints -{ - - -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_CreateSteamPipe")] -internal static extern uint SteamAPI_ISteamClient_CreateSteamPipe(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_BReleaseSteamPipe")] -internal static extern bool SteamAPI_ISteamClient_BReleaseSteamPipe(IntPtr instancePtr, uint hSteamPipe); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_ConnectToGlobalUser")] -internal static extern uint SteamAPI_ISteamClient_ConnectToGlobalUser(IntPtr instancePtr, uint hSteamPipe); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_CreateLocalUser")] -internal static extern uint SteamAPI_ISteamClient_CreateLocalUser(IntPtr instancePtr, ref uint phSteamPipe, uint eAccountType); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_ReleaseUser")] -internal static extern void SteamAPI_ISteamClient_ReleaseUser(IntPtr instancePtr, uint hSteamPipe, uint hUser); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamUser")] -internal static extern IntPtr SteamAPI_ISteamClient_GetISteamUser(IntPtr instancePtr, uint hSteamUser, uint hSteamPipe, string pchVersion); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamGameServer")] -internal static extern IntPtr SteamAPI_ISteamClient_GetISteamGameServer(IntPtr instancePtr, uint hSteamUser, uint hSteamPipe, string pchVersion); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_SetLocalIPBinding")] -internal static extern void SteamAPI_ISteamClient_SetLocalIPBinding(IntPtr instancePtr, uint unIP, char usPort); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamFriends")] -internal static extern IntPtr SteamAPI_ISteamClient_GetISteamFriends(IntPtr instancePtr, uint hSteamUser, uint hSteamPipe, string pchVersion); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamUtils")] -internal static extern IntPtr SteamAPI_ISteamClient_GetISteamUtils(IntPtr instancePtr, uint hSteamPipe, string pchVersion); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamMatchmaking")] -internal static extern IntPtr SteamAPI_ISteamClient_GetISteamMatchmaking(IntPtr instancePtr, uint hSteamUser, uint hSteamPipe, string pchVersion); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamMatchmakingServers")] -internal static extern IntPtr SteamAPI_ISteamClient_GetISteamMatchmakingServers(IntPtr instancePtr, uint hSteamUser, uint hSteamPipe, string pchVersion); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamGenericInterface")] -internal static extern IntPtr SteamAPI_ISteamClient_GetISteamGenericInterface(IntPtr instancePtr, uint hSteamUser, uint hSteamPipe, string pchVersion); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamUserStats")] -internal static extern IntPtr SteamAPI_ISteamClient_GetISteamUserStats(IntPtr instancePtr, uint hSteamUser, uint hSteamPipe, string pchVersion); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamGameServerStats")] -internal static extern IntPtr SteamAPI_ISteamClient_GetISteamGameServerStats(IntPtr instancePtr, uint hSteamuser, uint hSteamPipe, string pchVersion); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamApps")] -internal static extern IntPtr SteamAPI_ISteamClient_GetISteamApps(IntPtr instancePtr, uint hSteamUser, uint hSteamPipe, string pchVersion); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamNetworking")] -internal static extern IntPtr SteamAPI_ISteamClient_GetISteamNetworking(IntPtr instancePtr, uint hSteamUser, uint hSteamPipe, string pchVersion); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamRemoteStorage")] -internal static extern IntPtr SteamAPI_ISteamClient_GetISteamRemoteStorage(IntPtr instancePtr, uint hSteamuser, uint hSteamPipe, string pchVersion); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamScreenshots")] -internal static extern IntPtr SteamAPI_ISteamClient_GetISteamScreenshots(IntPtr instancePtr, uint hSteamuser, uint hSteamPipe, string pchVersion); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_RunFrame")] -internal static extern void SteamAPI_ISteamClient_RunFrame(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetIPCCallCount")] -internal static extern uint SteamAPI_ISteamClient_GetIPCCallCount(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_SetWarningMessageHook")] -internal static extern void SteamAPI_ISteamClient_SetWarningMessageHook(IntPtr instancePtr, IntPtr pFunction); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_BShutdownIfAllPipesClosed")] -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")] -internal static extern IntPtr SteamAPI_ISteamClient_GetISteamUGC(IntPtr instancePtr, uint hSteamUser, uint hSteamPipe, string pchVersion); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamAppList")] -internal static extern IntPtr SteamAPI_ISteamClient_GetISteamAppList(IntPtr instancePtr, uint hSteamUser, uint hSteamPipe, string pchVersion); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamMusic")] -internal static extern IntPtr SteamAPI_ISteamClient_GetISteamMusic(IntPtr instancePtr, uint hSteamuser, uint hSteamPipe, string pchVersion); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamMusicRemote")] -internal static extern IntPtr SteamAPI_ISteamClient_GetISteamMusicRemote(IntPtr instancePtr, uint hSteamuser, uint hSteamPipe, string pchVersion); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamHTMLSurface")] -internal static extern IntPtr SteamAPI_ISteamClient_GetISteamHTMLSurface(IntPtr instancePtr, uint hSteamuser, uint hSteamPipe, string pchVersion); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_Set_SteamAPI_CPostAPIResultInProcess")] -internal static extern void SteamAPI_ISteamClient_Set_SteamAPI_CPostAPIResultInProcess(IntPtr instancePtr, IntPtr func); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_Remove_SteamAPI_CPostAPIResultInProcess")] -internal static extern void SteamAPI_ISteamClient_Remove_SteamAPI_CPostAPIResultInProcess(IntPtr instancePtr, IntPtr func); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_Set_SteamAPI_CCheckCallbackRegisteredInProcess")] -internal static extern void SteamAPI_ISteamClient_Set_SteamAPI_CCheckCallbackRegisteredInProcess(IntPtr instancePtr, IntPtr func); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamInventory")] -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_ISteamUser_GetHSteamUser")] -internal static extern uint SteamAPI_ISteamUser_GetHSteamUser(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_BLoggedOn")] -internal static extern bool SteamAPI_ISteamUser_BLoggedOn(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_GetSteamID")] -internal static extern ulong SteamAPI_ISteamUser_GetSteamID(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_InitiateGameConnection")] -internal static extern int SteamAPI_ISteamUser_InitiateGameConnection(IntPtr instancePtr, IntPtr pAuthBlob, int cbMaxAuthBlob, ulong steamIDGameServer, uint unIPServer, char usPortServer, bool bSecure); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_TerminateGameConnection")] -internal static extern void SteamAPI_ISteamUser_TerminateGameConnection(IntPtr instancePtr, uint unIPServer, char usPortServer); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_TrackAppUsageEvent")] -internal static extern void SteamAPI_ISteamUser_TrackAppUsageEvent(IntPtr instancePtr, ulong gameID, int eAppUsageEvent, string pchExtraInfo); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_GetUserDataFolder")] -internal static extern bool SteamAPI_ISteamUser_GetUserDataFolder(IntPtr instancePtr, string pchBuffer, int cubBuffer); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_StartVoiceRecording")] -internal static extern void SteamAPI_ISteamUser_StartVoiceRecording(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_StopVoiceRecording")] -internal static extern void SteamAPI_ISteamUser_StopVoiceRecording(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_GetAvailableVoice")] -internal static extern uint SteamAPI_ISteamUser_GetAvailableVoice(IntPtr instancePtr, ref uint pcbCompressed, ref uint pcbUncompressed, uint nUncompressedVoiceDesiredSampleRate); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_GetVoice")] -internal static extern uint SteamAPI_ISteamUser_GetVoice(IntPtr instancePtr, bool bWantCompressed, IntPtr pDestBuffer, uint cbDestBufferSize, ref uint nBytesWritten, bool bWantUncompressed, IntPtr pUncompressedDestBuffer, uint cbUncompressedDestBufferSize, ref uint nUncompressBytesWritten, uint nUncompressedVoiceDesiredSampleRate); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_DecompressVoice")] -internal static extern uint SteamAPI_ISteamUser_DecompressVoice(IntPtr instancePtr, IntPtr pCompressed, uint cbCompressed, IntPtr pDestBuffer, uint cbDestBufferSize, ref uint nBytesWritten, uint nDesiredSampleRate); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_GetVoiceOptimalSampleRate")] -internal static extern uint SteamAPI_ISteamUser_GetVoiceOptimalSampleRate(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_GetAuthSessionTicket")] -internal static extern uint SteamAPI_ISteamUser_GetAuthSessionTicket(IntPtr instancePtr, IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_BeginAuthSession")] -internal static extern uint SteamAPI_ISteamUser_BeginAuthSession(IntPtr instancePtr, IntPtr pAuthTicket, int cbAuthTicket, ulong steamID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_EndAuthSession")] -internal static extern void SteamAPI_ISteamUser_EndAuthSession(IntPtr instancePtr, ulong steamID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_CancelAuthTicket")] -internal static extern void SteamAPI_ISteamUser_CancelAuthTicket(IntPtr instancePtr, uint hAuthTicket); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_UserHasLicenseForApp")] -internal static extern uint SteamAPI_ISteamUser_UserHasLicenseForApp(IntPtr instancePtr, ulong steamID, uint appID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_BIsBehindNAT")] -internal static extern bool SteamAPI_ISteamUser_BIsBehindNAT(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_AdvertiseGame")] -internal static extern void SteamAPI_ISteamUser_AdvertiseGame(IntPtr instancePtr, ulong steamIDGameServer, uint unIPServer, char usPortServer); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_RequestEncryptedAppTicket")] -internal static extern ulong SteamAPI_ISteamUser_RequestEncryptedAppTicket(IntPtr instancePtr, IntPtr pDataToInclude, int cbDataToInclude); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_GetEncryptedAppTicket")] -internal static extern bool SteamAPI_ISteamUser_GetEncryptedAppTicket(IntPtr instancePtr, IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_GetGameBadgeLevel")] -internal static extern int SteamAPI_ISteamUser_GetGameBadgeLevel(IntPtr instancePtr, int nSeries, bool bFoil); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_GetPlayerSteamLevel")] -internal static extern int SteamAPI_ISteamUser_GetPlayerSteamLevel(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_RequestStoreAuthURL")] -internal static extern ulong SteamAPI_ISteamUser_RequestStoreAuthURL(IntPtr instancePtr, string pchRedirectURL); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetPersonaName")] -internal static extern IntPtr SteamAPI_ISteamFriends_GetPersonaName(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_SetPersonaName")] -internal static extern ulong SteamAPI_ISteamFriends_SetPersonaName(IntPtr instancePtr, string pchPersonaName); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetPersonaState")] -internal static extern uint SteamAPI_ISteamFriends_GetPersonaState(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendCount")] -internal static extern int SteamAPI_ISteamFriends_GetFriendCount(IntPtr instancePtr, int iFriendFlags); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendByIndex")] -internal static extern ulong SteamAPI_ISteamFriends_GetFriendByIndex(IntPtr instancePtr, int iFriend, int iFriendFlags); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendRelationship")] -internal static extern uint SteamAPI_ISteamFriends_GetFriendRelationship(IntPtr instancePtr, ulong steamIDFriend); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendPersonaState")] -internal static extern uint SteamAPI_ISteamFriends_GetFriendPersonaState(IntPtr instancePtr, ulong steamIDFriend); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendPersonaName")] -internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendPersonaName(IntPtr instancePtr, ulong steamIDFriend); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendGamePlayed")] -internal static extern bool SteamAPI_ISteamFriends_GetFriendGamePlayed(IntPtr instancePtr, ulong steamIDFriend, ref FriendGameInfo_t pFriendGameInfo); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendPersonaNameHistory")] -internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendPersonaNameHistory(IntPtr instancePtr, ulong steamIDFriend, int iPersonaName); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendSteamLevel")] -internal static extern int SteamAPI_ISteamFriends_GetFriendSteamLevel(IntPtr instancePtr, ulong steamIDFriend); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetPlayerNickname")] -internal static extern IntPtr SteamAPI_ISteamFriends_GetPlayerNickname(IntPtr instancePtr, ulong steamIDPlayer); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendsGroupCount")] -internal static extern int SteamAPI_ISteamFriends_GetFriendsGroupCount(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendsGroupIDByIndex")] -internal static extern char SteamAPI_ISteamFriends_GetFriendsGroupIDByIndex(IntPtr instancePtr, int iFG); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendsGroupName")] -internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendsGroupName(IntPtr instancePtr, char friendsGroupID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendsGroupMembersCount")] -internal static extern int SteamAPI_ISteamFriends_GetFriendsGroupMembersCount(IntPtr instancePtr, char friendsGroupID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendsGroupMembersList")] -internal static extern void SteamAPI_ISteamFriends_GetFriendsGroupMembersList(IntPtr instancePtr, char friendsGroupID, [In, Out] CSteamID[] pOutSteamIDMembers, int nMembersCount); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_HasFriend")] -internal static extern bool SteamAPI_ISteamFriends_HasFriend(IntPtr instancePtr, ulong steamIDFriend, int iFriendFlags); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetClanCount")] -internal static extern int SteamAPI_ISteamFriends_GetClanCount(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetClanByIndex")] -internal static extern ulong SteamAPI_ISteamFriends_GetClanByIndex(IntPtr instancePtr, int iClan); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetClanName")] -internal static extern IntPtr SteamAPI_ISteamFriends_GetClanName(IntPtr instancePtr, ulong steamIDClan); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetClanTag")] -internal static extern IntPtr SteamAPI_ISteamFriends_GetClanTag(IntPtr instancePtr, ulong steamIDClan); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetClanActivityCounts")] -internal static extern bool SteamAPI_ISteamFriends_GetClanActivityCounts(IntPtr instancePtr, ulong steamIDClan, ref int pnOnline, ref int pnInGame, ref int pnChatting); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_DownloadClanActivityCounts")] -internal static extern ulong SteamAPI_ISteamFriends_DownloadClanActivityCounts(IntPtr instancePtr, [In, Out] CSteamID[] psteamIDClans, int cClansToRequest); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendCountFromSource")] -internal static extern int SteamAPI_ISteamFriends_GetFriendCountFromSource(IntPtr instancePtr, ulong steamIDSource); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendFromSourceByIndex")] -internal static extern ulong SteamAPI_ISteamFriends_GetFriendFromSourceByIndex(IntPtr instancePtr, ulong steamIDSource, int iFriend); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_IsUserInSource")] -internal static extern bool SteamAPI_ISteamFriends_IsUserInSource(IntPtr instancePtr, ulong steamIDUser, ulong steamIDSource); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_SetInGameVoiceSpeaking")] -internal static extern void SteamAPI_ISteamFriends_SetInGameVoiceSpeaking(IntPtr instancePtr, ulong steamIDUser, bool bSpeaking); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_ActivateGameOverlay")] -internal static extern void SteamAPI_ISteamFriends_ActivateGameOverlay(IntPtr instancePtr, string pchDialog); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_ActivateGameOverlayToUser")] -internal static extern void SteamAPI_ISteamFriends_ActivateGameOverlayToUser(IntPtr instancePtr, string pchDialog, ulong steamID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_ActivateGameOverlayToWebPage")] -internal static extern void SteamAPI_ISteamFriends_ActivateGameOverlayToWebPage(IntPtr instancePtr, string pchURL); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_ActivateGameOverlayToStore")] -internal static extern void SteamAPI_ISteamFriends_ActivateGameOverlayToStore(IntPtr instancePtr, uint nAppID, char eFlag); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_SetPlayedWith")] -internal static extern void SteamAPI_ISteamFriends_SetPlayedWith(IntPtr instancePtr, ulong steamIDUserPlayedWith); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_ActivateGameOverlayInviteDialog")] -internal static extern void SteamAPI_ISteamFriends_ActivateGameOverlayInviteDialog(IntPtr instancePtr, ulong steamIDLobby); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetSmallFriendAvatar")] -internal static extern int SteamAPI_ISteamFriends_GetSmallFriendAvatar(IntPtr instancePtr, ulong steamIDFriend); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetMediumFriendAvatar")] -internal static extern int SteamAPI_ISteamFriends_GetMediumFriendAvatar(IntPtr instancePtr, ulong steamIDFriend); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetLargeFriendAvatar")] -internal static extern int SteamAPI_ISteamFriends_GetLargeFriendAvatar(IntPtr instancePtr, ulong steamIDFriend); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_RequestUserInformation")] -internal static extern bool SteamAPI_ISteamFriends_RequestUserInformation(IntPtr instancePtr, ulong steamIDUser, bool bRequireNameOnly); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_RequestClanOfficerList")] -internal static extern ulong SteamAPI_ISteamFriends_RequestClanOfficerList(IntPtr instancePtr, ulong steamIDClan); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetClanOwner")] -internal static extern ulong SteamAPI_ISteamFriends_GetClanOwner(IntPtr instancePtr, ulong steamIDClan); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetClanOfficerCount")] -internal static extern int SteamAPI_ISteamFriends_GetClanOfficerCount(IntPtr instancePtr, ulong steamIDClan); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetClanOfficerByIndex")] -internal static extern ulong SteamAPI_ISteamFriends_GetClanOfficerByIndex(IntPtr instancePtr, ulong steamIDClan, int iOfficer); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetUserRestrictions")] -internal static extern uint SteamAPI_ISteamFriends_GetUserRestrictions(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_SetRichPresence")] -internal static extern bool SteamAPI_ISteamFriends_SetRichPresence(IntPtr instancePtr, string pchKey, string pchValue); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_ClearRichPresence")] -internal static extern void SteamAPI_ISteamFriends_ClearRichPresence(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendRichPresence")] -internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendRichPresence(IntPtr instancePtr, ulong steamIDFriend, string pchKey); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendRichPresenceKeyCount")] -internal static extern int SteamAPI_ISteamFriends_GetFriendRichPresenceKeyCount(IntPtr instancePtr, ulong steamIDFriend); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendRichPresenceKeyByIndex")] -internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendRichPresenceKeyByIndex(IntPtr instancePtr, ulong steamIDFriend, int iKey); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_RequestFriendRichPresence")] -internal static extern void SteamAPI_ISteamFriends_RequestFriendRichPresence(IntPtr instancePtr, ulong steamIDFriend); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_InviteUserToGame")] -internal static extern bool SteamAPI_ISteamFriends_InviteUserToGame(IntPtr instancePtr, ulong steamIDFriend, string pchConnectString); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetCoplayFriendCount")] -internal static extern int SteamAPI_ISteamFriends_GetCoplayFriendCount(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetCoplayFriend")] -internal static extern ulong SteamAPI_ISteamFriends_GetCoplayFriend(IntPtr instancePtr, int iCoplayFriend); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendCoplayTime")] -internal static extern int SteamAPI_ISteamFriends_GetFriendCoplayTime(IntPtr instancePtr, ulong steamIDFriend); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendCoplayGame")] -internal static extern uint SteamAPI_ISteamFriends_GetFriendCoplayGame(IntPtr instancePtr, ulong steamIDFriend); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_JoinClanChatRoom")] -internal static extern ulong SteamAPI_ISteamFriends_JoinClanChatRoom(IntPtr instancePtr, ulong steamIDClan); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_LeaveClanChatRoom")] -internal static extern bool SteamAPI_ISteamFriends_LeaveClanChatRoom(IntPtr instancePtr, ulong steamIDClan); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetClanChatMemberCount")] -internal static extern int SteamAPI_ISteamFriends_GetClanChatMemberCount(IntPtr instancePtr, ulong steamIDClan); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetChatMemberByIndex")] -internal static extern ulong SteamAPI_ISteamFriends_GetChatMemberByIndex(IntPtr instancePtr, ulong steamIDClan, int iUser); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_SendClanChatMessage")] -internal static extern bool SteamAPI_ISteamFriends_SendClanChatMessage(IntPtr instancePtr, ulong steamIDClanChat, string pchText); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetClanChatMessage")] -internal static extern int SteamAPI_ISteamFriends_GetClanChatMessage(IntPtr instancePtr, ulong steamIDClanChat, int iMessage, IntPtr prgchText, int cchTextMax, ref uint peChatEntryType, ref CSteamID psteamidChatter); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_IsClanChatAdmin")] -internal static extern bool SteamAPI_ISteamFriends_IsClanChatAdmin(IntPtr instancePtr, ulong steamIDClanChat, ulong steamIDUser); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_IsClanChatWindowOpenInSteam")] -internal static extern bool SteamAPI_ISteamFriends_IsClanChatWindowOpenInSteam(IntPtr instancePtr, ulong steamIDClanChat); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_OpenClanChatWindowInSteam")] -internal static extern bool SteamAPI_ISteamFriends_OpenClanChatWindowInSteam(IntPtr instancePtr, ulong steamIDClanChat); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_CloseClanChatWindowInSteam")] -internal static extern bool SteamAPI_ISteamFriends_CloseClanChatWindowInSteam(IntPtr instancePtr, ulong steamIDClanChat); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_SetListenForFriendsMessages")] -internal static extern bool SteamAPI_ISteamFriends_SetListenForFriendsMessages(IntPtr instancePtr, bool bInterceptEnabled); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_ReplyToFriendMessage")] -internal static extern bool SteamAPI_ISteamFriends_ReplyToFriendMessage(IntPtr instancePtr, ulong steamIDFriend, string pchMsgToSend); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendMessage")] -internal static extern int SteamAPI_ISteamFriends_GetFriendMessage(IntPtr instancePtr, ulong steamIDFriend, int iMessageID, IntPtr pvData, int cubData, ref uint peChatEntryType); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFollowerCount")] -internal static extern ulong SteamAPI_ISteamFriends_GetFollowerCount(IntPtr instancePtr, ulong steamID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_IsFollowing")] -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_ISteamUtils_GetSecondsSinceAppActive")] -internal static extern uint SteamAPI_ISteamUtils_GetSecondsSinceAppActive(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetSecondsSinceComputerActive")] -internal static extern uint SteamAPI_ISteamUtils_GetSecondsSinceComputerActive(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetConnectedUniverse")] -internal static extern int SteamAPI_ISteamUtils_GetConnectedUniverse(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetServerRealTime")] -internal static extern uint SteamAPI_ISteamUtils_GetServerRealTime(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetIPCountry")] -internal static extern IntPtr SteamAPI_ISteamUtils_GetIPCountry(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetImageSize")] -internal static extern bool SteamAPI_ISteamUtils_GetImageSize(IntPtr instancePtr, int iImage, ref uint pnWidth, ref uint pnHeight); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetImageRGBA")] -internal static extern bool SteamAPI_ISteamUtils_GetImageRGBA(IntPtr instancePtr, int iImage, IntPtr pubDest, int nDestBufferSize); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetCSERIPPort")] -internal static extern bool SteamAPI_ISteamUtils_GetCSERIPPort(IntPtr instancePtr, ref uint unIP, ref char usPort); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetCurrentBatteryPower")] -internal static extern byte SteamAPI_ISteamUtils_GetCurrentBatteryPower(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetAppID")] -internal static extern uint SteamAPI_ISteamUtils_GetAppID(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_SetOverlayNotificationPosition")] -internal static extern void SteamAPI_ISteamUtils_SetOverlayNotificationPosition(IntPtr instancePtr, uint eNotificationPosition); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_IsAPICallCompleted")] -internal static extern bool SteamAPI_ISteamUtils_IsAPICallCompleted(IntPtr instancePtr, ulong hSteamAPICall, ref bool pbFailed); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetAPICallFailureReason")] -internal static extern int SteamAPI_ISteamUtils_GetAPICallFailureReason(IntPtr instancePtr, ulong hSteamAPICall); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetAPICallResult")] -internal static extern bool SteamAPI_ISteamUtils_GetAPICallResult(IntPtr instancePtr, ulong hSteamAPICall, IntPtr pCallback, int cubCallback, int iCallbackExpected, ref bool pbFailed); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_RunFrame")] -internal static extern void SteamAPI_ISteamUtils_RunFrame(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetIPCCallCount")] -internal static extern uint SteamAPI_ISteamUtils_GetIPCCallCount(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_SetWarningMessageHook")] -internal static extern void SteamAPI_ISteamUtils_SetWarningMessageHook(IntPtr instancePtr, IntPtr pFunction); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_IsOverlayEnabled")] -internal static extern bool SteamAPI_ISteamUtils_IsOverlayEnabled(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_BOverlayNeedsPresent")] -internal static extern bool SteamAPI_ISteamUtils_BOverlayNeedsPresent(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_CheckFileSignature")] -internal static extern ulong SteamAPI_ISteamUtils_CheckFileSignature(IntPtr instancePtr, string szFileName); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_ShowGamepadTextInput")] -internal static extern bool SteamAPI_ISteamUtils_ShowGamepadTextInput(IntPtr instancePtr, int eInputMode, int eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetEnteredGamepadTextLength")] -internal static extern uint SteamAPI_ISteamUtils_GetEnteredGamepadTextLength(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetEnteredGamepadTextInput")] -internal static extern bool SteamAPI_ISteamUtils_GetEnteredGamepadTextInput(IntPtr instancePtr, string pchText, uint cchText); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetSteamUILanguage")] -internal static extern IntPtr SteamAPI_ISteamUtils_GetSteamUILanguage(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_IsSteamRunningInVR")] -internal static extern bool SteamAPI_ISteamUtils_IsSteamRunningInVR(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_SetOverlayNotificationInset")] -internal static extern void SteamAPI_ISteamUtils_SetOverlayNotificationInset(IntPtr instancePtr, int nHorizontalInset, int nVerticalInset); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetFavoriteGameCount")] -internal static extern int SteamAPI_ISteamMatchmaking_GetFavoriteGameCount(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetFavoriteGame")] -internal static extern bool SteamAPI_ISteamMatchmaking_GetFavoriteGame(IntPtr instancePtr, int iGame, ref uint pnAppID, ref uint pnIP, ref char pnConnPort, ref char pnQueryPort, ref uint punFlags, ref uint pRTime32LastPlayedOnServer); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_AddFavoriteGame")] -internal static extern int SteamAPI_ISteamMatchmaking_AddFavoriteGame(IntPtr instancePtr, uint nAppID, uint nIP, char nConnPort, char nQueryPort, uint unFlags, uint rTime32LastPlayedOnServer); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_RemoveFavoriteGame")] -internal static extern bool SteamAPI_ISteamMatchmaking_RemoveFavoriteGame(IntPtr instancePtr, uint nAppID, uint nIP, char nConnPort, char nQueryPort, uint unFlags); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_RequestLobbyList")] -internal static extern ulong SteamAPI_ISteamMatchmaking_RequestLobbyList(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListStringFilter")] -internal static extern void SteamAPI_ISteamMatchmaking_AddRequestLobbyListStringFilter(IntPtr instancePtr, string pchKeyToMatch, string pchValueToMatch, uint eComparisonType); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListNumericalFilter")] -internal static extern void SteamAPI_ISteamMatchmaking_AddRequestLobbyListNumericalFilter(IntPtr instancePtr, string pchKeyToMatch, int nValueToMatch, uint eComparisonType); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListNearValueFilter")] -internal static extern void SteamAPI_ISteamMatchmaking_AddRequestLobbyListNearValueFilter(IntPtr instancePtr, string pchKeyToMatch, int nValueToBeCloseTo); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable")] -internal static extern void SteamAPI_ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable(IntPtr instancePtr, int nSlotsAvailable); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListDistanceFilter")] -internal static extern void SteamAPI_ISteamMatchmaking_AddRequestLobbyListDistanceFilter(IntPtr instancePtr, uint eLobbyDistanceFilter); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListResultCountFilter")] -internal static extern void SteamAPI_ISteamMatchmaking_AddRequestLobbyListResultCountFilter(IntPtr instancePtr, int cMaxResults); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter")] -internal static extern void SteamAPI_ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter(IntPtr instancePtr, ulong steamIDLobby); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyByIndex")] -internal static extern ulong SteamAPI_ISteamMatchmaking_GetLobbyByIndex(IntPtr instancePtr, int iLobby); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_CreateLobby")] -internal static extern ulong SteamAPI_ISteamMatchmaking_CreateLobby(IntPtr instancePtr, uint eLobbyType, int cMaxMembers); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_JoinLobby")] -internal static extern ulong SteamAPI_ISteamMatchmaking_JoinLobby(IntPtr instancePtr, ulong steamIDLobby); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_LeaveLobby")] -internal static extern void SteamAPI_ISteamMatchmaking_LeaveLobby(IntPtr instancePtr, ulong steamIDLobby); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_InviteUserToLobby")] -internal static extern bool SteamAPI_ISteamMatchmaking_InviteUserToLobby(IntPtr instancePtr, ulong steamIDLobby, ulong steamIDInvitee); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetNumLobbyMembers")] -internal static extern int SteamAPI_ISteamMatchmaking_GetNumLobbyMembers(IntPtr instancePtr, ulong steamIDLobby); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyMemberByIndex")] -internal static extern ulong SteamAPI_ISteamMatchmaking_GetLobbyMemberByIndex(IntPtr instancePtr, ulong steamIDLobby, int iMember); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyData")] -internal static extern IntPtr SteamAPI_ISteamMatchmaking_GetLobbyData(IntPtr instancePtr, ulong steamIDLobby, string pchKey); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyData")] -internal static extern bool SteamAPI_ISteamMatchmaking_SetLobbyData(IntPtr instancePtr, ulong steamIDLobby, string pchKey, string pchValue); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyDataCount")] -internal static extern int SteamAPI_ISteamMatchmaking_GetLobbyDataCount(IntPtr instancePtr, ulong steamIDLobby); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex")] -internal static extern bool SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex(IntPtr instancePtr, ulong steamIDLobby, int iLobbyData, string pchKey, int cchKeyBufferSize, string pchValue, int cchValueBufferSize); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_DeleteLobbyData")] -internal static extern bool SteamAPI_ISteamMatchmaking_DeleteLobbyData(IntPtr instancePtr, ulong steamIDLobby, string pchKey); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyMemberData")] -internal static extern IntPtr SteamAPI_ISteamMatchmaking_GetLobbyMemberData(IntPtr instancePtr, ulong steamIDLobby, ulong steamIDUser, string pchKey); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyMemberData")] -internal static extern void SteamAPI_ISteamMatchmaking_SetLobbyMemberData(IntPtr instancePtr, ulong steamIDLobby, string pchKey, string pchValue); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_SendLobbyChatMsg")] -internal static extern bool SteamAPI_ISteamMatchmaking_SendLobbyChatMsg(IntPtr instancePtr, ulong steamIDLobby, IntPtr pvMsgBody, int cubMsgBody); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyChatEntry")] -internal static extern int SteamAPI_ISteamMatchmaking_GetLobbyChatEntry(IntPtr instancePtr, ulong steamIDLobby, int iChatID, ref CSteamID pSteamIDUser, IntPtr pvData, int cubData, ref uint peChatEntryType); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_RequestLobbyData")] -internal static extern bool SteamAPI_ISteamMatchmaking_RequestLobbyData(IntPtr instancePtr, ulong steamIDLobby); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyGameServer")] -internal static extern void SteamAPI_ISteamMatchmaking_SetLobbyGameServer(IntPtr instancePtr, ulong steamIDLobby, uint unGameServerIP, char unGameServerPort, ulong steamIDGameServer); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyGameServer")] -internal static extern bool SteamAPI_ISteamMatchmaking_GetLobbyGameServer(IntPtr instancePtr, ulong steamIDLobby, ref uint punGameServerIP, ref char punGameServerPort, ref CSteamID psteamIDGameServer); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyMemberLimit")] -internal static extern bool SteamAPI_ISteamMatchmaking_SetLobbyMemberLimit(IntPtr instancePtr, ulong steamIDLobby, int cMaxMembers); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyMemberLimit")] -internal static extern int SteamAPI_ISteamMatchmaking_GetLobbyMemberLimit(IntPtr instancePtr, ulong steamIDLobby); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyType")] -internal static extern bool SteamAPI_ISteamMatchmaking_SetLobbyType(IntPtr instancePtr, ulong steamIDLobby, uint eLobbyType); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyJoinable")] -internal static extern bool SteamAPI_ISteamMatchmaking_SetLobbyJoinable(IntPtr instancePtr, ulong steamIDLobby, bool bLobbyJoinable); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyOwner")] -internal static extern ulong SteamAPI_ISteamMatchmaking_GetLobbyOwner(IntPtr instancePtr, ulong steamIDLobby); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyOwner")] -internal static extern bool SteamAPI_ISteamMatchmaking_SetLobbyOwner(IntPtr instancePtr, ulong steamIDLobby, ulong steamIDNewOwner); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_SetLinkedLobby")] -internal static extern bool SteamAPI_ISteamMatchmaking_SetLinkedLobby(IntPtr instancePtr, ulong steamIDLobby, ulong steamIDLobbyDependent); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServerListResponse_ServerResponded")] -internal static extern void SteamAPI_ISteamMatchmakingServerListResponse_ServerResponded(IntPtr instancePtr, uint hRequest, int iServer); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServerListResponse_ServerFailedToRespond")] -internal static extern void SteamAPI_ISteamMatchmakingServerListResponse_ServerFailedToRespond(IntPtr instancePtr, uint hRequest, int iServer); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServerListResponse_RefreshComplete")] -internal static extern void SteamAPI_ISteamMatchmakingServerListResponse_RefreshComplete(IntPtr instancePtr, uint hRequest, uint response); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingPingResponse_ServerResponded")] -internal static extern void SteamAPI_ISteamMatchmakingPingResponse_ServerResponded(IntPtr instancePtr, IntPtr server); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingPingResponse_ServerFailedToRespond")] -internal static extern void SteamAPI_ISteamMatchmakingPingResponse_ServerFailedToRespond(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingPlayersResponse_AddPlayerToList")] -internal static extern void SteamAPI_ISteamMatchmakingPlayersResponse_AddPlayerToList(IntPtr instancePtr, string pchName, int nScore, float flTimePlayed); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingPlayersResponse_PlayersFailedToRespond")] -internal static extern void SteamAPI_ISteamMatchmakingPlayersResponse_PlayersFailedToRespond(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingPlayersResponse_PlayersRefreshComplete")] -internal static extern void SteamAPI_ISteamMatchmakingPlayersResponse_PlayersRefreshComplete(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingRulesResponse_RulesResponded")] -internal static extern void SteamAPI_ISteamMatchmakingRulesResponse_RulesResponded(IntPtr instancePtr, string pchRule, string pchValue); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingRulesResponse_RulesFailedToRespond")] -internal static extern void SteamAPI_ISteamMatchmakingRulesResponse_RulesFailedToRespond(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingRulesResponse_RulesRefreshComplete")] -internal static extern void SteamAPI_ISteamMatchmakingRulesResponse_RulesRefreshComplete(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_RequestInternetServerList")] -internal static extern uint SteamAPI_ISteamMatchmakingServers_RequestInternetServerList(IntPtr instancePtr, uint iApp, [In, Out] MatchMakingKeyValuePair_t [] ppchFilters, uint nFilters, IntPtr pRequestServersResponse); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_RequestLANServerList")] -internal static extern uint SteamAPI_ISteamMatchmakingServers_RequestLANServerList(IntPtr instancePtr, uint iApp, IntPtr pRequestServersResponse); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_RequestFriendsServerList")] -internal static extern uint SteamAPI_ISteamMatchmakingServers_RequestFriendsServerList(IntPtr instancePtr, uint iApp, [In, Out] MatchMakingKeyValuePair_t [] ppchFilters, uint nFilters, IntPtr pRequestServersResponse); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_RequestFavoritesServerList")] -internal static extern uint SteamAPI_ISteamMatchmakingServers_RequestFavoritesServerList(IntPtr instancePtr, uint iApp, [In, Out] MatchMakingKeyValuePair_t [] ppchFilters, uint nFilters, IntPtr pRequestServersResponse); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_RequestHistoryServerList")] -internal static extern uint SteamAPI_ISteamMatchmakingServers_RequestHistoryServerList(IntPtr instancePtr, uint iApp, [In, Out] MatchMakingKeyValuePair_t [] ppchFilters, uint nFilters, IntPtr pRequestServersResponse); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_RequestSpectatorServerList")] -internal static extern uint SteamAPI_ISteamMatchmakingServers_RequestSpectatorServerList(IntPtr instancePtr, uint iApp, [In, Out] MatchMakingKeyValuePair_t [] ppchFilters, uint nFilters, IntPtr pRequestServersResponse); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_ReleaseRequest")] -internal static extern void SteamAPI_ISteamMatchmakingServers_ReleaseRequest(IntPtr instancePtr, uint hServerListRequest); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_GetServerDetails")] -internal static extern IntPtr SteamAPI_ISteamMatchmakingServers_GetServerDetails(IntPtr instancePtr, uint hRequest, int iServer); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_CancelQuery")] -internal static extern void SteamAPI_ISteamMatchmakingServers_CancelQuery(IntPtr instancePtr, uint hRequest); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_RefreshQuery")] -internal static extern void SteamAPI_ISteamMatchmakingServers_RefreshQuery(IntPtr instancePtr, uint hRequest); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_IsRefreshing")] -internal static extern bool SteamAPI_ISteamMatchmakingServers_IsRefreshing(IntPtr instancePtr, uint hRequest); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_GetServerCount")] -internal static extern int SteamAPI_ISteamMatchmakingServers_GetServerCount(IntPtr instancePtr, uint hRequest); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_RefreshServer")] -internal static extern void SteamAPI_ISteamMatchmakingServers_RefreshServer(IntPtr instancePtr, uint hRequest, int iServer); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_PingServer")] -internal static extern uint SteamAPI_ISteamMatchmakingServers_PingServer(IntPtr instancePtr, uint unIP, char usPort, IntPtr pRequestServersResponse); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_PlayerDetails")] -internal static extern uint SteamAPI_ISteamMatchmakingServers_PlayerDetails(IntPtr instancePtr, uint unIP, char usPort, IntPtr pRequestServersResponse); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_ServerRules")] -internal static extern uint SteamAPI_ISteamMatchmakingServers_ServerRules(IntPtr instancePtr, uint unIP, char usPort, IntPtr pRequestServersResponse); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_CancelServerQuery")] -internal static extern void SteamAPI_ISteamMatchmakingServers_CancelServerQuery(IntPtr instancePtr, uint hServerQuery); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileWrite")] -internal static extern bool SteamAPI_ISteamRemoteStorage_FileWrite(IntPtr instancePtr, string pchFile, IntPtr pvData, int cubData); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileRead")] -internal static extern int SteamAPI_ISteamRemoteStorage_FileRead(IntPtr instancePtr, string pchFile, IntPtr pvData, int cubDataToRead); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileWriteAsync")] -internal static extern ulong SteamAPI_ISteamRemoteStorage_FileWriteAsync(IntPtr instancePtr, string pchFile, IntPtr pvData, uint cubData); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileReadAsync")] -internal static extern ulong SteamAPI_ISteamRemoteStorage_FileReadAsync(IntPtr instancePtr, string pchFile, uint nOffset, uint cubToRead); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileReadAsyncComplete")] -internal static extern bool SteamAPI_ISteamRemoteStorage_FileReadAsyncComplete(IntPtr instancePtr, ulong hReadCall, IntPtr pvBuffer, uint cubToRead); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileForget")] -internal static extern bool SteamAPI_ISteamRemoteStorage_FileForget(IntPtr instancePtr, string pchFile); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileDelete")] -internal static extern bool SteamAPI_ISteamRemoteStorage_FileDelete(IntPtr instancePtr, string pchFile); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileShare")] -internal static extern ulong SteamAPI_ISteamRemoteStorage_FileShare(IntPtr instancePtr, string pchFile); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_SetSyncPlatforms")] -internal static extern bool SteamAPI_ISteamRemoteStorage_SetSyncPlatforms(IntPtr instancePtr, string pchFile, uint eRemoteStoragePlatform); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileWriteStreamOpen")] -internal static extern ulong SteamAPI_ISteamRemoteStorage_FileWriteStreamOpen(IntPtr instancePtr, string pchFile); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileWriteStreamWriteChunk")] -internal static extern bool SteamAPI_ISteamRemoteStorage_FileWriteStreamWriteChunk(IntPtr instancePtr, ulong writeHandle, IntPtr pvData, int cubData); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileWriteStreamClose")] -internal static extern bool SteamAPI_ISteamRemoteStorage_FileWriteStreamClose(IntPtr instancePtr, ulong writeHandle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileWriteStreamCancel")] -internal static extern bool SteamAPI_ISteamRemoteStorage_FileWriteStreamCancel(IntPtr instancePtr, ulong writeHandle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileExists")] -internal static extern bool SteamAPI_ISteamRemoteStorage_FileExists(IntPtr instancePtr, string pchFile); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FilePersisted")] -internal static extern bool SteamAPI_ISteamRemoteStorage_FilePersisted(IntPtr instancePtr, string pchFile); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetFileSize")] -internal static extern int SteamAPI_ISteamRemoteStorage_GetFileSize(IntPtr instancePtr, string pchFile); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetFileTimestamp")] -internal static extern long SteamAPI_ISteamRemoteStorage_GetFileTimestamp(IntPtr instancePtr, string pchFile); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetSyncPlatforms")] -internal static extern uint SteamAPI_ISteamRemoteStorage_GetSyncPlatforms(IntPtr instancePtr, string pchFile); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetFileCount")] -internal static extern int SteamAPI_ISteamRemoteStorage_GetFileCount(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetFileNameAndSize")] -internal static extern IntPtr SteamAPI_ISteamRemoteStorage_GetFileNameAndSize(IntPtr instancePtr, int iFile, ref int pnFileSizeInBytes); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetQuota")] -internal static extern bool SteamAPI_ISteamRemoteStorage_GetQuota(IntPtr instancePtr, ref int pnTotalBytes, ref int puAvailableBytes); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_IsCloudEnabledForAccount")] -internal static extern bool SteamAPI_ISteamRemoteStorage_IsCloudEnabledForAccount(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_IsCloudEnabledForApp")] -internal static extern bool SteamAPI_ISteamRemoteStorage_IsCloudEnabledForApp(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_SetCloudEnabledForApp")] -internal static extern void SteamAPI_ISteamRemoteStorage_SetCloudEnabledForApp(IntPtr instancePtr, bool bEnabled); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_UGCDownload")] -internal static extern ulong SteamAPI_ISteamRemoteStorage_UGCDownload(IntPtr instancePtr, ulong hContent, uint unPriority); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetUGCDownloadProgress")] -internal static extern bool SteamAPI_ISteamRemoteStorage_GetUGCDownloadProgress(IntPtr instancePtr, ulong hContent, ref int pnBytesDownloaded, ref int pnBytesExpected); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetUGCDetails")] -internal static extern bool SteamAPI_ISteamRemoteStorage_GetUGCDetails(IntPtr instancePtr, ulong hContent, ref uint pnAppID, string ppchName, ref int pnFileSizeInBytes, ref CSteamID pSteamIDOwner); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_UGCRead")] -internal static extern int SteamAPI_ISteamRemoteStorage_UGCRead(IntPtr instancePtr, ulong hContent, IntPtr pvData, int cubDataToRead, uint cOffset, uint eAction); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetCachedUGCCount")] -internal static extern int SteamAPI_ISteamRemoteStorage_GetCachedUGCCount(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetCachedUGCHandle")] -internal static extern ulong SteamAPI_ISteamRemoteStorage_GetCachedUGCHandle(IntPtr instancePtr, int iCachedContent); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_PublishWorkshopFile")] -internal static extern ulong SteamAPI_ISteamRemoteStorage_PublishWorkshopFile(IntPtr instancePtr, string pchFile, string pchPreviewFile, uint nConsumerAppId, string pchTitle, string pchDescription, uint eVisibility, ref SteamParamStringArray_t pTags, uint eWorkshopFileType); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_CreatePublishedFileUpdateRequest")] -internal static extern ulong SteamAPI_ISteamRemoteStorage_CreatePublishedFileUpdateRequest(IntPtr instancePtr, ulong unPublishedFileId); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFileFile")] -internal static extern bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileFile(IntPtr instancePtr, ulong updateHandle, string pchFile); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFilePreviewFile")] -internal static extern bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFilePreviewFile(IntPtr instancePtr, ulong updateHandle, string pchPreviewFile); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTitle")] -internal static extern bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTitle(IntPtr instancePtr, ulong updateHandle, string pchTitle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFileDescription")] -internal static extern bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileDescription(IntPtr instancePtr, ulong updateHandle, string pchDescription); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFileVisibility")] -internal static extern bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileVisibility(IntPtr instancePtr, ulong updateHandle, uint eVisibility); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTags")] -internal static extern bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTags(IntPtr instancePtr, ulong updateHandle, ref SteamParamStringArray_t pTags); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_CommitPublishedFileUpdate")] -internal static extern ulong SteamAPI_ISteamRemoteStorage_CommitPublishedFileUpdate(IntPtr instancePtr, ulong updateHandle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetPublishedFileDetails")] -internal static extern ulong SteamAPI_ISteamRemoteStorage_GetPublishedFileDetails(IntPtr instancePtr, ulong unPublishedFileId, uint unMaxSecondsOld); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_DeletePublishedFile")] -internal static extern ulong SteamAPI_ISteamRemoteStorage_DeletePublishedFile(IntPtr instancePtr, ulong unPublishedFileId); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_EnumerateUserPublishedFiles")] -internal static extern ulong SteamAPI_ISteamRemoteStorage_EnumerateUserPublishedFiles(IntPtr instancePtr, uint unStartIndex); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_SubscribePublishedFile")] -internal static extern ulong SteamAPI_ISteamRemoteStorage_SubscribePublishedFile(IntPtr instancePtr, ulong unPublishedFileId); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_EnumerateUserSubscribedFiles")] -internal static extern ulong SteamAPI_ISteamRemoteStorage_EnumerateUserSubscribedFiles(IntPtr instancePtr, uint unStartIndex); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_UnsubscribePublishedFile")] -internal static extern ulong SteamAPI_ISteamRemoteStorage_UnsubscribePublishedFile(IntPtr instancePtr, ulong unPublishedFileId); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription")] -internal static extern bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription(IntPtr instancePtr, ulong updateHandle, string pchChangeDescription); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetPublishedItemVoteDetails")] -internal static extern ulong SteamAPI_ISteamRemoteStorage_GetPublishedItemVoteDetails(IntPtr instancePtr, ulong unPublishedFileId); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdateUserPublishedItemVote")] -internal static extern ulong SteamAPI_ISteamRemoteStorage_UpdateUserPublishedItemVote(IntPtr instancePtr, ulong unPublishedFileId, bool bVoteUp); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetUserPublishedItemVoteDetails")] -internal static extern ulong SteamAPI_ISteamRemoteStorage_GetUserPublishedItemVoteDetails(IntPtr instancePtr, ulong unPublishedFileId); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles")] -internal static extern ulong SteamAPI_ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles(IntPtr instancePtr, ulong steamId, uint unStartIndex, ref SteamParamStringArray_t pRequiredTags, ref SteamParamStringArray_t pExcludedTags); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_PublishVideo")] -internal static extern ulong SteamAPI_ISteamRemoteStorage_PublishVideo(IntPtr instancePtr, uint eVideoProvider, string pchVideoAccount, string pchVideoIdentifier, string pchPreviewFile, uint nConsumerAppId, string pchTitle, string pchDescription, uint eVisibility, ref SteamParamStringArray_t pTags); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_SetUserPublishedFileAction")] -internal static extern ulong SteamAPI_ISteamRemoteStorage_SetUserPublishedFileAction(IntPtr instancePtr, ulong unPublishedFileId, uint eAction); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_EnumeratePublishedFilesByUserAction")] -internal static extern ulong SteamAPI_ISteamRemoteStorage_EnumeratePublishedFilesByUserAction(IntPtr instancePtr, uint eAction, uint unStartIndex); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_EnumeratePublishedWorkshopFiles")] -internal static extern ulong SteamAPI_ISteamRemoteStorage_EnumeratePublishedWorkshopFiles(IntPtr instancePtr, uint eEnumerationType, uint unStartIndex, uint unCount, uint unDays, ref SteamParamStringArray_t pTags, ref SteamParamStringArray_t pUserTags); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_UGCDownloadToLocation")] -internal static extern ulong SteamAPI_ISteamRemoteStorage_UGCDownloadToLocation(IntPtr instancePtr, ulong hContent, string pchLocation, uint unPriority); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_RequestCurrentStats")] -internal static extern bool SteamAPI_ISteamUserStats_RequestCurrentStats(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetStat")] -internal static extern bool SteamAPI_ISteamUserStats_GetStat(IntPtr instancePtr, string pchName, ref int pData); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetStat0")] -internal static extern bool SteamAPI_ISteamUserStats_GetStat0(IntPtr instancePtr, string pchName, ref float pData); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_SetStat")] -internal static extern bool SteamAPI_ISteamUserStats_SetStat(IntPtr instancePtr, string pchName, int nData); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_SetStat0")] -internal static extern bool SteamAPI_ISteamUserStats_SetStat0(IntPtr instancePtr, string pchName, float fData); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_UpdateAvgRateStat")] -internal static extern bool SteamAPI_ISteamUserStats_UpdateAvgRateStat(IntPtr instancePtr, string pchName, float flCountThisSession, double dSessionLength); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievement")] -internal static extern bool SteamAPI_ISteamUserStats_GetAchievement(IntPtr instancePtr, string pchName, ref bool pbAchieved); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_SetAchievement")] -internal static extern bool SteamAPI_ISteamUserStats_SetAchievement(IntPtr instancePtr, string pchName); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_ClearAchievement")] -internal static extern bool SteamAPI_ISteamUserStats_ClearAchievement(IntPtr instancePtr, string pchName); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime")] -internal static extern bool SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime(IntPtr instancePtr, string pchName, ref bool pbAchieved, ref uint punUnlockTime); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_StoreStats")] -internal static extern bool SteamAPI_ISteamUserStats_StoreStats(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementIcon")] -internal static extern int SteamAPI_ISteamUserStats_GetAchievementIcon(IntPtr instancePtr, string pchName); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute")] -internal static extern IntPtr SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute(IntPtr instancePtr, string pchName, string pchKey); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_IndicateAchievementProgress")] -internal static extern bool SteamAPI_ISteamUserStats_IndicateAchievementProgress(IntPtr instancePtr, string pchName, uint nCurProgress, uint nMaxProgress); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetNumAchievements")] -internal static extern uint SteamAPI_ISteamUserStats_GetNumAchievements(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementName")] -internal static extern IntPtr SteamAPI_ISteamUserStats_GetAchievementName(IntPtr instancePtr, uint iAchievement); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_RequestUserStats")] -internal static extern ulong SteamAPI_ISteamUserStats_RequestUserStats(IntPtr instancePtr, ulong steamIDUser); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetUserStat")] -internal static extern bool SteamAPI_ISteamUserStats_GetUserStat(IntPtr instancePtr, ulong steamIDUser, string pchName, ref int pData); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetUserStat0")] -internal static extern bool SteamAPI_ISteamUserStats_GetUserStat0(IntPtr instancePtr, ulong steamIDUser, string pchName, ref float pData); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievement")] -internal static extern bool SteamAPI_ISteamUserStats_GetUserAchievement(IntPtr instancePtr, ulong steamIDUser, string pchName, ref bool pbAchieved); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime")] -internal static extern bool SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime(IntPtr instancePtr, ulong steamIDUser, string pchName, ref bool pbAchieved, ref uint punUnlockTime); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_ResetAllStats")] -internal static extern bool SteamAPI_ISteamUserStats_ResetAllStats(IntPtr instancePtr, bool bAchievementsToo); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_FindOrCreateLeaderboard")] -internal static extern ulong SteamAPI_ISteamUserStats_FindOrCreateLeaderboard(IntPtr instancePtr, string pchLeaderboardName, uint eLeaderboardSortMethod, uint eLeaderboardDisplayType); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_FindLeaderboard")] -internal static extern ulong SteamAPI_ISteamUserStats_FindLeaderboard(IntPtr instancePtr, string pchLeaderboardName); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetLeaderboardName")] -internal static extern IntPtr SteamAPI_ISteamUserStats_GetLeaderboardName(IntPtr instancePtr, ulong hSteamLeaderboard); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetLeaderboardEntryCount")] -internal static extern int SteamAPI_ISteamUserStats_GetLeaderboardEntryCount(IntPtr instancePtr, ulong hSteamLeaderboard); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetLeaderboardSortMethod")] -internal static extern uint SteamAPI_ISteamUserStats_GetLeaderboardSortMethod(IntPtr instancePtr, ulong hSteamLeaderboard); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetLeaderboardDisplayType")] -internal static extern uint SteamAPI_ISteamUserStats_GetLeaderboardDisplayType(IntPtr instancePtr, ulong hSteamLeaderboard); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_DownloadLeaderboardEntries")] -internal static extern ulong SteamAPI_ISteamUserStats_DownloadLeaderboardEntries(IntPtr instancePtr, ulong hSteamLeaderboard, uint eLeaderboardDataRequest, int nRangeStart, int nRangeEnd); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_DownloadLeaderboardEntriesForUsers")] -internal static extern ulong SteamAPI_ISteamUserStats_DownloadLeaderboardEntriesForUsers(IntPtr instancePtr, ulong hSteamLeaderboard, [In, Out] CSteamID[] prgUsers, int cUsers); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetDownloadedLeaderboardEntry")] -internal static extern bool SteamAPI_ISteamUserStats_GetDownloadedLeaderboardEntry(IntPtr instancePtr, ulong hSteamLeaderboardEntries, int index, ref LeaderboardEntry_t pLeaderboardEntry, ref int pDetails, int cDetailsMax); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_UploadLeaderboardScore")] -internal static extern ulong SteamAPI_ISteamUserStats_UploadLeaderboardScore(IntPtr instancePtr, ulong hSteamLeaderboard, uint eLeaderboardUploadScoreMethod, int nScore, ref int pScoreDetails, int cScoreDetailsCount); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_AttachLeaderboardUGC")] -internal static extern ulong SteamAPI_ISteamUserStats_AttachLeaderboardUGC(IntPtr instancePtr, ulong hSteamLeaderboard, ulong hUGC); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers")] -internal static extern ulong SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages")] -internal static extern ulong SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo")] -internal static extern int SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo(IntPtr instancePtr, string pchName, uint unNameBufLen, ref float pflPercent, ref bool pbAchieved); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo")] -internal static extern int SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo(IntPtr instancePtr, int iIteratorPrevious, string pchName, uint unNameBufLen, ref float pflPercent, ref bool pbAchieved); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAchievedPercent")] -internal static extern bool SteamAPI_ISteamUserStats_GetAchievementAchievedPercent(IntPtr instancePtr, string pchName, ref float pflPercent); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalStats")] -internal static extern ulong SteamAPI_ISteamUserStats_RequestGlobalStats(IntPtr instancePtr, int nHistoryDays); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStat")] -internal static extern bool SteamAPI_ISteamUserStats_GetGlobalStat(IntPtr instancePtr, string pchStatName, ref long pData); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStat0")] -internal static extern bool SteamAPI_ISteamUserStats_GetGlobalStat0(IntPtr instancePtr, string pchStatName, ref double pData); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStatHistory")] -internal static extern int SteamAPI_ISteamUserStats_GetGlobalStatHistory(IntPtr instancePtr, string pchStatName, [In, Out] long[] pData, uint cubData); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStatHistory0")] -internal static extern int SteamAPI_ISteamUserStats_GetGlobalStatHistory0(IntPtr instancePtr, string pchStatName, [In, Out] double[] pData, uint cubData); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_BIsSubscribed")] -internal static extern bool SteamAPI_ISteamApps_BIsSubscribed(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_BIsLowViolence")] -internal static extern bool SteamAPI_ISteamApps_BIsLowViolence(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_BIsCybercafe")] -internal static extern bool SteamAPI_ISteamApps_BIsCybercafe(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_BIsVACBanned")] -internal static extern bool SteamAPI_ISteamApps_BIsVACBanned(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_GetCurrentGameLanguage")] -internal static extern IntPtr SteamAPI_ISteamApps_GetCurrentGameLanguage(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_GetAvailableGameLanguages")] -internal static extern IntPtr SteamAPI_ISteamApps_GetAvailableGameLanguages(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_BIsSubscribedApp")] -internal static extern bool SteamAPI_ISteamApps_BIsSubscribedApp(IntPtr instancePtr, uint appID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_BIsDlcInstalled")] -internal static extern bool SteamAPI_ISteamApps_BIsDlcInstalled(IntPtr instancePtr, uint appID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime")] -internal static extern uint SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime(IntPtr instancePtr, uint nAppID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend")] -internal static extern bool SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_GetDLCCount")] -internal static extern int SteamAPI_ISteamApps_GetDLCCount(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_BGetDLCDataByIndex")] -internal static extern bool SteamAPI_ISteamApps_BGetDLCDataByIndex(IntPtr instancePtr, int iDLC, ref uint pAppID, ref bool pbAvailable, string pchName, int cchNameBufferSize); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_InstallDLC")] -internal static extern void SteamAPI_ISteamApps_InstallDLC(IntPtr instancePtr, uint nAppID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_UninstallDLC")] -internal static extern void SteamAPI_ISteamApps_UninstallDLC(IntPtr instancePtr, uint nAppID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey")] -internal static extern void SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey(IntPtr instancePtr, uint nAppID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_GetCurrentBetaName")] -internal static extern bool SteamAPI_ISteamApps_GetCurrentBetaName(IntPtr instancePtr, string pchName, int cchNameBufferSize); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_MarkContentCorrupt")] -internal static extern bool SteamAPI_ISteamApps_MarkContentCorrupt(IntPtr instancePtr, bool bMissingFilesOnly); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_GetInstalledDepots")] -internal static extern uint SteamAPI_ISteamApps_GetInstalledDepots(IntPtr instancePtr, uint appID, ref uint pvecDepots, uint cMaxDepots); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_GetAppInstallDir")] -internal static extern uint SteamAPI_ISteamApps_GetAppInstallDir(IntPtr instancePtr, uint appID, string pchFolder, uint cchFolderBufferSize); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_BIsAppInstalled")] -internal static extern bool SteamAPI_ISteamApps_BIsAppInstalled(IntPtr instancePtr, uint appID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_GetAppOwner")] -internal static extern ulong SteamAPI_ISteamApps_GetAppOwner(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_GetLaunchQueryParam")] -internal static extern IntPtr SteamAPI_ISteamApps_GetLaunchQueryParam(IntPtr instancePtr, string pchKey); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_GetDlcDownloadProgress")] -internal static extern bool SteamAPI_ISteamApps_GetDlcDownloadProgress(IntPtr instancePtr, uint nAppID, ref ulong punBytesDownloaded, ref ulong punBytesTotal); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_GetAppBuildId")] -internal static extern int SteamAPI_ISteamApps_GetAppBuildId(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_SendP2PPacket")] -internal static extern bool SteamAPI_ISteamNetworking_SendP2PPacket(IntPtr instancePtr, ulong steamIDRemote, IntPtr pubData, uint cubData, uint eP2PSendType, int nChannel); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_IsP2PPacketAvailable")] -internal static extern bool SteamAPI_ISteamNetworking_IsP2PPacketAvailable(IntPtr instancePtr, ref uint pcubMsgSize, int nChannel); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_ReadP2PPacket")] -internal static extern bool SteamAPI_ISteamNetworking_ReadP2PPacket(IntPtr instancePtr, IntPtr pubDest, uint cubDest, ref uint pcubMsgSize, ref CSteamID psteamIDRemote, int nChannel); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_AcceptP2PSessionWithUser")] -internal static extern bool SteamAPI_ISteamNetworking_AcceptP2PSessionWithUser(IntPtr instancePtr, ulong steamIDRemote); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_CloseP2PSessionWithUser")] -internal static extern bool SteamAPI_ISteamNetworking_CloseP2PSessionWithUser(IntPtr instancePtr, ulong steamIDRemote); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_CloseP2PChannelWithUser")] -internal static extern bool SteamAPI_ISteamNetworking_CloseP2PChannelWithUser(IntPtr instancePtr, ulong steamIDRemote, int nChannel); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_GetP2PSessionState")] -internal static extern bool SteamAPI_ISteamNetworking_GetP2PSessionState(IntPtr instancePtr, ulong steamIDRemote, ref P2PSessionState_t pConnectionState); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_AllowP2PPacketRelay")] -internal static extern bool SteamAPI_ISteamNetworking_AllowP2PPacketRelay(IntPtr instancePtr, bool bAllow); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_CreateListenSocket")] -internal static extern uint SteamAPI_ISteamNetworking_CreateListenSocket(IntPtr instancePtr, int nVirtualP2PPort, uint nIP, char nPort, bool bAllowUseOfPacketRelay); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_CreateP2PConnectionSocket")] -internal static extern uint SteamAPI_ISteamNetworking_CreateP2PConnectionSocket(IntPtr instancePtr, ulong steamIDTarget, int nVirtualPort, int nTimeoutSec, bool bAllowUseOfPacketRelay); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_CreateConnectionSocket")] -internal static extern uint SteamAPI_ISteamNetworking_CreateConnectionSocket(IntPtr instancePtr, uint nIP, char nPort, int nTimeoutSec); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_DestroySocket")] -internal static extern bool SteamAPI_ISteamNetworking_DestroySocket(IntPtr instancePtr, uint hSocket, bool bNotifyRemoteEnd); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_DestroyListenSocket")] -internal static extern bool SteamAPI_ISteamNetworking_DestroyListenSocket(IntPtr instancePtr, uint hSocket, bool bNotifyRemoteEnd); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_SendDataOnSocket")] -internal static extern bool SteamAPI_ISteamNetworking_SendDataOnSocket(IntPtr instancePtr, uint hSocket, IntPtr pubData, uint cubData, bool bReliable); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_IsDataAvailableOnSocket")] -internal static extern bool SteamAPI_ISteamNetworking_IsDataAvailableOnSocket(IntPtr instancePtr, uint hSocket, ref uint pcubMsgSize); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_RetrieveDataFromSocket")] -internal static extern bool SteamAPI_ISteamNetworking_RetrieveDataFromSocket(IntPtr instancePtr, uint hSocket, IntPtr pubDest, uint cubDest, ref uint pcubMsgSize); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_IsDataAvailable")] -internal static extern bool SteamAPI_ISteamNetworking_IsDataAvailable(IntPtr instancePtr, uint hListenSocket, ref uint pcubMsgSize, ref uint phSocket); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_RetrieveData")] -internal static extern bool SteamAPI_ISteamNetworking_RetrieveData(IntPtr instancePtr, uint hListenSocket, IntPtr pubDest, uint cubDest, ref uint pcubMsgSize, ref uint phSocket); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_GetSocketInfo")] -internal static extern bool SteamAPI_ISteamNetworking_GetSocketInfo(IntPtr instancePtr, uint hSocket, ref CSteamID pSteamIDRemote, ref int peSocketStatus, ref uint punIPRemote, ref char punPortRemote); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_GetListenSocketInfo")] -internal static extern bool SteamAPI_ISteamNetworking_GetListenSocketInfo(IntPtr instancePtr, uint hListenSocket, ref uint pnIP, ref char pnPort); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_GetSocketConnectionType")] -internal static extern uint SteamAPI_ISteamNetworking_GetSocketConnectionType(IntPtr instancePtr, uint hSocket); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_GetMaxPacketSize")] -internal static extern int SteamAPI_ISteamNetworking_GetMaxPacketSize(IntPtr instancePtr, uint hSocket); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamScreenshots_WriteScreenshot")] -internal static extern uint SteamAPI_ISteamScreenshots_WriteScreenshot(IntPtr instancePtr, IntPtr pubRGB, uint cubRGB, int nWidth, int nHeight); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamScreenshots_AddScreenshotToLibrary")] -internal static extern uint SteamAPI_ISteamScreenshots_AddScreenshotToLibrary(IntPtr instancePtr, string pchFilename, string pchThumbnailFilename, int nWidth, int nHeight); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamScreenshots_TriggerScreenshot")] -internal static extern void SteamAPI_ISteamScreenshots_TriggerScreenshot(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamScreenshots_HookScreenshots")] -internal static extern void SteamAPI_ISteamScreenshots_HookScreenshots(IntPtr instancePtr, bool bHook); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamScreenshots_SetLocation")] -internal static extern bool SteamAPI_ISteamScreenshots_SetLocation(IntPtr instancePtr, uint hScreenshot, string pchLocation); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamScreenshots_TagUser")] -internal static extern bool SteamAPI_ISteamScreenshots_TagUser(IntPtr instancePtr, uint hScreenshot, ulong steamID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamScreenshots_TagPublishedFile")] -internal static extern bool SteamAPI_ISteamScreenshots_TagPublishedFile(IntPtr instancePtr, uint hScreenshot, ulong unPublishedFileID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusic_BIsEnabled")] -internal static extern bool SteamAPI_ISteamMusic_BIsEnabled(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusic_BIsPlaying")] -internal static extern bool SteamAPI_ISteamMusic_BIsPlaying(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusic_GetPlaybackStatus")] -internal static extern int SteamAPI_ISteamMusic_GetPlaybackStatus(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusic_Play")] -internal static extern void SteamAPI_ISteamMusic_Play(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusic_Pause")] -internal static extern void SteamAPI_ISteamMusic_Pause(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusic_PlayPrevious")] -internal static extern void SteamAPI_ISteamMusic_PlayPrevious(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusic_PlayNext")] -internal static extern void SteamAPI_ISteamMusic_PlayNext(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusic_SetVolume")] -internal static extern void SteamAPI_ISteamMusic_SetVolume(IntPtr instancePtr, float flVolume); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusic_GetVolume")] -internal static extern float SteamAPI_ISteamMusic_GetVolume(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_RegisterSteamMusicRemote")] -internal static extern bool SteamAPI_ISteamMusicRemote_RegisterSteamMusicRemote(IntPtr instancePtr, string pchName); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_DeregisterSteamMusicRemote")] -internal static extern bool SteamAPI_ISteamMusicRemote_DeregisterSteamMusicRemote(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_BIsCurrentMusicRemote")] -internal static extern bool SteamAPI_ISteamMusicRemote_BIsCurrentMusicRemote(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_BActivationSuccess")] -internal static extern bool SteamAPI_ISteamMusicRemote_BActivationSuccess(IntPtr instancePtr, bool bValue); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_SetDisplayName")] -internal static extern bool SteamAPI_ISteamMusicRemote_SetDisplayName(IntPtr instancePtr, string pchDisplayName); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_SetPNGIcon_64x64")] -internal static extern bool SteamAPI_ISteamMusicRemote_SetPNGIcon_64x64(IntPtr instancePtr, IntPtr pvBuffer, uint cbBufferLength); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_EnablePlayPrevious")] -internal static extern bool SteamAPI_ISteamMusicRemote_EnablePlayPrevious(IntPtr instancePtr, bool bValue); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_EnablePlayNext")] -internal static extern bool SteamAPI_ISteamMusicRemote_EnablePlayNext(IntPtr instancePtr, bool bValue); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_EnableShuffled")] -internal static extern bool SteamAPI_ISteamMusicRemote_EnableShuffled(IntPtr instancePtr, bool bValue); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_EnableLooped")] -internal static extern bool SteamAPI_ISteamMusicRemote_EnableLooped(IntPtr instancePtr, bool bValue); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_EnableQueue")] -internal static extern bool SteamAPI_ISteamMusicRemote_EnableQueue(IntPtr instancePtr, bool bValue); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_EnablePlaylists")] -internal static extern bool SteamAPI_ISteamMusicRemote_EnablePlaylists(IntPtr instancePtr, bool bValue); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_UpdatePlaybackStatus")] -internal static extern bool SteamAPI_ISteamMusicRemote_UpdatePlaybackStatus(IntPtr instancePtr, int nStatus); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_UpdateShuffled")] -internal static extern bool SteamAPI_ISteamMusicRemote_UpdateShuffled(IntPtr instancePtr, bool bValue); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_UpdateLooped")] -internal static extern bool SteamAPI_ISteamMusicRemote_UpdateLooped(IntPtr instancePtr, bool bValue); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_UpdateVolume")] -internal static extern bool SteamAPI_ISteamMusicRemote_UpdateVolume(IntPtr instancePtr, float flValue); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_CurrentEntryWillChange")] -internal static extern bool SteamAPI_ISteamMusicRemote_CurrentEntryWillChange(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_CurrentEntryIsAvailable")] -internal static extern bool SteamAPI_ISteamMusicRemote_CurrentEntryIsAvailable(IntPtr instancePtr, bool bAvailable); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_UpdateCurrentEntryText")] -internal static extern bool SteamAPI_ISteamMusicRemote_UpdateCurrentEntryText(IntPtr instancePtr, string pchText); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds")] -internal static extern bool SteamAPI_ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds(IntPtr instancePtr, int nValue); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_UpdateCurrentEntryCoverArt")] -internal static extern bool SteamAPI_ISteamMusicRemote_UpdateCurrentEntryCoverArt(IntPtr instancePtr, IntPtr pvBuffer, uint cbBufferLength); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_CurrentEntryDidChange")] -internal static extern bool SteamAPI_ISteamMusicRemote_CurrentEntryDidChange(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_QueueWillChange")] -internal static extern bool SteamAPI_ISteamMusicRemote_QueueWillChange(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_ResetQueueEntries")] -internal static extern bool SteamAPI_ISteamMusicRemote_ResetQueueEntries(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_SetQueueEntry")] -internal static extern bool SteamAPI_ISteamMusicRemote_SetQueueEntry(IntPtr instancePtr, int nID, int nPosition, string pchEntryText); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_SetCurrentQueueEntry")] -internal static extern bool SteamAPI_ISteamMusicRemote_SetCurrentQueueEntry(IntPtr instancePtr, int nID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_QueueDidChange")] -internal static extern bool SteamAPI_ISteamMusicRemote_QueueDidChange(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_PlaylistWillChange")] -internal static extern bool SteamAPI_ISteamMusicRemote_PlaylistWillChange(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_ResetPlaylistEntries")] -internal static extern bool SteamAPI_ISteamMusicRemote_ResetPlaylistEntries(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_SetPlaylistEntry")] -internal static extern bool SteamAPI_ISteamMusicRemote_SetPlaylistEntry(IntPtr instancePtr, int nID, int nPosition, string pchEntryText); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_SetCurrentPlaylistEntry")] -internal static extern bool SteamAPI_ISteamMusicRemote_SetCurrentPlaylistEntry(IntPtr instancePtr, int nID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_PlaylistDidChange")] -internal static extern bool SteamAPI_ISteamMusicRemote_PlaylistDidChange(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_CreateHTTPRequest")] -internal static extern uint SteamAPI_ISteamHTTP_CreateHTTPRequest(IntPtr instancePtr, uint eHTTPRequestMethod, string pchAbsoluteURL); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestContextValue")] -internal static extern bool SteamAPI_ISteamHTTP_SetHTTPRequestContextValue(IntPtr instancePtr, uint hRequest, ulong ulContextValue); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestNetworkActivityTimeout")] -internal static extern bool SteamAPI_ISteamHTTP_SetHTTPRequestNetworkActivityTimeout(IntPtr instancePtr, uint hRequest, uint unTimeoutSeconds); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestHeaderValue")] -internal static extern bool SteamAPI_ISteamHTTP_SetHTTPRequestHeaderValue(IntPtr instancePtr, uint hRequest, string pchHeaderName, string pchHeaderValue); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestGetOrPostParameter")] -internal static extern bool SteamAPI_ISteamHTTP_SetHTTPRequestGetOrPostParameter(IntPtr instancePtr, uint hRequest, string pchParamName, string pchParamValue); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_SendHTTPRequest")] -internal static extern bool SteamAPI_ISteamHTTP_SendHTTPRequest(IntPtr instancePtr, uint hRequest, ref ulong pCallHandle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_SendHTTPRequestAndStreamResponse")] -internal static extern bool SteamAPI_ISteamHTTP_SendHTTPRequestAndStreamResponse(IntPtr instancePtr, uint hRequest, ref ulong pCallHandle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_DeferHTTPRequest")] -internal static extern bool SteamAPI_ISteamHTTP_DeferHTTPRequest(IntPtr instancePtr, uint hRequest); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_PrioritizeHTTPRequest")] -internal static extern bool SteamAPI_ISteamHTTP_PrioritizeHTTPRequest(IntPtr instancePtr, uint hRequest); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPResponseHeaderSize")] -internal static extern bool SteamAPI_ISteamHTTP_GetHTTPResponseHeaderSize(IntPtr instancePtr, uint hRequest, string pchHeaderName, ref uint unResponseHeaderSize); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPResponseHeaderValue")] -internal static extern bool SteamAPI_ISteamHTTP_GetHTTPResponseHeaderValue(IntPtr instancePtr, uint hRequest, string pchHeaderName, IntPtr pHeaderValueBuffer, uint unBufferSize); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPResponseBodySize")] -internal static extern bool SteamAPI_ISteamHTTP_GetHTTPResponseBodySize(IntPtr instancePtr, uint hRequest, ref uint unBodySize); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPResponseBodyData")] -internal static extern bool SteamAPI_ISteamHTTP_GetHTTPResponseBodyData(IntPtr instancePtr, uint hRequest, IntPtr pBodyDataBuffer, uint unBufferSize); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPStreamingResponseBodyData")] -internal static extern bool SteamAPI_ISteamHTTP_GetHTTPStreamingResponseBodyData(IntPtr instancePtr, uint hRequest, uint cOffset, IntPtr pBodyDataBuffer, uint unBufferSize); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_ReleaseHTTPRequest")] -internal static extern bool SteamAPI_ISteamHTTP_ReleaseHTTPRequest(IntPtr instancePtr, uint hRequest); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPDownloadProgressPct")] -internal static extern bool SteamAPI_ISteamHTTP_GetHTTPDownloadProgressPct(IntPtr instancePtr, uint hRequest, ref float pflPercentOut); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestRawPostBody")] -internal static extern bool SteamAPI_ISteamHTTP_SetHTTPRequestRawPostBody(IntPtr instancePtr, uint hRequest, string pchContentType, IntPtr pubBody, uint unBodyLen); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_CreateCookieContainer")] -internal static extern uint SteamAPI_ISteamHTTP_CreateCookieContainer(IntPtr instancePtr, bool bAllowResponsesToModify); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_ReleaseCookieContainer")] -internal static extern bool SteamAPI_ISteamHTTP_ReleaseCookieContainer(IntPtr instancePtr, uint hCookieContainer); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_SetCookie")] -internal static extern bool SteamAPI_ISteamHTTP_SetCookie(IntPtr instancePtr, uint hCookieContainer, string pchHost, string pchUrl, string pchCookie); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestCookieContainer")] -internal static extern bool SteamAPI_ISteamHTTP_SetHTTPRequestCookieContainer(IntPtr instancePtr, uint hRequest, uint hCookieContainer); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestUserAgentInfo")] -internal static extern bool SteamAPI_ISteamHTTP_SetHTTPRequestUserAgentInfo(IntPtr instancePtr, uint hRequest, string pchUserAgentInfo); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate")] -internal static extern bool SteamAPI_ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate(IntPtr instancePtr, uint hRequest, bool bRequireVerifiedCertificate); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS")] -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")] -internal static extern bool SteamAPI_ISteamController_Shutdown(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_RunFrame")] -internal static extern void SteamAPI_ISteamController_RunFrame(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_GetConnectedControllers")] -internal static extern int SteamAPI_ISteamController_GetConnectedControllers(IntPtr instancePtr, ref ulong handlesOut); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_ShowBindingPanel")] -internal static extern bool SteamAPI_ISteamController_ShowBindingPanel(IntPtr instancePtr, ulong controllerHandle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_GetActionSetHandle")] -internal static extern ulong SteamAPI_ISteamController_GetActionSetHandle(IntPtr instancePtr, string pszActionSetName); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_ActivateActionSet")] -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_GetDigitalActionHandle")] -internal static extern ulong SteamAPI_ISteamController_GetDigitalActionHandle(IntPtr instancePtr, string pszActionName); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_GetDigitalActionData")] -internal static extern ControllerDigitalActionData_t SteamAPI_ISteamController_GetDigitalActionData(IntPtr instancePtr, ulong controllerHandle, ulong digitalActionHandle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_GetDigitalActionOrigins")] -internal static extern int SteamAPI_ISteamController_GetDigitalActionOrigins(IntPtr instancePtr, ulong controllerHandle, ulong actionSetHandle, ulong digitalActionHandle, ref uint originsOut); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_GetAnalogActionHandle")] -internal static extern ulong SteamAPI_ISteamController_GetAnalogActionHandle(IntPtr instancePtr, string pszActionName); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_GetAnalogActionData")] -internal static extern ControllerAnalogActionData_t SteamAPI_ISteamController_GetAnalogActionData(IntPtr instancePtr, ulong controllerHandle, ulong analogActionHandle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_GetAnalogActionOrigins")] -internal static extern int SteamAPI_ISteamController_GetAnalogActionOrigins(IntPtr instancePtr, ulong controllerHandle, ulong actionSetHandle, ulong analogActionHandle, ref uint originsOut); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_StopAnalogActionMomentum")] -internal static extern void SteamAPI_ISteamController_StopAnalogActionMomentum(IntPtr instancePtr, ulong controllerHandle, ulong eAction); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_TriggerHapticPulse")] -internal static extern void SteamAPI_ISteamController_TriggerHapticPulse(IntPtr instancePtr, ulong controllerHandle, uint eTargetPad, char usDurationMicroSec); -[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")] -internal static extern ulong SteamAPI_ISteamUGC_CreateQueryAllUGCRequest(IntPtr instancePtr, uint eQueryType, uint eMatchingeMatchingUGCTypeFileType, uint nCreatorAppID, uint nConsumerAppID, uint unPage); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_CreateQueryUGCDetailsRequest")] -internal static extern ulong SteamAPI_ISteamUGC_CreateQueryUGCDetailsRequest(IntPtr instancePtr, ref ulong pvecPublishedFileID, uint unNumPublishedFileIDs); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SendQueryUGCRequest")] -internal static extern ulong SteamAPI_ISteamUGC_SendQueryUGCRequest(IntPtr instancePtr, ulong handle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCResult")] -internal static extern bool SteamAPI_ISteamUGC_GetQueryUGCResult(IntPtr instancePtr, ulong handle, uint index, ref SteamUGCDetails_t pDetails); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCPreviewURL")] -internal static extern bool SteamAPI_ISteamUGC_GetQueryUGCPreviewURL(IntPtr instancePtr, ulong handle, uint index, string pchURL, uint cchURLSize); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCMetadata")] -internal static extern bool SteamAPI_ISteamUGC_GetQueryUGCMetadata(IntPtr instancePtr, ulong handle, uint index, string pchMetadata, uint cchMetadatasize); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCChildren")] -internal static extern bool SteamAPI_ISteamUGC_GetQueryUGCChildren(IntPtr instancePtr, ulong handle, uint index, ref ulong pvecPublishedFileID, uint cMaxEntries); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCStatistic")] -internal static extern bool SteamAPI_ISteamUGC_GetQueryUGCStatistic(IntPtr instancePtr, ulong handle, uint index, uint eStatType, ref uint pStatValue); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCNumAdditionalPreviews")] -internal static extern uint SteamAPI_ISteamUGC_GetQueryUGCNumAdditionalPreviews(IntPtr instancePtr, ulong handle, uint index); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview")] -internal static extern bool SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview(IntPtr instancePtr, ulong handle, uint index, uint previewIndex, string pchURLOrVideoID, uint cchURLSize, ref bool pbIsImage); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCNumKeyValueTags")] -internal static extern uint SteamAPI_ISteamUGC_GetQueryUGCNumKeyValueTags(IntPtr instancePtr, ulong handle, uint index); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag")] -internal static extern bool SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag(IntPtr instancePtr, ulong handle, uint index, uint keyValueTagIndex, string pchKey, uint cchKeySize, string pchValue, uint cchValueSize); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_ReleaseQueryUGCRequest")] -internal static extern bool SteamAPI_ISteamUGC_ReleaseQueryUGCRequest(IntPtr instancePtr, ulong handle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_AddRequiredTag")] -internal static extern bool SteamAPI_ISteamUGC_AddRequiredTag(IntPtr instancePtr, ulong handle, string pTagName); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_AddExcludedTag")] -internal static extern bool SteamAPI_ISteamUGC_AddExcludedTag(IntPtr instancePtr, ulong handle, string pTagName); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetReturnKeyValueTags")] -internal static extern bool SteamAPI_ISteamUGC_SetReturnKeyValueTags(IntPtr instancePtr, ulong handle, bool bReturnKeyValueTags); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetReturnLongDescription")] -internal static extern bool SteamAPI_ISteamUGC_SetReturnLongDescription(IntPtr instancePtr, ulong handle, bool bReturnLongDescription); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetReturnMetadata")] -internal static extern bool SteamAPI_ISteamUGC_SetReturnMetadata(IntPtr instancePtr, ulong handle, bool bReturnMetadata); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetReturnChildren")] -internal static extern bool SteamAPI_ISteamUGC_SetReturnChildren(IntPtr instancePtr, ulong handle, bool bReturnChildren); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetReturnAdditionalPreviews")] -internal static extern bool SteamAPI_ISteamUGC_SetReturnAdditionalPreviews(IntPtr instancePtr, ulong handle, bool bReturnAdditionalPreviews); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetReturnTotalOnly")] -internal static extern bool SteamAPI_ISteamUGC_SetReturnTotalOnly(IntPtr instancePtr, ulong handle, bool bReturnTotalOnly); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetLanguage")] -internal static extern bool SteamAPI_ISteamUGC_SetLanguage(IntPtr instancePtr, ulong handle, string pchLanguage); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetAllowCachedResponse")] -internal static extern bool SteamAPI_ISteamUGC_SetAllowCachedResponse(IntPtr instancePtr, ulong handle, uint unMaxAgeSeconds); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetCloudFileNameFilter")] -internal static extern bool SteamAPI_ISteamUGC_SetCloudFileNameFilter(IntPtr instancePtr, ulong handle, string pMatchCloudFileName); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetMatchAnyTag")] -internal static extern bool SteamAPI_ISteamUGC_SetMatchAnyTag(IntPtr instancePtr, ulong handle, bool bMatchAnyTag); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetSearchText")] -internal static extern bool SteamAPI_ISteamUGC_SetSearchText(IntPtr instancePtr, ulong handle, string pSearchText); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetRankedByTrendDays")] -internal static extern bool SteamAPI_ISteamUGC_SetRankedByTrendDays(IntPtr instancePtr, ulong handle, uint unDays); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_AddRequiredKeyValueTag")] -internal static extern bool SteamAPI_ISteamUGC_AddRequiredKeyValueTag(IntPtr instancePtr, ulong handle, string pKey, string pValue); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_RequestUGCDetails")] -internal static extern ulong SteamAPI_ISteamUGC_RequestUGCDetails(IntPtr instancePtr, ulong nPublishedFileID, uint unMaxAgeSeconds); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_CreateItem")] -internal static extern ulong SteamAPI_ISteamUGC_CreateItem(IntPtr instancePtr, uint nConsumerAppId, uint eFileType); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_StartItemUpdate")] -internal static extern ulong SteamAPI_ISteamUGC_StartItemUpdate(IntPtr instancePtr, uint nConsumerAppId, ulong nPublishedFileID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetItemTitle")] -internal static extern bool SteamAPI_ISteamUGC_SetItemTitle(IntPtr instancePtr, ulong handle, string pchTitle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetItemDescription")] -internal static extern bool SteamAPI_ISteamUGC_SetItemDescription(IntPtr instancePtr, ulong handle, string pchDescription); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetItemUpdateLanguage")] -internal static extern bool SteamAPI_ISteamUGC_SetItemUpdateLanguage(IntPtr instancePtr, ulong handle, string pchLanguage); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetItemMetadata")] -internal static extern bool SteamAPI_ISteamUGC_SetItemMetadata(IntPtr instancePtr, ulong handle, string pchMetaData); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetItemVisibility")] -internal static extern bool SteamAPI_ISteamUGC_SetItemVisibility(IntPtr instancePtr, ulong handle, uint eVisibility); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetItemTags")] -internal static extern bool SteamAPI_ISteamUGC_SetItemTags(IntPtr instancePtr, ulong updateHandle, ref SteamParamStringArray_t pTags); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetItemContent")] -internal static extern bool SteamAPI_ISteamUGC_SetItemContent(IntPtr instancePtr, ulong handle, string pszContentFolder); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetItemPreview")] -internal static extern bool SteamAPI_ISteamUGC_SetItemPreview(IntPtr instancePtr, ulong handle, string pszPreviewFile); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_RemoveItemKeyValueTags")] -internal static extern bool SteamAPI_ISteamUGC_RemoveItemKeyValueTags(IntPtr instancePtr, ulong handle, string pchKey); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_AddItemKeyValueTag")] -internal static extern bool SteamAPI_ISteamUGC_AddItemKeyValueTag(IntPtr instancePtr, ulong handle, string pchKey, string pchValue); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SubmitItemUpdate")] -internal static extern ulong SteamAPI_ISteamUGC_SubmitItemUpdate(IntPtr instancePtr, ulong handle, string pchChangeNote); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetItemUpdateProgress")] -internal static extern uint SteamAPI_ISteamUGC_GetItemUpdateProgress(IntPtr instancePtr, ulong handle, ref ulong punBytesProcessed, ref ulong punBytesTotal); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetUserItemVote")] -internal static extern ulong SteamAPI_ISteamUGC_SetUserItemVote(IntPtr instancePtr, ulong nPublishedFileID, bool bVoteUp); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetUserItemVote")] -internal static extern ulong SteamAPI_ISteamUGC_GetUserItemVote(IntPtr instancePtr, ulong nPublishedFileID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_AddItemToFavorites")] -internal static extern ulong SteamAPI_ISteamUGC_AddItemToFavorites(IntPtr instancePtr, uint nAppId, ulong nPublishedFileID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_RemoveItemFromFavorites")] -internal static extern ulong SteamAPI_ISteamUGC_RemoveItemFromFavorites(IntPtr instancePtr, uint nAppId, ulong nPublishedFileID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SubscribeItem")] -internal static extern ulong SteamAPI_ISteamUGC_SubscribeItem(IntPtr instancePtr, ulong nPublishedFileID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_UnsubscribeItem")] -internal static extern ulong SteamAPI_ISteamUGC_UnsubscribeItem(IntPtr instancePtr, ulong nPublishedFileID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetNumSubscribedItems")] -internal static extern uint SteamAPI_ISteamUGC_GetNumSubscribedItems(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetSubscribedItems")] -internal static extern uint SteamAPI_ISteamUGC_GetSubscribedItems(IntPtr instancePtr, ref ulong pvecPublishedFileID, uint cMaxEntries); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetItemState")] -internal static extern uint SteamAPI_ISteamUGC_GetItemState(IntPtr instancePtr, ulong nPublishedFileID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetItemInstallInfo")] -internal static extern bool SteamAPI_ISteamUGC_GetItemInstallInfo(IntPtr instancePtr, ulong nPublishedFileID, ref ulong punSizeOnDisk, string pchFolder, uint cchFolderSize, ref uint punTimeStamp); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetItemDownloadInfo")] -internal static extern bool SteamAPI_ISteamUGC_GetItemDownloadInfo(IntPtr instancePtr, ulong nPublishedFileID, ref ulong punBytesDownloaded, ref ulong punBytesTotal); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_DownloadItem")] -internal static extern bool SteamAPI_ISteamUGC_DownloadItem(IntPtr instancePtr, ulong nPublishedFileID, bool bHighPriority); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_BInitWorkshopForGameServer")] -internal static extern bool SteamAPI_ISteamUGC_BInitWorkshopForGameServer(IntPtr instancePtr, uint unWorkshopDepotID, string pszFolder); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SuspendDownloads")] -internal static extern void SteamAPI_ISteamUGC_SuspendDownloads(IntPtr instancePtr, bool bSuspend); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamAppList_GetNumInstalledApps")] -internal static extern uint SteamAPI_ISteamAppList_GetNumInstalledApps(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamAppList_GetInstalledApps")] -internal static extern uint SteamAPI_ISteamAppList_GetInstalledApps(IntPtr instancePtr, ref uint pvecAppID, uint unMaxAppIDs); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamAppList_GetAppName")] -internal static extern int SteamAPI_ISteamAppList_GetAppName(IntPtr instancePtr, uint nAppID, string pchName, int cchNameMax); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamAppList_GetAppInstallDir")] -internal static extern int SteamAPI_ISteamAppList_GetAppInstallDir(IntPtr instancePtr, uint nAppID, string pchDirectory, int cchNameMax); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamAppList_GetAppBuildId")] -internal static extern int SteamAPI_ISteamAppList_GetAppBuildId(IntPtr instancePtr, uint nAppID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_DestructISteamHTMLSurface")] -internal static extern void SteamAPI_ISteamHTMLSurface_DestructISteamHTMLSurface(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_Init")] -internal static extern bool SteamAPI_ISteamHTMLSurface_Init(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_Shutdown")] -internal static extern bool SteamAPI_ISteamHTMLSurface_Shutdown(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_CreateBrowser")] -internal static extern ulong SteamAPI_ISteamHTMLSurface_CreateBrowser(IntPtr instancePtr, string pchUserAgent, string pchUserCSS); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_RemoveBrowser")] -internal static extern void SteamAPI_ISteamHTMLSurface_RemoveBrowser(IntPtr instancePtr, uint unBrowserHandle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_LoadURL")] -internal static extern void SteamAPI_ISteamHTMLSurface_LoadURL(IntPtr instancePtr, uint unBrowserHandle, string pchURL, string pchPostData); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_SetSize")] -internal static extern void SteamAPI_ISteamHTMLSurface_SetSize(IntPtr instancePtr, uint unBrowserHandle, uint unWidth, uint unHeight); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_StopLoad")] -internal static extern void SteamAPI_ISteamHTMLSurface_StopLoad(IntPtr instancePtr, uint unBrowserHandle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_Reload")] -internal static extern void SteamAPI_ISteamHTMLSurface_Reload(IntPtr instancePtr, uint unBrowserHandle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_GoBack")] -internal static extern void SteamAPI_ISteamHTMLSurface_GoBack(IntPtr instancePtr, uint unBrowserHandle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_GoForward")] -internal static extern void SteamAPI_ISteamHTMLSurface_GoForward(IntPtr instancePtr, uint unBrowserHandle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_AddHeader")] -internal static extern void SteamAPI_ISteamHTMLSurface_AddHeader(IntPtr instancePtr, uint unBrowserHandle, string pchKey, string pchValue); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_ExecuteJavascript")] -internal static extern void SteamAPI_ISteamHTMLSurface_ExecuteJavascript(IntPtr instancePtr, uint unBrowserHandle, string pchScript); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_MouseUp")] -internal static extern void SteamAPI_ISteamHTMLSurface_MouseUp(IntPtr instancePtr, uint unBrowserHandle, uint eMouseButton); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_MouseDown")] -internal static extern void SteamAPI_ISteamHTMLSurface_MouseDown(IntPtr instancePtr, uint unBrowserHandle, uint eMouseButton); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_MouseDoubleClick")] -internal static extern void SteamAPI_ISteamHTMLSurface_MouseDoubleClick(IntPtr instancePtr, uint unBrowserHandle, uint eMouseButton); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_MouseMove")] -internal static extern void SteamAPI_ISteamHTMLSurface_MouseMove(IntPtr instancePtr, uint unBrowserHandle, int x, int y); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_MouseWheel")] -internal static extern void SteamAPI_ISteamHTMLSurface_MouseWheel(IntPtr instancePtr, uint unBrowserHandle, int nDelta); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_KeyDown")] -internal static extern void SteamAPI_ISteamHTMLSurface_KeyDown(IntPtr instancePtr, uint unBrowserHandle, uint nNativeKeyCode, uint eHTMLKeyModifiers); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_KeyUp")] -internal static extern void SteamAPI_ISteamHTMLSurface_KeyUp(IntPtr instancePtr, uint unBrowserHandle, uint nNativeKeyCode, uint eHTMLKeyModifiers); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_KeyChar")] -internal static extern void SteamAPI_ISteamHTMLSurface_KeyChar(IntPtr instancePtr, uint unBrowserHandle, uint cUnicodeChar, uint eHTMLKeyModifiers); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_SetHorizontalScroll")] -internal static extern void SteamAPI_ISteamHTMLSurface_SetHorizontalScroll(IntPtr instancePtr, uint unBrowserHandle, uint nAbsolutePixelScroll); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_SetVerticalScroll")] -internal static extern void SteamAPI_ISteamHTMLSurface_SetVerticalScroll(IntPtr instancePtr, uint unBrowserHandle, uint nAbsolutePixelScroll); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_SetKeyFocus")] -internal static extern void SteamAPI_ISteamHTMLSurface_SetKeyFocus(IntPtr instancePtr, uint unBrowserHandle, bool bHasKeyFocus); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_ViewSource")] -internal static extern void SteamAPI_ISteamHTMLSurface_ViewSource(IntPtr instancePtr, uint unBrowserHandle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_CopyToClipboard")] -internal static extern void SteamAPI_ISteamHTMLSurface_CopyToClipboard(IntPtr instancePtr, uint unBrowserHandle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_PasteFromClipboard")] -internal static extern void SteamAPI_ISteamHTMLSurface_PasteFromClipboard(IntPtr instancePtr, uint unBrowserHandle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_Find")] -internal static extern void SteamAPI_ISteamHTMLSurface_Find(IntPtr instancePtr, uint unBrowserHandle, string pchSearchStr, bool bCurrentlyInFind, bool bReverse); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_StopFind")] -internal static extern void SteamAPI_ISteamHTMLSurface_StopFind(IntPtr instancePtr, uint unBrowserHandle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_GetLinkAtPosition")] -internal static extern void SteamAPI_ISteamHTMLSurface_GetLinkAtPosition(IntPtr instancePtr, uint unBrowserHandle, int x, int y); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_SetCookie")] -internal static extern void SteamAPI_ISteamHTMLSurface_SetCookie(IntPtr instancePtr, string pchHostname, string pchKey, string pchValue, string pchPath, ulong nExpires, bool bSecure, bool bHTTPOnly); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_SetPageScaleFactor")] -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_AllowStartRequest")] -internal static extern void SteamAPI_ISteamHTMLSurface_AllowStartRequest(IntPtr instancePtr, uint unBrowserHandle, bool bAllowed); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_JSDialogResponse")] -internal static extern void SteamAPI_ISteamHTMLSurface_JSDialogResponse(IntPtr instancePtr, uint unBrowserHandle, bool bResult); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_FileLoadDialogResponse")] -internal static extern void SteamAPI_ISteamHTMLSurface_FileLoadDialogResponse(IntPtr instancePtr, uint unBrowserHandle, string pchSelectedFiles); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_GetResultStatus")] -internal static extern uint SteamAPI_ISteamInventory_GetResultStatus(IntPtr instancePtr, int resultHandle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_GetResultItems")] -internal static extern bool SteamAPI_ISteamInventory_GetResultItems(IntPtr instancePtr, int resultHandle, [In, Out] SteamItemDetails_t[] pOutItemsArray, ref uint punOutItemsArraySize); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_GetResultTimestamp")] -internal static extern uint SteamAPI_ISteamInventory_GetResultTimestamp(IntPtr instancePtr, int resultHandle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_CheckResultSteamID")] -internal static extern bool SteamAPI_ISteamInventory_CheckResultSteamID(IntPtr instancePtr, int resultHandle, ulong steamIDExpected); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_DestroyResult")] -internal static extern void SteamAPI_ISteamInventory_DestroyResult(IntPtr instancePtr, int resultHandle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_GetAllItems")] -internal static extern bool SteamAPI_ISteamInventory_GetAllItems(IntPtr instancePtr, ref int pResultHandle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_GetItemsByID")] -internal static extern bool SteamAPI_ISteamInventory_GetItemsByID(IntPtr instancePtr, ref int pResultHandle, [In, Out] ulong[] pInstanceIDs, uint unCountInstanceIDs); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_SerializeResult")] -internal static extern bool SteamAPI_ISteamInventory_SerializeResult(IntPtr instancePtr, int resultHandle, IntPtr pOutBuffer, ref uint punOutBufferSize); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_DeserializeResult")] -internal static extern bool SteamAPI_ISteamInventory_DeserializeResult(IntPtr instancePtr, ref int pOutResultHandle, IntPtr pBuffer, uint unBufferSize, bool bRESERVED_MUST_BE_FALSE); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_GenerateItems")] -internal static extern bool SteamAPI_ISteamInventory_GenerateItems(IntPtr instancePtr, ref int pResultHandle, [In, Out] int[] pArrayItemDefs, [In, Out] uint[] punArrayQuantity, uint unArrayLength); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_GrantPromoItems")] -internal static extern bool SteamAPI_ISteamInventory_GrantPromoItems(IntPtr instancePtr, ref int pResultHandle); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_AddPromoItem")] -internal static extern bool SteamAPI_ISteamInventory_AddPromoItem(IntPtr instancePtr, ref int pResultHandle, int itemDef); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_AddPromoItems")] -internal static extern bool SteamAPI_ISteamInventory_AddPromoItems(IntPtr instancePtr, ref int pResultHandle, [In, Out] int[] pArrayItemDefs, uint unArrayLength); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_ConsumeItem")] -internal static extern bool SteamAPI_ISteamInventory_ConsumeItem(IntPtr instancePtr, ref int pResultHandle, ulong itemConsume, uint unQuantity); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_ExchangeItems")] -internal static extern bool SteamAPI_ISteamInventory_ExchangeItems(IntPtr instancePtr, ref int pResultHandle, [In, Out] int[] pArrayGenerate, [In, Out] uint[] punArrayGenerateQuantity, uint unArrayGenerateLength, [In, Out] ulong[] pArrayDestroy, [In, Out] uint[] punArrayDestroyQuantity, uint unArrayDestroyLength); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_TransferItemQuantity")] -internal static extern bool SteamAPI_ISteamInventory_TransferItemQuantity(IntPtr instancePtr, ref int pResultHandle, ulong itemIdSource, uint unQuantity, ulong itemIdDest); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_SendItemDropHeartbeat")] -internal static extern void SteamAPI_ISteamInventory_SendItemDropHeartbeat(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_TriggerItemDrop")] -internal static extern bool SteamAPI_ISteamInventory_TriggerItemDrop(IntPtr instancePtr, ref int pResultHandle, int dropListDefinition); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_TradeItems")] -internal static extern bool SteamAPI_ISteamInventory_TradeItems(IntPtr instancePtr, ref int pResultHandle, ulong steamIDTradePartner, [In, Out] ulong[] pArrayGive, [In, Out] uint[] pArrayGiveQuantity, uint nArrayGiveLength, [In, Out] ulong[] pArrayGet, [In, Out] uint[] pArrayGetQuantity, uint nArrayGetLength); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_LoadItemDefinitions")] -internal static extern bool SteamAPI_ISteamInventory_LoadItemDefinitions(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_GetItemDefinitionIDs")] -internal static extern bool SteamAPI_ISteamInventory_GetItemDefinitionIDs(IntPtr instancePtr, [In, Out] int[] pItemDefIDs, ref uint punItemDefIDsArraySize); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_GetItemDefinitionProperty")] -internal static extern bool SteamAPI_ISteamInventory_GetItemDefinitionProperty(IntPtr instancePtr, int iDefinition, string pchPropertyName, System.Text.StringBuilder pchValueBuffer, ref uint punValueBufferSize); -[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")] -internal static extern bool SteamAPI_ISteamVideo_IsBroadcasting(IntPtr instancePtr, ref int pnNumViewers); -[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")] -internal static extern void SteamAPI_ISteamGameServer_SetProduct(IntPtr instancePtr, string pszProduct); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetGameDescription")] -internal static extern void SteamAPI_ISteamGameServer_SetGameDescription(IntPtr instancePtr, string pszGameDescription); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetModDir")] -internal static extern void SteamAPI_ISteamGameServer_SetModDir(IntPtr instancePtr, string pszModDir); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetDedicatedServer")] -internal static extern void SteamAPI_ISteamGameServer_SetDedicatedServer(IntPtr instancePtr, bool bDedicated); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_LogOn")] -internal static extern void SteamAPI_ISteamGameServer_LogOn(IntPtr instancePtr, string pszToken); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_LogOnAnonymous")] -internal static extern void SteamAPI_ISteamGameServer_LogOnAnonymous(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_LogOff")] -internal static extern void SteamAPI_ISteamGameServer_LogOff(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_BLoggedOn")] -internal static extern bool SteamAPI_ISteamGameServer_BLoggedOn(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_BSecure")] -internal static extern bool SteamAPI_ISteamGameServer_BSecure(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_GetSteamID")] -internal static extern ulong SteamAPI_ISteamGameServer_GetSteamID(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_WasRestartRequested")] -internal static extern bool SteamAPI_ISteamGameServer_WasRestartRequested(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetMaxPlayerCount")] -internal static extern void SteamAPI_ISteamGameServer_SetMaxPlayerCount(IntPtr instancePtr, int cPlayersMax); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetBotPlayerCount")] -internal static extern void SteamAPI_ISteamGameServer_SetBotPlayerCount(IntPtr instancePtr, int cBotplayers); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetServerName")] -internal static extern void SteamAPI_ISteamGameServer_SetServerName(IntPtr instancePtr, string pszServerName); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetMapName")] -internal static extern void SteamAPI_ISteamGameServer_SetMapName(IntPtr instancePtr, string pszMapName); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetPasswordProtected")] -internal static extern void SteamAPI_ISteamGameServer_SetPasswordProtected(IntPtr instancePtr, bool bPasswordProtected); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetSpectatorPort")] -internal static extern void SteamAPI_ISteamGameServer_SetSpectatorPort(IntPtr instancePtr, char unSpectatorPort); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetSpectatorServerName")] -internal static extern void SteamAPI_ISteamGameServer_SetSpectatorServerName(IntPtr instancePtr, string pszSpectatorServerName); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_ClearAllKeyValues")] -internal static extern void SteamAPI_ISteamGameServer_ClearAllKeyValues(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetKeyValue")] -internal static extern void SteamAPI_ISteamGameServer_SetKeyValue(IntPtr instancePtr, string pKey, string pValue); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetGameTags")] -internal static extern void SteamAPI_ISteamGameServer_SetGameTags(IntPtr instancePtr, string pchGameTags); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetGameData")] -internal static extern void SteamAPI_ISteamGameServer_SetGameData(IntPtr instancePtr, string pchGameData); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetRegion")] -internal static extern void SteamAPI_ISteamGameServer_SetRegion(IntPtr instancePtr, string pszRegion); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SendUserConnectAndAuthenticate")] -internal static extern bool SteamAPI_ISteamGameServer_SendUserConnectAndAuthenticate(IntPtr instancePtr, uint unIPClient, IntPtr pvAuthBlob, uint cubAuthBlobSize, ref CSteamID pSteamIDUser); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_CreateUnauthenticatedUserConnection")] -internal static extern ulong SteamAPI_ISteamGameServer_CreateUnauthenticatedUserConnection(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SendUserDisconnect")] -internal static extern void SteamAPI_ISteamGameServer_SendUserDisconnect(IntPtr instancePtr, ulong steamIDUser); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_BUpdateUserData")] -internal static extern bool SteamAPI_ISteamGameServer_BUpdateUserData(IntPtr instancePtr, ulong steamIDUser, string pchPlayerName, uint uScore); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_GetAuthSessionTicket")] -internal static extern uint SteamAPI_ISteamGameServer_GetAuthSessionTicket(IntPtr instancePtr, IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_BeginAuthSession")] -internal static extern uint SteamAPI_ISteamGameServer_BeginAuthSession(IntPtr instancePtr, IntPtr pAuthTicket, int cbAuthTicket, ulong steamID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_EndAuthSession")] -internal static extern void SteamAPI_ISteamGameServer_EndAuthSession(IntPtr instancePtr, ulong steamID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_CancelAuthTicket")] -internal static extern void SteamAPI_ISteamGameServer_CancelAuthTicket(IntPtr instancePtr, uint hAuthTicket); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_UserHasLicenseForApp")] -internal static extern uint SteamAPI_ISteamGameServer_UserHasLicenseForApp(IntPtr instancePtr, ulong steamID, uint appID); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_RequestUserGroupStatus")] -internal static extern bool SteamAPI_ISteamGameServer_RequestUserGroupStatus(IntPtr instancePtr, ulong steamIDUser, ulong steamIDGroup); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_GetGameplayStats")] -internal static extern void SteamAPI_ISteamGameServer_GetGameplayStats(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_GetServerReputation")] -internal static extern ulong SteamAPI_ISteamGameServer_GetServerReputation(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_GetPublicIP")] -internal static extern uint SteamAPI_ISteamGameServer_GetPublicIP(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_HandleIncomingPacket")] -internal static extern bool SteamAPI_ISteamGameServer_HandleIncomingPacket(IntPtr instancePtr, IntPtr pData, int cbData, uint srcIP, char srcPort); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_GetNextOutgoingPacket")] -internal static extern int SteamAPI_ISteamGameServer_GetNextOutgoingPacket(IntPtr instancePtr, IntPtr pOut, int cbMaxOut, ref uint pNetAdr, ref char pPort); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_EnableHeartbeats")] -internal static extern void SteamAPI_ISteamGameServer_EnableHeartbeats(IntPtr instancePtr, bool bActive); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetHeartbeatInterval")] -internal static extern void SteamAPI_ISteamGameServer_SetHeartbeatInterval(IntPtr instancePtr, int iHeartbeatInterval); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_ForceHeartbeat")] -internal static extern void SteamAPI_ISteamGameServer_ForceHeartbeat(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_AssociateWithClan")] -internal static extern ulong SteamAPI_ISteamGameServer_AssociateWithClan(IntPtr instancePtr, ulong steamIDClan); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_ComputeNewPlayerCompatibility")] -internal static extern ulong SteamAPI_ISteamGameServer_ComputeNewPlayerCompatibility(IntPtr instancePtr, ulong steamIDNewPlayer); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServerStats_RequestUserStats")] -internal static extern ulong SteamAPI_ISteamGameServerStats_RequestUserStats(IntPtr instancePtr, ulong steamIDUser); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserStat")] -internal static extern bool SteamAPI_ISteamGameServerStats_GetUserStat(IntPtr instancePtr, ulong steamIDUser, string pchName, ref int pData); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserStat0")] -internal static extern bool SteamAPI_ISteamGameServerStats_GetUserStat0(IntPtr instancePtr, ulong steamIDUser, string pchName, ref float pData); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserAchievement")] -internal static extern bool SteamAPI_ISteamGameServerStats_GetUserAchievement(IntPtr instancePtr, ulong steamIDUser, string pchName, ref bool pbAchieved); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserStat")] -internal static extern bool SteamAPI_ISteamGameServerStats_SetUserStat(IntPtr instancePtr, ulong steamIDUser, string pchName, int nData); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserStat0")] -internal static extern bool SteamAPI_ISteamGameServerStats_SetUserStat0(IntPtr instancePtr, ulong steamIDUser, string pchName, float fData); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServerStats_UpdateUserAvgRateStat")] -internal static extern bool SteamAPI_ISteamGameServerStats_UpdateUserAvgRateStat(IntPtr instancePtr, ulong steamIDUser, string pchName, float flCountThisSession, double dSessionLength); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserAchievement")] -internal static extern bool SteamAPI_ISteamGameServerStats_SetUserAchievement(IntPtr instancePtr, ulong steamIDUser, string pchName); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServerStats_ClearUserAchievement")] -internal static extern bool SteamAPI_ISteamGameServerStats_ClearUserAchievement(IntPtr instancePtr, ulong steamIDUser, string pchName); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServerStats_StoreUserStats")] -internal static extern ulong SteamAPI_ISteamGameServerStats_StoreUserStats(IntPtr instancePtr, ulong steamIDUser); - -} - -} - -namespace Valve.Steamworks -{ - - public abstract class ISteamClient - { - public abstract IntPtr GetIntPtr(); - public abstract uint CreateSteamPipe(); - public abstract bool BReleaseSteamPipe(uint hSteamPipe); - public abstract uint ConnectToGlobalUser(uint hSteamPipe); - public abstract uint CreateLocalUser(ref uint phSteamPipe,uint eAccountType); - public abstract void ReleaseUser(uint hSteamPipe,uint hUser); - public abstract ISteamUser GetISteamUser(uint hSteamUser,uint hSteamPipe,string pchVersion); - public abstract ISteamGameServer GetISteamGameServer(uint hSteamUser,uint hSteamPipe,string pchVersion); - public abstract void SetLocalIPBinding(uint unIP,char usPort); - public abstract ISteamFriends GetISteamFriends(uint hSteamUser,uint hSteamPipe,string pchVersion); - public abstract ISteamUtils GetISteamUtils(uint hSteamPipe,string pchVersion); - public abstract ISteamMatchmaking GetISteamMatchmaking(uint hSteamUser,uint hSteamPipe,string pchVersion); - public abstract ISteamMatchmakingServers GetISteamMatchmakingServers(uint hSteamUser,uint hSteamPipe,string pchVersion); - public abstract IntPtr GetISteamGenericInterface(uint hSteamUser,uint hSteamPipe,string pchVersion); - public abstract ISteamUserStats GetISteamUserStats(uint hSteamUser,uint hSteamPipe,string pchVersion); - public abstract ISteamGameServerStats GetISteamGameServerStats(uint hSteamuser,uint hSteamPipe,string pchVersion); - public abstract ISteamApps GetISteamApps(uint hSteamUser,uint hSteamPipe,string pchVersion); - public abstract ISteamNetworking GetISteamNetworking(uint hSteamUser,uint hSteamPipe,string pchVersion); - public abstract ISteamRemoteStorage GetISteamRemoteStorage(uint hSteamuser,uint hSteamPipe,string pchVersion); - public abstract ISteamScreenshots GetISteamScreenshots(uint hSteamuser,uint hSteamPipe,string pchVersion); - public abstract void RunFrame(); - public abstract uint GetIPCCallCount(); - 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); - public abstract ISteamMusic GetISteamMusic(uint hSteamuser,uint hSteamPipe,string pchVersion); - public abstract ISteamMusicRemote GetISteamMusicRemote(uint hSteamuser,uint hSteamPipe,string pchVersion); - public abstract ISteamHTMLSurface GetISteamHTMLSurface(uint hSteamuser,uint hSteamPipe,string pchVersion); - public abstract void Set_SteamAPI_CPostAPIResultInProcess(IntPtr func); - public abstract void Remove_SteamAPI_CPostAPIResultInProcess(IntPtr func); - public abstract void Set_SteamAPI_CCheckCallbackRegisteredInProcess(IntPtr func); - public abstract ISteamInventory GetISteamInventory(uint hSteamuser,uint hSteamPipe,string pchVersion); - public abstract ISteamVideo GetISteamVideo(uint hSteamuser,uint hSteamPipe,string pchVersion); - } - - - public abstract class ISteamUser - { - public abstract IntPtr GetIntPtr(); - public abstract uint GetHSteamUser(); - public abstract bool BLoggedOn(); - public abstract ulong GetSteamID(); - public abstract int InitiateGameConnection(IntPtr pAuthBlob,int cbMaxAuthBlob,ulong steamIDGameServer,uint unIPServer,char usPortServer,bool bSecure); - public abstract void TerminateGameConnection(uint unIPServer,char usPortServer); - public abstract void TrackAppUsageEvent(ulong gameID,int eAppUsageEvent,string pchExtraInfo); - public abstract bool GetUserDataFolder(string pchBuffer,int cubBuffer); - public abstract void StartVoiceRecording(); - public abstract void StopVoiceRecording(); - public abstract uint GetAvailableVoice(ref uint pcbCompressed,ref uint pcbUncompressed,uint nUncompressedVoiceDesiredSampleRate); - public abstract uint GetVoice(bool bWantCompressed,IntPtr pDestBuffer,uint cbDestBufferSize,ref uint nBytesWritten,bool bWantUncompressed,IntPtr pUncompressedDestBuffer,uint cbUncompressedDestBufferSize,ref uint nUncompressBytesWritten,uint nUncompressedVoiceDesiredSampleRate); - public abstract uint DecompressVoice(IntPtr pCompressed,uint cbCompressed,IntPtr pDestBuffer,uint cbDestBufferSize,ref uint nBytesWritten,uint nDesiredSampleRate); - public abstract uint GetVoiceOptimalSampleRate(); - public abstract uint GetAuthSessionTicket(IntPtr pTicket,int cbMaxTicket,ref uint pcbTicket); - public abstract uint BeginAuthSession(IntPtr pAuthTicket,int cbAuthTicket,ulong steamID); - public abstract void EndAuthSession(ulong steamID); - public abstract void CancelAuthTicket(uint hAuthTicket); - public abstract uint UserHasLicenseForApp(ulong steamID,uint appID); - public abstract bool BIsBehindNAT(); - public abstract void AdvertiseGame(ulong steamIDGameServer,uint unIPServer,char usPortServer); - public abstract ulong RequestEncryptedAppTicket(IntPtr pDataToInclude,int cbDataToInclude); - public abstract bool GetEncryptedAppTicket(IntPtr pTicket,int cbMaxTicket,ref uint pcbTicket); - public abstract int GetGameBadgeLevel(int nSeries,bool bFoil); - public abstract int GetPlayerSteamLevel(); - public abstract ulong RequestStoreAuthURL(string pchRedirectURL); - } - - - public abstract class ISteamFriends - { - public abstract IntPtr GetIntPtr(); - public abstract string GetPersonaName(); - public abstract ulong SetPersonaName(string pchPersonaName); - public abstract uint GetPersonaState(); - public abstract int GetFriendCount(int iFriendFlags); - public abstract ulong GetFriendByIndex(int iFriend,int iFriendFlags); - public abstract uint GetFriendRelationship(ulong steamIDFriend); - public abstract uint GetFriendPersonaState(ulong steamIDFriend); - public abstract string GetFriendPersonaName(ulong steamIDFriend); - public abstract bool GetFriendGamePlayed(ulong steamIDFriend,out FriendGameInfo_t pFriendGameInfo); - public abstract string GetFriendPersonaNameHistory(ulong steamIDFriend,int iPersonaName); - public abstract int GetFriendSteamLevel(ulong steamIDFriend); - public abstract string GetPlayerNickname(ulong steamIDPlayer); - public abstract int GetFriendsGroupCount(); - public abstract char GetFriendsGroupIDByIndex(int iFG); - public abstract string GetFriendsGroupName(char friendsGroupID); - public abstract int GetFriendsGroupMembersCount(char friendsGroupID); - public abstract void GetFriendsGroupMembersList(char friendsGroupID,out CSteamID [] pOutSteamIDMembers); - public abstract bool HasFriend(ulong steamIDFriend,int iFriendFlags); - public abstract int GetClanCount(); - public abstract ulong GetClanByIndex(int iClan); - public abstract string GetClanName(ulong steamIDClan); - public abstract string GetClanTag(ulong steamIDClan); - public abstract bool GetClanActivityCounts(ulong steamIDClan,ref int pnOnline,ref int pnInGame,ref int pnChatting); - public abstract ulong DownloadClanActivityCounts(CSteamID [] psteamIDClans); - public abstract int GetFriendCountFromSource(ulong steamIDSource); - public abstract ulong GetFriendFromSourceByIndex(ulong steamIDSource,int iFriend); - public abstract bool IsUserInSource(ulong steamIDUser,ulong steamIDSource); - public abstract void SetInGameVoiceSpeaking(ulong steamIDUser,bool bSpeaking); - public abstract void ActivateGameOverlay(string pchDialog); - public abstract void ActivateGameOverlayToUser(string pchDialog,ulong steamID); - public abstract void ActivateGameOverlayToWebPage(string pchURL); - public abstract void ActivateGameOverlayToStore(uint nAppID,char eFlag); - public abstract void SetPlayedWith(ulong steamIDUserPlayedWith); - public abstract void ActivateGameOverlayInviteDialog(ulong steamIDLobby); - public abstract int GetSmallFriendAvatar(ulong steamIDFriend); - public abstract int GetMediumFriendAvatar(ulong steamIDFriend); - public abstract int GetLargeFriendAvatar(ulong steamIDFriend); - public abstract bool RequestUserInformation(ulong steamIDUser,bool bRequireNameOnly); - public abstract ulong RequestClanOfficerList(ulong steamIDClan); - public abstract ulong GetClanOwner(ulong steamIDClan); - public abstract int GetClanOfficerCount(ulong steamIDClan); - public abstract ulong GetClanOfficerByIndex(ulong steamIDClan,int iOfficer); - public abstract uint GetUserRestrictions(); - public abstract bool SetRichPresence(string pchKey,string pchValue); - public abstract void ClearRichPresence(); - public abstract string GetFriendRichPresence(ulong steamIDFriend,string pchKey); - public abstract int GetFriendRichPresenceKeyCount(ulong steamIDFriend); - public abstract string GetFriendRichPresenceKeyByIndex(ulong steamIDFriend,int iKey); - public abstract void RequestFriendRichPresence(ulong steamIDFriend); - public abstract bool InviteUserToGame(ulong steamIDFriend,string pchConnectString); - public abstract int GetCoplayFriendCount(); - public abstract ulong GetCoplayFriend(int iCoplayFriend); - public abstract int GetFriendCoplayTime(ulong steamIDFriend); - public abstract uint GetFriendCoplayGame(ulong steamIDFriend); - public abstract ulong JoinClanChatRoom(ulong steamIDClan); - public abstract bool LeaveClanChatRoom(ulong steamIDClan); - public abstract int GetClanChatMemberCount(ulong steamIDClan); - public abstract ulong GetChatMemberByIndex(ulong steamIDClan,int iUser); - public abstract bool SendClanChatMessage(ulong steamIDClanChat,string pchText); - public abstract int GetClanChatMessage(ulong steamIDClanChat,int iMessage,IntPtr prgchText,int cchTextMax,ref uint peChatEntryType,out CSteamID psteamidChatter); - public abstract bool IsClanChatAdmin(ulong steamIDClanChat,ulong steamIDUser); - public abstract bool IsClanChatWindowOpenInSteam(ulong steamIDClanChat); - public abstract bool OpenClanChatWindowInSteam(ulong steamIDClanChat); - public abstract bool CloseClanChatWindowInSteam(ulong steamIDClanChat); - public abstract bool SetListenForFriendsMessages(bool bInterceptEnabled); - public abstract bool ReplyToFriendMessage(ulong steamIDFriend,string pchMsgToSend); - public abstract int GetFriendMessage(ulong steamIDFriend,int iMessageID,IntPtr pvData,int cubData,ref uint peChatEntryType); - public abstract ulong GetFollowerCount(ulong steamID); - public abstract ulong IsFollowing(ulong steamID); - public abstract ulong EnumerateFollowingList(uint unStartIndex); - } - - - public abstract class ISteamUtils - { - public abstract IntPtr GetIntPtr(); - public abstract uint GetSecondsSinceAppActive(); - public abstract uint GetSecondsSinceComputerActive(); - public abstract int GetConnectedUniverse(); - public abstract uint GetServerRealTime(); - public abstract string GetIPCountry(); - public abstract bool GetImageSize(int iImage,ref uint pnWidth,ref uint pnHeight); - public abstract bool GetImageRGBA(int iImage,IntPtr pubDest,int nDestBufferSize); - public abstract bool GetCSERIPPort(ref uint unIP,ref char usPort); - public abstract byte GetCurrentBatteryPower(); - public abstract uint GetAppID(); - public abstract void SetOverlayNotificationPosition(uint eNotificationPosition); - public abstract bool IsAPICallCompleted(ulong hSteamAPICall,ref bool pbFailed); - public abstract int GetAPICallFailureReason(ulong hSteamAPICall); - public abstract bool GetAPICallResult(ulong hSteamAPICall,IntPtr pCallback,int cubCallback,int iCallbackExpected,ref bool pbFailed); - public abstract void RunFrame(); - public abstract uint GetIPCCallCount(); - public abstract void SetWarningMessageHook(IntPtr pFunction); - public abstract bool IsOverlayEnabled(); - public abstract bool BOverlayNeedsPresent(); - public abstract ulong CheckFileSignature(string szFileName); - public abstract bool ShowGamepadTextInput(int eInputMode,int eLineInputMode,string pchDescription,uint unCharMax,string pchExistingText); - public abstract uint GetEnteredGamepadTextLength(); - public abstract bool GetEnteredGamepadTextInput(string pchText,uint cchText); - public abstract string GetSteamUILanguage(); - public abstract bool IsSteamRunningInVR(); - public abstract void SetOverlayNotificationInset(int nHorizontalInset,int nVerticalInset); - } - - - public abstract class ISteamMatchmaking - { - public abstract IntPtr GetIntPtr(); - public abstract int GetFavoriteGameCount(); - public abstract bool GetFavoriteGame(int iGame,ref uint pnAppID,ref uint pnIP,ref char pnConnPort,ref char pnQueryPort,ref uint punFlags,ref uint pRTime32LastPlayedOnServer); - public abstract int AddFavoriteGame(uint nAppID,uint nIP,char nConnPort,char nQueryPort,uint unFlags,uint rTime32LastPlayedOnServer); - public abstract bool RemoveFavoriteGame(uint nAppID,uint nIP,char nConnPort,char nQueryPort,uint unFlags); - public abstract ulong RequestLobbyList(); - public abstract void AddRequestLobbyListStringFilter(string pchKeyToMatch,string pchValueToMatch,uint eComparisonType); - public abstract void AddRequestLobbyListNumericalFilter(string pchKeyToMatch,int nValueToMatch,uint eComparisonType); - public abstract void AddRequestLobbyListNearValueFilter(string pchKeyToMatch,int nValueToBeCloseTo); - public abstract void AddRequestLobbyListFilterSlotsAvailable(int nSlotsAvailable); - public abstract void AddRequestLobbyListDistanceFilter(uint eLobbyDistanceFilter); - public abstract void AddRequestLobbyListResultCountFilter(int cMaxResults); - public abstract void AddRequestLobbyListCompatibleMembersFilter(ulong steamIDLobby); - public abstract ulong GetLobbyByIndex(int iLobby); - public abstract ulong CreateLobby(uint eLobbyType,int cMaxMembers); - public abstract ulong JoinLobby(ulong steamIDLobby); - public abstract void LeaveLobby(ulong steamIDLobby); - public abstract bool InviteUserToLobby(ulong steamIDLobby,ulong steamIDInvitee); - public abstract int GetNumLobbyMembers(ulong steamIDLobby); - public abstract ulong GetLobbyMemberByIndex(ulong steamIDLobby,int iMember); - public abstract string GetLobbyData(ulong steamIDLobby,string pchKey); - public abstract bool SetLobbyData(ulong steamIDLobby,string pchKey,string pchValue); - public abstract int GetLobbyDataCount(ulong steamIDLobby); - public abstract bool GetLobbyDataByIndex(ulong steamIDLobby,int iLobbyData,string pchKey,int cchKeyBufferSize,string pchValue,int cchValueBufferSize); - public abstract bool DeleteLobbyData(ulong steamIDLobby,string pchKey); - public abstract string GetLobbyMemberData(ulong steamIDLobby,ulong steamIDUser,string pchKey); - public abstract void SetLobbyMemberData(ulong steamIDLobby,string pchKey,string pchValue); - public abstract bool SendLobbyChatMsg(ulong steamIDLobby,IntPtr pvMsgBody,int cubMsgBody); - public abstract int GetLobbyChatEntry(ulong steamIDLobby,int iChatID,out CSteamID pSteamIDUser,IntPtr pvData,int cubData,ref uint peChatEntryType); - public abstract bool RequestLobbyData(ulong steamIDLobby); - public abstract void SetLobbyGameServer(ulong steamIDLobby,uint unGameServerIP,char unGameServerPort,ulong steamIDGameServer); - public abstract bool GetLobbyGameServer(ulong steamIDLobby,ref uint punGameServerIP,ref char punGameServerPort,out CSteamID psteamIDGameServer); - public abstract bool SetLobbyMemberLimit(ulong steamIDLobby,int cMaxMembers); - public abstract int GetLobbyMemberLimit(ulong steamIDLobby); - public abstract bool SetLobbyType(ulong steamIDLobby,uint eLobbyType); - public abstract bool SetLobbyJoinable(ulong steamIDLobby,bool bLobbyJoinable); - public abstract ulong GetLobbyOwner(ulong steamIDLobby); - public abstract bool SetLobbyOwner(ulong steamIDLobby,ulong steamIDNewOwner); - public abstract bool SetLinkedLobby(ulong steamIDLobby,ulong steamIDLobbyDependent); - } - - - public abstract class ISteamMatchmakingServerListResponse - { - public abstract IntPtr GetIntPtr(); - public abstract void ServerResponded(uint hRequest,int iServer); - public abstract void ServerFailedToRespond(uint hRequest,int iServer); - public abstract void RefreshComplete(uint hRequest,uint response); - } - - - public abstract class ISteamMatchmakingPingResponse - { - public abstract IntPtr GetIntPtr(); - public abstract void ServerResponded(IntPtr server); - public abstract void ServerFailedToRespond(); - } - - - public abstract class ISteamMatchmakingPlayersResponse - { - public abstract IntPtr GetIntPtr(); - public abstract void AddPlayerToList(string pchName,int nScore,float flTimePlayed); - public abstract void PlayersFailedToRespond(); - public abstract void PlayersRefreshComplete(); - } - - - public abstract class ISteamMatchmakingRulesResponse - { - public abstract IntPtr GetIntPtr(); - public abstract void RulesResponded(string pchRule,string pchValue); - public abstract void RulesFailedToRespond(); - public abstract void RulesRefreshComplete(); - } - - - public abstract class ISteamMatchmakingServers - { - public abstract IntPtr GetIntPtr(); - public abstract uint RequestInternetServerList(uint iApp,MatchMakingKeyValuePair_t [] ppchFilters,ISteamMatchmakingServerListResponse pRequestServersResponse); - public abstract uint RequestLANServerList(uint iApp,ISteamMatchmakingServerListResponse pRequestServersResponse); - public abstract uint RequestFriendsServerList(uint iApp,MatchMakingKeyValuePair_t [] ppchFilters,ISteamMatchmakingServerListResponse pRequestServersResponse); - public abstract uint RequestFavoritesServerList(uint iApp,MatchMakingKeyValuePair_t [] ppchFilters,ISteamMatchmakingServerListResponse pRequestServersResponse); - public abstract uint RequestHistoryServerList(uint iApp,MatchMakingKeyValuePair_t [] ppchFilters,ISteamMatchmakingServerListResponse pRequestServersResponse); - public abstract uint RequestSpectatorServerList(uint iApp,MatchMakingKeyValuePair_t [] ppchFilters,ISteamMatchmakingServerListResponse pRequestServersResponse); - public abstract void ReleaseRequest(uint hServerListRequest); - public abstract gameserveritem_t GetServerDetails(uint hRequest,int iServer); - public abstract void CancelQuery(uint hRequest); - public abstract void RefreshQuery(uint hRequest); - public abstract bool IsRefreshing(uint hRequest); - public abstract int GetServerCount(uint hRequest); - public abstract void RefreshServer(uint hRequest,int iServer); - public abstract uint PingServer(uint unIP,char usPort,ISteamMatchmakingPingResponse pRequestServersResponse); - public abstract uint PlayerDetails(uint unIP,char usPort,ISteamMatchmakingPlayersResponse pRequestServersResponse); - public abstract uint ServerRules(uint unIP,char usPort,ISteamMatchmakingRulesResponse pRequestServersResponse); - public abstract void CancelServerQuery(uint hServerQuery); - } - - - public abstract class ISteamRemoteStorage - { - public abstract IntPtr GetIntPtr(); - public abstract bool FileWrite(string pchFile,IntPtr pvData,int cubData); - public abstract int FileRead(string pchFile,IntPtr pvData,int cubDataToRead); - public abstract ulong FileWriteAsync(string pchFile,IntPtr pvData,uint cubData); - public abstract ulong FileReadAsync(string pchFile,uint nOffset,uint cubToRead); - public abstract bool FileReadAsyncComplete(ulong hReadCall,IntPtr pvBuffer,uint cubToRead); - public abstract bool FileForget(string pchFile); - public abstract bool FileDelete(string pchFile); - public abstract ulong FileShare(string pchFile); - public abstract bool SetSyncPlatforms(string pchFile,uint eRemoteStoragePlatform); - public abstract ulong FileWriteStreamOpen(string pchFile); - public abstract bool FileWriteStreamWriteChunk(ulong writeHandle,IntPtr pvData,int cubData); - public abstract bool FileWriteStreamClose(ulong writeHandle); - public abstract bool FileWriteStreamCancel(ulong writeHandle); - public abstract bool FileExists(string pchFile); - public abstract bool FilePersisted(string pchFile); - public abstract int GetFileSize(string pchFile); - public abstract long GetFileTimestamp(string pchFile); - public abstract uint GetSyncPlatforms(string pchFile); - public abstract int GetFileCount(); - public abstract string GetFileNameAndSize(int iFile,ref int pnFileSizeInBytes); - public abstract bool GetQuota(ref int pnTotalBytes,ref int puAvailableBytes); - public abstract bool IsCloudEnabledForAccount(); - public abstract bool IsCloudEnabledForApp(); - public abstract void SetCloudEnabledForApp(bool bEnabled); - public abstract ulong UGCDownload(ulong hContent,uint unPriority); - public abstract bool GetUGCDownloadProgress(ulong hContent,ref int pnBytesDownloaded,ref int pnBytesExpected); - public abstract bool GetUGCDetails(ulong hContent,ref uint pnAppID,string ppchName,ref int pnFileSizeInBytes,out CSteamID pSteamIDOwner); - public abstract int UGCRead(ulong hContent,IntPtr pvData,int cubDataToRead,uint cOffset,uint eAction); - public abstract int GetCachedUGCCount(); - public abstract ulong GetCachedUGCHandle(int iCachedContent); - public abstract ulong PublishWorkshopFile(string pchFile,string pchPreviewFile,uint nConsumerAppId,string pchTitle,string pchDescription,uint eVisibility,ref SteamParamStringArray_t pTags,uint eWorkshopFileType); - public abstract ulong CreatePublishedFileUpdateRequest(ulong unPublishedFileId); - public abstract bool UpdatePublishedFileFile(ulong updateHandle,string pchFile); - public abstract bool UpdatePublishedFilePreviewFile(ulong updateHandle,string pchPreviewFile); - public abstract bool UpdatePublishedFileTitle(ulong updateHandle,string pchTitle); - public abstract bool UpdatePublishedFileDescription(ulong updateHandle,string pchDescription); - public abstract bool UpdatePublishedFileVisibility(ulong updateHandle,uint eVisibility); - public abstract bool UpdatePublishedFileTags(ulong updateHandle,ref SteamParamStringArray_t pTags); - public abstract ulong CommitPublishedFileUpdate(ulong updateHandle); - public abstract ulong GetPublishedFileDetails(ulong unPublishedFileId,uint unMaxSecondsOld); - public abstract ulong DeletePublishedFile(ulong unPublishedFileId); - public abstract ulong EnumerateUserPublishedFiles(uint unStartIndex); - public abstract ulong SubscribePublishedFile(ulong unPublishedFileId); - public abstract ulong EnumerateUserSubscribedFiles(uint unStartIndex); - public abstract ulong UnsubscribePublishedFile(ulong unPublishedFileId); - public abstract bool UpdatePublishedFileSetChangeDescription(ulong updateHandle,string pchChangeDescription); - public abstract ulong GetPublishedItemVoteDetails(ulong unPublishedFileId); - public abstract ulong UpdateUserPublishedItemVote(ulong unPublishedFileId,bool bVoteUp); - public abstract ulong GetUserPublishedItemVoteDetails(ulong unPublishedFileId); - public abstract ulong EnumerateUserSharedWorkshopFiles(ulong steamId,uint unStartIndex,ref SteamParamStringArray_t pRequiredTags,ref SteamParamStringArray_t pExcludedTags); - public abstract ulong PublishVideo(uint eVideoProvider,string pchVideoAccount,string pchVideoIdentifier,string pchPreviewFile,uint nConsumerAppId,string pchTitle,string pchDescription,uint eVisibility,ref SteamParamStringArray_t pTags); - public abstract ulong SetUserPublishedFileAction(ulong unPublishedFileId,uint eAction); - public abstract ulong EnumeratePublishedFilesByUserAction(uint eAction,uint unStartIndex); - public abstract ulong EnumeratePublishedWorkshopFiles(uint eEnumerationType,uint unStartIndex,uint unCount,uint unDays,ref SteamParamStringArray_t pTags,ref SteamParamStringArray_t pUserTags); - public abstract ulong UGCDownloadToLocation(ulong hContent,string pchLocation,uint unPriority); - } - - - public abstract class ISteamUserStats - { - public abstract IntPtr GetIntPtr(); - public abstract bool RequestCurrentStats(); - public abstract bool GetStat(string pchName,ref int pData); - public abstract bool GetStat0(string pchName,ref float pData); - public abstract bool SetStat(string pchName,int nData); - public abstract bool SetStat0(string pchName,float fData); - public abstract bool UpdateAvgRateStat(string pchName,float flCountThisSession,double dSessionLength); - public abstract bool GetAchievement(string pchName,ref bool pbAchieved); - public abstract bool SetAchievement(string pchName); - public abstract bool ClearAchievement(string pchName); - public abstract bool GetAchievementAndUnlockTime(string pchName,ref bool pbAchieved,ref uint punUnlockTime); - public abstract bool StoreStats(); - public abstract int GetAchievementIcon(string pchName); - public abstract string GetAchievementDisplayAttribute(string pchName,string pchKey); - public abstract bool IndicateAchievementProgress(string pchName,uint nCurProgress,uint nMaxProgress); - public abstract uint GetNumAchievements(); - public abstract string GetAchievementName(uint iAchievement); - public abstract ulong RequestUserStats(ulong steamIDUser); - public abstract bool GetUserStat(ulong steamIDUser,string pchName,ref int pData); - public abstract bool GetUserStat0(ulong steamIDUser,string pchName,ref float pData); - public abstract bool GetUserAchievement(ulong steamIDUser,string pchName,ref bool pbAchieved); - public abstract bool GetUserAchievementAndUnlockTime(ulong steamIDUser,string pchName,ref bool pbAchieved,ref uint punUnlockTime); - public abstract bool ResetAllStats(bool bAchievementsToo); - public abstract ulong FindOrCreateLeaderboard(string pchLeaderboardName,uint eLeaderboardSortMethod,uint eLeaderboardDisplayType); - public abstract ulong FindLeaderboard(string pchLeaderboardName); - public abstract string GetLeaderboardName(ulong hSteamLeaderboard); - public abstract int GetLeaderboardEntryCount(ulong hSteamLeaderboard); - public abstract uint GetLeaderboardSortMethod(ulong hSteamLeaderboard); - public abstract uint GetLeaderboardDisplayType(ulong hSteamLeaderboard); - public abstract ulong DownloadLeaderboardEntries(ulong hSteamLeaderboard,uint eLeaderboardDataRequest,int nRangeStart,int nRangeEnd); - public abstract ulong DownloadLeaderboardEntriesForUsers(ulong hSteamLeaderboard,CSteamID [] prgUsers); - public abstract bool GetDownloadedLeaderboardEntry(ulong hSteamLeaderboardEntries,int index,ref LeaderboardEntry_t pLeaderboardEntry,ref int pDetails,int cDetailsMax); - public abstract ulong UploadLeaderboardScore(ulong hSteamLeaderboard,uint eLeaderboardUploadScoreMethod,int nScore,ref int pScoreDetails,int cScoreDetailsCount); - public abstract ulong AttachLeaderboardUGC(ulong hSteamLeaderboard,ulong hUGC); - public abstract ulong GetNumberOfCurrentPlayers(); - public abstract ulong RequestGlobalAchievementPercentages(); - public abstract int GetMostAchievedAchievementInfo(string pchName,uint unNameBufLen,ref float pflPercent,ref bool pbAchieved); - public abstract int GetNextMostAchievedAchievementInfo(int iIteratorPrevious,string pchName,uint unNameBufLen,ref float pflPercent,ref bool pbAchieved); - public abstract bool GetAchievementAchievedPercent(string pchName,ref float pflPercent); - public abstract ulong RequestGlobalStats(int nHistoryDays); - public abstract bool GetGlobalStat(string pchStatName,ref long pData); - public abstract bool GetGlobalStat0(string pchStatName,ref double pData); - public abstract int GetGlobalStatHistory(string pchStatName,long [] pData); - public abstract int GetGlobalStatHistory0(string pchStatName,double [] pData); - } - - - public abstract class ISteamApps - { - public abstract IntPtr GetIntPtr(); - public abstract bool BIsSubscribed(); - public abstract bool BIsLowViolence(); - public abstract bool BIsCybercafe(); - public abstract bool BIsVACBanned(); - public abstract string GetCurrentGameLanguage(); - public abstract string GetAvailableGameLanguages(); - public abstract bool BIsSubscribedApp(uint appID); - public abstract bool BIsDlcInstalled(uint appID); - public abstract uint GetEarliestPurchaseUnixTime(uint nAppID); - public abstract bool BIsSubscribedFromFreeWeekend(); - public abstract int GetDLCCount(); - public abstract bool BGetDLCDataByIndex(int iDLC,ref uint pAppID,ref bool pbAvailable,string pchName,int cchNameBufferSize); - public abstract void InstallDLC(uint nAppID); - public abstract void UninstallDLC(uint nAppID); - public abstract void RequestAppProofOfPurchaseKey(uint nAppID); - public abstract bool GetCurrentBetaName(string pchName,int cchNameBufferSize); - public abstract bool MarkContentCorrupt(bool bMissingFilesOnly); - public abstract uint GetInstalledDepots(uint appID,ref uint pvecDepots,uint cMaxDepots); - public abstract uint GetAppInstallDir(uint appID,string pchFolder,uint cchFolderBufferSize); - public abstract bool BIsAppInstalled(uint appID); - public abstract ulong GetAppOwner(); - public abstract string GetLaunchQueryParam(string pchKey); - public abstract bool GetDlcDownloadProgress(uint nAppID,ref ulong punBytesDownloaded,ref ulong punBytesTotal); - public abstract int GetAppBuildId(); - } - - - public abstract class ISteamNetworking - { - public abstract IntPtr GetIntPtr(); - public abstract bool SendP2PPacket(ulong steamIDRemote,IntPtr pubData,uint cubData,uint eP2PSendType,int nChannel); - public abstract bool IsP2PPacketAvailable(ref uint pcubMsgSize,int nChannel); - public abstract bool ReadP2PPacket(IntPtr pubDest,uint cubDest,ref uint pcubMsgSize,ref CSteamID psteamIDRemote,int nChannel); - public abstract bool AcceptP2PSessionWithUser(ulong steamIDRemote); - public abstract bool CloseP2PSessionWithUser(ulong steamIDRemote); - public abstract bool CloseP2PChannelWithUser(ulong steamIDRemote,int nChannel); - public abstract bool GetP2PSessionState(ulong steamIDRemote,ref P2PSessionState_t pConnectionState); - public abstract bool AllowP2PPacketRelay(bool bAllow); - public abstract uint CreateListenSocket(int nVirtualP2PPort,uint nIP,char nPort,bool bAllowUseOfPacketRelay); - public abstract uint CreateP2PConnectionSocket(ulong steamIDTarget,int nVirtualPort,int nTimeoutSec,bool bAllowUseOfPacketRelay); - public abstract uint CreateConnectionSocket(uint nIP,char nPort,int nTimeoutSec); - public abstract bool DestroySocket(uint hSocket,bool bNotifyRemoteEnd); - public abstract bool DestroyListenSocket(uint hSocket,bool bNotifyRemoteEnd); - public abstract bool SendDataOnSocket(uint hSocket,IntPtr pubData,uint cubData,bool bReliable); - public abstract bool IsDataAvailableOnSocket(uint hSocket,ref uint pcubMsgSize); - public abstract bool RetrieveDataFromSocket(uint hSocket,IntPtr pubDest,uint cubDest,ref uint pcubMsgSize); - public abstract bool IsDataAvailable(uint hListenSocket,ref uint pcubMsgSize,ref uint phSocket); - public abstract bool RetrieveData(uint hListenSocket,IntPtr pubDest,uint cubDest,ref uint pcubMsgSize,ref uint phSocket); - public abstract bool GetSocketInfo(uint hSocket,ref CSteamID pSteamIDRemote,ref int peSocketStatus,ref uint punIPRemote,ref char punPortRemote); - public abstract bool GetListenSocketInfo(uint hListenSocket,ref uint pnIP,ref char pnPort); - public abstract uint GetSocketConnectionType(uint hSocket); - public abstract int GetMaxPacketSize(uint hSocket); - } - - - public abstract class ISteamScreenshots - { - public abstract IntPtr GetIntPtr(); - public abstract uint WriteScreenshot(IntPtr pubRGB,uint cubRGB,int nWidth,int nHeight); - public abstract uint AddScreenshotToLibrary(string pchFilename,string pchThumbnailFilename,int nWidth,int nHeight); - public abstract void TriggerScreenshot(); - public abstract void HookScreenshots(bool bHook); - public abstract bool SetLocation(uint hScreenshot,string pchLocation); - public abstract bool TagUser(uint hScreenshot,ulong steamID); - public abstract bool TagPublishedFile(uint hScreenshot,ulong unPublishedFileID); - } - - - public abstract class ISteamMusic - { - public abstract IntPtr GetIntPtr(); - public abstract bool BIsEnabled(); - public abstract bool BIsPlaying(); - public abstract int GetPlaybackStatus(); - public abstract void Play(); - public abstract void Pause(); - public abstract void PlayPrevious(); - public abstract void PlayNext(); - public abstract void SetVolume(float flVolume); - public abstract float GetVolume(); - } - - - public abstract class ISteamMusicRemote - { - public abstract IntPtr GetIntPtr(); - public abstract bool RegisterSteamMusicRemote(string pchName); - public abstract bool DeregisterSteamMusicRemote(); - public abstract bool BIsCurrentMusicRemote(); - public abstract bool BActivationSuccess(bool bValue); - public abstract bool SetDisplayName(string pchDisplayName); - public abstract bool SetPNGIcon_64x64(IntPtr pvBuffer,uint cbBufferLength); - public abstract bool EnablePlayPrevious(bool bValue); - public abstract bool EnablePlayNext(bool bValue); - public abstract bool EnableShuffled(bool bValue); - public abstract bool EnableLooped(bool bValue); - public abstract bool EnableQueue(bool bValue); - public abstract bool EnablePlaylists(bool bValue); - public abstract bool UpdatePlaybackStatus(int nStatus); - public abstract bool UpdateShuffled(bool bValue); - public abstract bool UpdateLooped(bool bValue); - public abstract bool UpdateVolume(float flValue); - public abstract bool CurrentEntryWillChange(); - public abstract bool CurrentEntryIsAvailable(bool bAvailable); - public abstract bool UpdateCurrentEntryText(string pchText); - public abstract bool UpdateCurrentEntryElapsedSeconds(int nValue); - public abstract bool UpdateCurrentEntryCoverArt(IntPtr pvBuffer,uint cbBufferLength); - public abstract bool CurrentEntryDidChange(); - public abstract bool QueueWillChange(); - public abstract bool ResetQueueEntries(); - public abstract bool SetQueueEntry(int nID,int nPosition,string pchEntryText); - public abstract bool SetCurrentQueueEntry(int nID); - public abstract bool QueueDidChange(); - public abstract bool PlaylistWillChange(); - public abstract bool ResetPlaylistEntries(); - public abstract bool SetPlaylistEntry(int nID,int nPosition,string pchEntryText); - public abstract bool SetCurrentPlaylistEntry(int nID); - public abstract bool PlaylistDidChange(); - } - - - public abstract class ISteamHTTP - { - public abstract IntPtr GetIntPtr(); - public abstract uint CreateHTTPRequest(uint eHTTPRequestMethod,string pchAbsoluteURL); - public abstract bool SetHTTPRequestContextValue(uint hRequest,ulong ulContextValue); - public abstract bool SetHTTPRequestNetworkActivityTimeout(uint hRequest,uint unTimeoutSeconds); - public abstract bool SetHTTPRequestHeaderValue(uint hRequest,string pchHeaderName,string pchHeaderValue); - public abstract bool SetHTTPRequestGetOrPostParameter(uint hRequest,string pchParamName,string pchParamValue); - public abstract bool SendHTTPRequest(uint hRequest,ref ulong pCallHandle); - public abstract bool SendHTTPRequestAndStreamResponse(uint hRequest,ref ulong pCallHandle); - public abstract bool DeferHTTPRequest(uint hRequest); - public abstract bool PrioritizeHTTPRequest(uint hRequest); - public abstract bool GetHTTPResponseHeaderSize(uint hRequest,string pchHeaderName,ref uint unResponseHeaderSize); - public abstract bool GetHTTPResponseHeaderValue(uint hRequest,string pchHeaderName,IntPtr pHeaderValueBuffer,uint unBufferSize); - public abstract bool GetHTTPResponseBodySize(uint hRequest,ref uint unBodySize); - public abstract bool GetHTTPResponseBodyData(uint hRequest,IntPtr pBodyDataBuffer,uint unBufferSize); - public abstract bool GetHTTPStreamingResponseBodyData(uint hRequest,uint cOffset,IntPtr pBodyDataBuffer,uint unBufferSize); - public abstract bool ReleaseHTTPRequest(uint hRequest); - public abstract bool GetHTTPDownloadProgressPct(uint hRequest,ref float pflPercentOut); - public abstract bool SetHTTPRequestRawPostBody(uint hRequest,string pchContentType,IntPtr pubBody,uint unBodyLen); - public abstract uint CreateCookieContainer(bool bAllowResponsesToModify); - public abstract bool ReleaseCookieContainer(uint hCookieContainer); - public abstract bool SetCookie(uint hCookieContainer,string pchHost,string pchUrl,string pchCookie); - public abstract bool SetHTTPRequestCookieContainer(uint hRequest,uint hCookieContainer); - public abstract bool SetHTTPRequestUserAgentInfo(uint hRequest,string pchUserAgentInfo); - public abstract bool SetHTTPRequestRequiresVerifiedCertificate(uint hRequest,bool bRequireVerifiedCertificate); - public abstract bool SetHTTPRequestAbsoluteTimeoutMS(uint hRequest,uint unMilliseconds); - public abstract bool GetHTTPRequestWasTimedOut(uint hRequest,ref bool pbWasTimedOut); - } - - - 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(); - public abstract bool Init(); - public abstract bool Shutdown(); - public abstract void RunFrame(); - public abstract int GetConnectedControllers(ref ulong handlesOut); - public abstract bool ShowBindingPanel(ulong controllerHandle); - public abstract ulong GetActionSetHandle(string pszActionSetName); - public abstract void ActivateActionSet(ulong controllerHandle,ulong actionSetHandle); - public abstract ulong GetCurrentActionSet(ulong controllerHandle); - 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); - public abstract ulong GetAnalogActionHandle(string pszActionName); - public abstract ControllerAnalogActionData_t GetAnalogActionData(ulong controllerHandle,ulong analogActionHandle); - public abstract int GetAnalogActionOrigins(ulong controllerHandle,ulong actionSetHandle,ulong analogActionHandle,ref uint originsOut); - public abstract void StopAnalogActionMomentum(ulong controllerHandle,ulong eAction); - public abstract void TriggerHapticPulse(ulong controllerHandle,uint eTargetPad,char usDurationMicroSec); - } - - - public abstract class ISteamUGC - { - public abstract IntPtr GetIntPtr(); - public abstract ulong CreateQueryUserUGCRequest(uint unAccountID,uint eListType,uint eMatchingUGCType,uint eSortOrder,uint nCreatorAppID,uint nConsumerAppID,uint unPage); - public abstract ulong CreateQueryAllUGCRequest(uint eQueryType,uint eMatchingeMatchingUGCTypeFileType,uint nCreatorAppID,uint nConsumerAppID,uint unPage); - public abstract ulong CreateQueryUGCDetailsRequest(ref ulong pvecPublishedFileID,uint unNumPublishedFileIDs); - public abstract ulong SendQueryUGCRequest(ulong handle); - public abstract bool GetQueryUGCResult(ulong handle,uint index,ref SteamUGCDetails_t pDetails); - public abstract bool GetQueryUGCPreviewURL(ulong handle,uint index,string pchURL,uint cchURLSize); - public abstract bool GetQueryUGCMetadata(ulong handle,uint index,string pchMetadata,uint cchMetadatasize); - public abstract bool GetQueryUGCChildren(ulong handle,uint index,ref ulong pvecPublishedFileID,uint cMaxEntries); - public abstract bool GetQueryUGCStatistic(ulong handle,uint index,uint eStatType,ref uint pStatValue); - public abstract uint GetQueryUGCNumAdditionalPreviews(ulong handle,uint index); - public abstract bool GetQueryUGCAdditionalPreview(ulong handle,uint index,uint previewIndex,string pchURLOrVideoID,uint cchURLSize,ref bool pbIsImage); - public abstract uint GetQueryUGCNumKeyValueTags(ulong handle,uint index); - public abstract bool GetQueryUGCKeyValueTag(ulong handle,uint index,uint keyValueTagIndex,string pchKey,uint cchKeySize,string pchValue,uint cchValueSize); - public abstract bool ReleaseQueryUGCRequest(ulong handle); - public abstract bool AddRequiredTag(ulong handle,string pTagName); - public abstract bool AddExcludedTag(ulong handle,string pTagName); - public abstract bool SetReturnKeyValueTags(ulong handle,bool bReturnKeyValueTags); - public abstract bool SetReturnLongDescription(ulong handle,bool bReturnLongDescription); - public abstract bool SetReturnMetadata(ulong handle,bool bReturnMetadata); - public abstract bool SetReturnChildren(ulong handle,bool bReturnChildren); - public abstract bool SetReturnAdditionalPreviews(ulong handle,bool bReturnAdditionalPreviews); - public abstract bool SetReturnTotalOnly(ulong handle,bool bReturnTotalOnly); - public abstract bool SetLanguage(ulong handle,string pchLanguage); - public abstract bool SetAllowCachedResponse(ulong handle,uint unMaxAgeSeconds); - public abstract bool SetCloudFileNameFilter(ulong handle,string pMatchCloudFileName); - public abstract bool SetMatchAnyTag(ulong handle,bool bMatchAnyTag); - public abstract bool SetSearchText(ulong handle,string pSearchText); - public abstract bool SetRankedByTrendDays(ulong handle,uint unDays); - public abstract bool AddRequiredKeyValueTag(ulong handle,string pKey,string pValue); - public abstract ulong RequestUGCDetails(ulong nPublishedFileID,uint unMaxAgeSeconds); - public abstract ulong CreateItem(uint nConsumerAppId,uint eFileType); - public abstract ulong StartItemUpdate(uint nConsumerAppId,ulong nPublishedFileID); - public abstract bool SetItemTitle(ulong handle,string pchTitle); - public abstract bool SetItemDescription(ulong handle,string pchDescription); - public abstract bool SetItemUpdateLanguage(ulong handle,string pchLanguage); - public abstract bool SetItemMetadata(ulong handle,string pchMetaData); - public abstract bool SetItemVisibility(ulong handle,uint eVisibility); - public abstract bool SetItemTags(ulong updateHandle,ref SteamParamStringArray_t pTags); - public abstract bool SetItemContent(ulong handle,string pszContentFolder); - public abstract bool SetItemPreview(ulong handle,string pszPreviewFile); - public abstract bool RemoveItemKeyValueTags(ulong handle,string pchKey); - public abstract bool AddItemKeyValueTag(ulong handle,string pchKey,string pchValue); - public abstract ulong SubmitItemUpdate(ulong handle,string pchChangeNote); - public abstract uint GetItemUpdateProgress(ulong handle,ref ulong punBytesProcessed,ref ulong punBytesTotal); - public abstract ulong SetUserItemVote(ulong nPublishedFileID,bool bVoteUp); - public abstract ulong GetUserItemVote(ulong nPublishedFileID); - public abstract ulong AddItemToFavorites(uint nAppId,ulong nPublishedFileID); - public abstract ulong RemoveItemFromFavorites(uint nAppId,ulong nPublishedFileID); - public abstract ulong SubscribeItem(ulong nPublishedFileID); - public abstract ulong UnsubscribeItem(ulong nPublishedFileID); - public abstract uint GetNumSubscribedItems(); - public abstract uint GetSubscribedItems(ref ulong pvecPublishedFileID,uint cMaxEntries); - public abstract uint GetItemState(ulong nPublishedFileID); - public abstract bool GetItemInstallInfo(ulong nPublishedFileID,ref ulong punSizeOnDisk,string pchFolder,uint cchFolderSize,ref uint punTimeStamp); - public abstract bool GetItemDownloadInfo(ulong nPublishedFileID,ref ulong punBytesDownloaded,ref ulong punBytesTotal); - public abstract bool DownloadItem(ulong nPublishedFileID,bool bHighPriority); - public abstract bool BInitWorkshopForGameServer(uint unWorkshopDepotID,string pszFolder); - public abstract void SuspendDownloads(bool bSuspend); - } - - - public abstract class ISteamAppList - { - public abstract IntPtr GetIntPtr(); - public abstract uint GetNumInstalledApps(); - public abstract uint GetInstalledApps(ref uint pvecAppID,uint unMaxAppIDs); - public abstract int GetAppName(uint nAppID,string pchName,int cchNameMax); - public abstract int GetAppInstallDir(uint nAppID,string pchDirectory,int cchNameMax); - public abstract int GetAppBuildId(uint nAppID); - } - - - public abstract class ISteamHTMLSurface - { - public abstract IntPtr GetIntPtr(); - public abstract void DestructISteamHTMLSurface(); - public abstract bool Init(); - public abstract bool Shutdown(); - public abstract ulong CreateBrowser(string pchUserAgent,string pchUserCSS); - public abstract void RemoveBrowser(uint unBrowserHandle); - public abstract void LoadURL(uint unBrowserHandle,string pchURL,string pchPostData); - public abstract void SetSize(uint unBrowserHandle,uint unWidth,uint unHeight); - public abstract void StopLoad(uint unBrowserHandle); - public abstract void Reload(uint unBrowserHandle); - public abstract void GoBack(uint unBrowserHandle); - public abstract void GoForward(uint unBrowserHandle); - public abstract void AddHeader(uint unBrowserHandle,string pchKey,string pchValue); - public abstract void ExecuteJavascript(uint unBrowserHandle,string pchScript); - public abstract void MouseUp(uint unBrowserHandle,uint eMouseButton); - public abstract void MouseDown(uint unBrowserHandle,uint eMouseButton); - public abstract void MouseDoubleClick(uint unBrowserHandle,uint eMouseButton); - public abstract void MouseMove(uint unBrowserHandle,int x,int y); - public abstract void MouseWheel(uint unBrowserHandle,int nDelta); - public abstract void KeyDown(uint unBrowserHandle,uint nNativeKeyCode,uint eHTMLKeyModifiers); - public abstract void KeyUp(uint unBrowserHandle,uint nNativeKeyCode,uint eHTMLKeyModifiers); - public abstract void KeyChar(uint unBrowserHandle,uint cUnicodeChar,uint eHTMLKeyModifiers); - public abstract void SetHorizontalScroll(uint unBrowserHandle,uint nAbsolutePixelScroll); - public abstract void SetVerticalScroll(uint unBrowserHandle,uint nAbsolutePixelScroll); - public abstract void SetKeyFocus(uint unBrowserHandle,bool bHasKeyFocus); - public abstract void ViewSource(uint unBrowserHandle); - public abstract void CopyToClipboard(uint unBrowserHandle); - public abstract void PasteFromClipboard(uint unBrowserHandle); - public abstract void Find(uint unBrowserHandle,string pchSearchStr,bool bCurrentlyInFind,bool bReverse); - public abstract void StopFind(uint unBrowserHandle); - public abstract void GetLinkAtPosition(uint unBrowserHandle,int x,int y); - 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 AllowStartRequest(uint unBrowserHandle,bool bAllowed); - public abstract void JSDialogResponse(uint unBrowserHandle,bool bResult); - public abstract void FileLoadDialogResponse(uint unBrowserHandle,string pchSelectedFiles); - } - - - public abstract class ISteamInventory - { - public abstract IntPtr GetIntPtr(); - public abstract uint GetResultStatus(int resultHandle); - public abstract bool GetResultItems(int resultHandle,out SteamItemDetails_t [] pOutItemsArray); - public abstract uint GetResultTimestamp(int resultHandle); - public abstract bool CheckResultSteamID(int resultHandle,ulong steamIDExpected); - public abstract void DestroyResult(int resultHandle); - public abstract bool GetAllItems(ref int pResultHandle); - public abstract bool GetItemsByID(ref int pResultHandle,ulong [] pInstanceIDs); - public abstract bool SerializeResult(int resultHandle,IntPtr pOutBuffer,ref uint punOutBufferSize); - public abstract bool DeserializeResult(ref int pOutResultHandle,IntPtr pBuffer,uint unBufferSize,bool bRESERVED_MUST_BE_FALSE); - public abstract bool GenerateItems(ref int pResultHandle,int [] pArrayItemDefs,uint [] punArrayQuantity); - public abstract bool GrantPromoItems(ref int pResultHandle); - public abstract bool AddPromoItem(ref int pResultHandle,int itemDef); - public abstract bool AddPromoItems(ref int pResultHandle,int [] pArrayItemDefs); - public abstract bool ConsumeItem(ref int pResultHandle,ulong itemConsume,uint unQuantity); - public abstract bool ExchangeItems(ref int pResultHandle,int [] pArrayGenerate,uint [] punArrayGenerateQuantity,ulong [] pArrayDestroy,uint [] punArrayDestroyQuantity); - public abstract bool TransferItemQuantity(ref int pResultHandle,ulong itemIdSource,uint unQuantity,ulong itemIdDest); - public abstract void SendItemDropHeartbeat(); - public abstract bool TriggerItemDrop(ref int pResultHandle,int dropListDefinition); - public abstract bool TradeItems(ref int pResultHandle,ulong steamIDTradePartner,ulong [] pArrayGive,uint [] pArrayGiveQuantity,ulong [] pArrayGet,uint [] pArrayGetQuantity); - public abstract bool LoadItemDefinitions(); - public abstract bool GetItemDefinitionIDs(out int [] pItemDefIDs); - public abstract bool GetItemDefinitionProperty(int iDefinition,string pchPropertyName,out string pchValueBuffer); - } - - - public abstract class ISteamVideo - { - public abstract IntPtr GetIntPtr(); - public abstract void GetVideoURL(uint unVideoAppID); - public abstract bool IsBroadcasting(ref int pnNumViewers); - } - - - public abstract class ISteamGameServer - { - public abstract IntPtr GetIntPtr(); - public abstract bool InitGameServer(uint unIP,char usGamePort,char usQueryPort,uint unFlags,uint nGameAppId,string pchVersionString); - public abstract void SetProduct(string pszProduct); - public abstract void SetGameDescription(string pszGameDescription); - public abstract void SetModDir(string pszModDir); - public abstract void SetDedicatedServer(bool bDedicated); - public abstract void LogOn(string pszToken); - public abstract void LogOnAnonymous(); - public abstract void LogOff(); - public abstract bool BLoggedOn(); - public abstract bool BSecure(); - public abstract ulong GetSteamID(); - public abstract bool WasRestartRequested(); - public abstract void SetMaxPlayerCount(int cPlayersMax); - public abstract void SetBotPlayerCount(int cBotplayers); - public abstract void SetServerName(string pszServerName); - public abstract void SetMapName(string pszMapName); - public abstract void SetPasswordProtected(bool bPasswordProtected); - public abstract void SetSpectatorPort(char unSpectatorPort); - public abstract void SetSpectatorServerName(string pszSpectatorServerName); - public abstract void ClearAllKeyValues(); - public abstract void SetKeyValue(string pKey,string pValue); - public abstract void SetGameTags(string pchGameTags); - public abstract void SetGameData(string pchGameData); - public abstract void SetRegion(string pszRegion); - public abstract bool SendUserConnectAndAuthenticate(uint unIPClient,IntPtr pvAuthBlob,uint cubAuthBlobSize,ref CSteamID pSteamIDUser); - public abstract ulong CreateUnauthenticatedUserConnection(); - public abstract void SendUserDisconnect(ulong steamIDUser); - public abstract bool BUpdateUserData(ulong steamIDUser,string pchPlayerName,uint uScore); - public abstract uint GetAuthSessionTicket(IntPtr pTicket,int cbMaxTicket,ref uint pcbTicket); - public abstract uint BeginAuthSession(IntPtr pAuthTicket,int cbAuthTicket,ulong steamID); - public abstract void EndAuthSession(ulong steamID); - public abstract void CancelAuthTicket(uint hAuthTicket); - public abstract uint UserHasLicenseForApp(ulong steamID,uint appID); - public abstract bool RequestUserGroupStatus(ulong steamIDUser,ulong steamIDGroup); - public abstract void GetGameplayStats(); - public abstract ulong GetServerReputation(); - public abstract uint GetPublicIP(); - public abstract bool HandleIncomingPacket(IntPtr pData,int cbData,uint srcIP,char srcPort); - public abstract int GetNextOutgoingPacket(IntPtr pOut,int cbMaxOut,ref uint pNetAdr,ref char pPort); - public abstract void EnableHeartbeats(bool bActive); - public abstract void SetHeartbeatInterval(int iHeartbeatInterval); - public abstract void ForceHeartbeat(); - public abstract ulong AssociateWithClan(ulong steamIDClan); - public abstract ulong ComputeNewPlayerCompatibility(ulong steamIDNewPlayer); - } - - - public abstract class ISteamGameServerStats - { - public abstract IntPtr GetIntPtr(); - public abstract ulong RequestUserStats(ulong steamIDUser); - public abstract bool GetUserStat(ulong steamIDUser,string pchName,ref int pData); - public abstract bool GetUserStat0(ulong steamIDUser,string pchName,ref float pData); - public abstract bool GetUserAchievement(ulong steamIDUser,string pchName,ref bool pbAchieved); - public abstract bool SetUserStat(ulong steamIDUser,string pchName,int nData); - public abstract bool SetUserStat0(ulong steamIDUser,string pchName,float fData); - public abstract bool UpdateUserAvgRateStat(ulong steamIDUser,string pchName,float flCountThisSession,double dSessionLength); - public abstract bool SetUserAchievement(ulong steamIDUser,string pchName); - public abstract bool ClearUserAchievement(ulong steamIDUser,string pchName); - public abstract ulong StoreUserStats(ulong steamIDUser); - } - - -public class CSteamClient : ISteamClient -{ -public CSteamClient(IntPtr SteamClient) -{ - m_pSteamClient = SteamClient; -} -IntPtr m_pSteamClient; - -public override IntPtr GetIntPtr() { return m_pSteamClient; } - -private void CheckIfUsable() -{ - if (m_pSteamClient == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override uint CreateSteamPipe() -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamClient_CreateSteamPipe(m_pSteamClient); - return result; -} -public override bool BReleaseSteamPipe(uint hSteamPipe) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamClient_BReleaseSteamPipe(m_pSteamClient,hSteamPipe); - return result; -} -public override uint ConnectToGlobalUser(uint hSteamPipe) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamClient_ConnectToGlobalUser(m_pSteamClient,hSteamPipe); - return result; -} -public override uint CreateLocalUser(ref uint phSteamPipe,uint eAccountType) -{ - CheckIfUsable(); - phSteamPipe = 0; - uint result = NativeEntrypoints.SteamAPI_ISteamClient_CreateLocalUser(m_pSteamClient,ref phSteamPipe,eAccountType); - return result; -} -public override void ReleaseUser(uint hSteamPipe,uint hUser) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamClient_ReleaseUser(m_pSteamClient,hSteamPipe,hUser); -} -public override ISteamUser GetISteamUser(uint hSteamUser,uint hSteamPipe,string pchVersion) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamUser(m_pSteamClient,hSteamUser,hSteamPipe,pchVersion); - return (ISteamUser) Marshal.PtrToStructure(result, typeof(ISteamUser)); -} -public override ISteamGameServer GetISteamGameServer(uint hSteamUser,uint hSteamPipe,string pchVersion) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamGameServer(m_pSteamClient,hSteamUser,hSteamPipe,pchVersion); - return (ISteamGameServer) Marshal.PtrToStructure(result, typeof(ISteamGameServer)); -} -public override void SetLocalIPBinding(uint unIP,char usPort) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamClient_SetLocalIPBinding(m_pSteamClient,unIP,usPort); -} -public override ISteamFriends GetISteamFriends(uint hSteamUser,uint hSteamPipe,string pchVersion) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamFriends(m_pSteamClient,hSteamUser,hSteamPipe,pchVersion); - return (ISteamFriends) Marshal.PtrToStructure(result, typeof(ISteamFriends)); -} -public override ISteamUtils GetISteamUtils(uint hSteamPipe,string pchVersion) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamUtils(m_pSteamClient,hSteamPipe,pchVersion); - return (ISteamUtils) Marshal.PtrToStructure(result, typeof(ISteamUtils)); -} -public override ISteamMatchmaking GetISteamMatchmaking(uint hSteamUser,uint hSteamPipe,string pchVersion) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamMatchmaking(m_pSteamClient,hSteamUser,hSteamPipe,pchVersion); - return (ISteamMatchmaking) Marshal.PtrToStructure(result, typeof(ISteamMatchmaking)); -} -public override ISteamMatchmakingServers GetISteamMatchmakingServers(uint hSteamUser,uint hSteamPipe,string pchVersion) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamMatchmakingServers(m_pSteamClient,hSteamUser,hSteamPipe,pchVersion); - return (ISteamMatchmakingServers) Marshal.PtrToStructure(result, typeof(ISteamMatchmakingServers)); -} -public override IntPtr GetISteamGenericInterface(uint hSteamUser,uint hSteamPipe,string pchVersion) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamGenericInterface(m_pSteamClient,hSteamUser,hSteamPipe,pchVersion); - return (IntPtr) Marshal.PtrToStructure(result, typeof(IntPtr)); -} -public override ISteamUserStats GetISteamUserStats(uint hSteamUser,uint hSteamPipe,string pchVersion) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamUserStats(m_pSteamClient,hSteamUser,hSteamPipe,pchVersion); - return (ISteamUserStats) Marshal.PtrToStructure(result, typeof(ISteamUserStats)); -} -public override ISteamGameServerStats GetISteamGameServerStats(uint hSteamuser,uint hSteamPipe,string pchVersion) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamGameServerStats(m_pSteamClient,hSteamuser,hSteamPipe,pchVersion); - return (ISteamGameServerStats) Marshal.PtrToStructure(result, typeof(ISteamGameServerStats)); -} -public override ISteamApps GetISteamApps(uint hSteamUser,uint hSteamPipe,string pchVersion) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamApps(m_pSteamClient,hSteamUser,hSteamPipe,pchVersion); - return (ISteamApps) Marshal.PtrToStructure(result, typeof(ISteamApps)); -} -public override ISteamNetworking GetISteamNetworking(uint hSteamUser,uint hSteamPipe,string pchVersion) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamNetworking(m_pSteamClient,hSteamUser,hSteamPipe,pchVersion); - return (ISteamNetworking) Marshal.PtrToStructure(result, typeof(ISteamNetworking)); -} -public override ISteamRemoteStorage GetISteamRemoteStorage(uint hSteamuser,uint hSteamPipe,string pchVersion) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamRemoteStorage(m_pSteamClient,hSteamuser,hSteamPipe,pchVersion); - return (ISteamRemoteStorage) Marshal.PtrToStructure(result, typeof(ISteamRemoteStorage)); -} -public override ISteamScreenshots GetISteamScreenshots(uint hSteamuser,uint hSteamPipe,string pchVersion) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamScreenshots(m_pSteamClient,hSteamuser,hSteamPipe,pchVersion); - return (ISteamScreenshots) Marshal.PtrToStructure(result, typeof(ISteamScreenshots)); -} -public override void RunFrame() -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamClient_RunFrame(m_pSteamClient); -} -public override uint GetIPCCallCount() -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamClient_GetIPCCallCount(m_pSteamClient); - return result; -} -public override void SetWarningMessageHook(IntPtr pFunction) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamClient_SetWarningMessageHook(m_pSteamClient,pFunction); -} -public override bool BShutdownIfAllPipesClosed() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamClient_BShutdownIfAllPipesClosed(m_pSteamClient); - return result; -} -public override ISteamHTTP GetISteamHTTP(uint hSteamuser,uint hSteamPipe,string pchVersion) -{ - CheckIfUsable(); - 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(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamController(m_pSteamClient,hSteamUser,hSteamPipe,pchVersion); - return (ISteamController) Marshal.PtrToStructure(result, typeof(ISteamController)); -} -public override ISteamUGC GetISteamUGC(uint hSteamUser,uint hSteamPipe,string pchVersion) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamUGC(m_pSteamClient,hSteamUser,hSteamPipe,pchVersion); - return (ISteamUGC) Marshal.PtrToStructure(result, typeof(ISteamUGC)); -} -public override ISteamAppList GetISteamAppList(uint hSteamUser,uint hSteamPipe,string pchVersion) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamAppList(m_pSteamClient,hSteamUser,hSteamPipe,pchVersion); - return (ISteamAppList) Marshal.PtrToStructure(result, typeof(ISteamAppList)); -} -public override ISteamMusic GetISteamMusic(uint hSteamuser,uint hSteamPipe,string pchVersion) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamMusic(m_pSteamClient,hSteamuser,hSteamPipe,pchVersion); - return (ISteamMusic) Marshal.PtrToStructure(result, typeof(ISteamMusic)); -} -public override ISteamMusicRemote GetISteamMusicRemote(uint hSteamuser,uint hSteamPipe,string pchVersion) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamMusicRemote(m_pSteamClient,hSteamuser,hSteamPipe,pchVersion); - return (ISteamMusicRemote) Marshal.PtrToStructure(result, typeof(ISteamMusicRemote)); -} -public override ISteamHTMLSurface GetISteamHTMLSurface(uint hSteamuser,uint hSteamPipe,string pchVersion) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamHTMLSurface(m_pSteamClient,hSteamuser,hSteamPipe,pchVersion); - return (ISteamHTMLSurface) Marshal.PtrToStructure(result, typeof(ISteamHTMLSurface)); -} -public override void Set_SteamAPI_CPostAPIResultInProcess(IntPtr func) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamClient_Set_SteamAPI_CPostAPIResultInProcess(m_pSteamClient,func); -} -public override void Remove_SteamAPI_CPostAPIResultInProcess(IntPtr func) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamClient_Remove_SteamAPI_CPostAPIResultInProcess(m_pSteamClient,func); -} -public override void Set_SteamAPI_CCheckCallbackRegisteredInProcess(IntPtr func) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamClient_Set_SteamAPI_CCheckCallbackRegisteredInProcess(m_pSteamClient,func); -} -public override ISteamInventory GetISteamInventory(uint hSteamuser,uint hSteamPipe,string pchVersion) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamInventory(m_pSteamClient,hSteamuser,hSteamPipe,pchVersion); - return (ISteamInventory) Marshal.PtrToStructure(result, typeof(ISteamInventory)); -} -public override ISteamVideo GetISteamVideo(uint hSteamuser,uint hSteamPipe,string pchVersion) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamVideo(m_pSteamClient,hSteamuser,hSteamPipe,pchVersion); - return (ISteamVideo) Marshal.PtrToStructure(result, typeof(ISteamVideo)); -} -} - - -public class CSteamUser : ISteamUser -{ -public CSteamUser(IntPtr SteamUser) -{ - m_pSteamUser = SteamUser; -} -IntPtr m_pSteamUser; - -public override IntPtr GetIntPtr() { return m_pSteamUser; } - -private void CheckIfUsable() -{ - if (m_pSteamUser == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override uint GetHSteamUser() -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamUser_GetHSteamUser(m_pSteamUser); - return result; -} -public override bool BLoggedOn() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUser_BLoggedOn(m_pSteamUser); - return result; -} -public override ulong GetSteamID() -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUser_GetSteamID(m_pSteamUser); - return result; -} -public override int InitiateGameConnection(IntPtr pAuthBlob,int cbMaxAuthBlob,ulong steamIDGameServer,uint unIPServer,char usPortServer,bool bSecure) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamUser_InitiateGameConnection(m_pSteamUser,pAuthBlob,cbMaxAuthBlob,steamIDGameServer,unIPServer,usPortServer,bSecure); - return result; -} -public override void TerminateGameConnection(uint unIPServer,char usPortServer) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamUser_TerminateGameConnection(m_pSteamUser,unIPServer,usPortServer); -} -public override void TrackAppUsageEvent(ulong gameID,int eAppUsageEvent,string pchExtraInfo) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamUser_TrackAppUsageEvent(m_pSteamUser,gameID,eAppUsageEvent,pchExtraInfo); -} -public override bool GetUserDataFolder(string pchBuffer,int cubBuffer) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUser_GetUserDataFolder(m_pSteamUser,pchBuffer,cubBuffer); - return result; -} -public override void StartVoiceRecording() -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamUser_StartVoiceRecording(m_pSteamUser); -} -public override void StopVoiceRecording() -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamUser_StopVoiceRecording(m_pSteamUser); -} -public override uint GetAvailableVoice(ref uint pcbCompressed,ref uint pcbUncompressed,uint nUncompressedVoiceDesiredSampleRate) -{ - CheckIfUsable(); - pcbCompressed = 0; - pcbUncompressed = 0; - uint result = NativeEntrypoints.SteamAPI_ISteamUser_GetAvailableVoice(m_pSteamUser,ref pcbCompressed,ref pcbUncompressed,nUncompressedVoiceDesiredSampleRate); - return result; -} -public override uint GetVoice(bool bWantCompressed,IntPtr pDestBuffer,uint cbDestBufferSize,ref uint nBytesWritten,bool bWantUncompressed,IntPtr pUncompressedDestBuffer,uint cbUncompressedDestBufferSize,ref uint nUncompressBytesWritten,uint nUncompressedVoiceDesiredSampleRate) -{ - CheckIfUsable(); - nBytesWritten = 0; - nUncompressBytesWritten = 0; - uint result = NativeEntrypoints.SteamAPI_ISteamUser_GetVoice(m_pSteamUser,bWantCompressed,pDestBuffer,cbDestBufferSize,ref nBytesWritten,bWantUncompressed,pUncompressedDestBuffer,cbUncompressedDestBufferSize,ref nUncompressBytesWritten,nUncompressedVoiceDesiredSampleRate); - return result; -} -public override uint DecompressVoice(IntPtr pCompressed,uint cbCompressed,IntPtr pDestBuffer,uint cbDestBufferSize,ref uint nBytesWritten,uint nDesiredSampleRate) -{ - CheckIfUsable(); - nBytesWritten = 0; - uint result = NativeEntrypoints.SteamAPI_ISteamUser_DecompressVoice(m_pSteamUser,pCompressed,cbCompressed,pDestBuffer,cbDestBufferSize,ref nBytesWritten,nDesiredSampleRate); - return result; -} -public override uint GetVoiceOptimalSampleRate() -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamUser_GetVoiceOptimalSampleRate(m_pSteamUser); - return result; -} -public override uint GetAuthSessionTicket(IntPtr pTicket,int cbMaxTicket,ref uint pcbTicket) -{ - CheckIfUsable(); - pcbTicket = 0; - uint result = NativeEntrypoints.SteamAPI_ISteamUser_GetAuthSessionTicket(m_pSteamUser,pTicket,cbMaxTicket,ref pcbTicket); - return result; -} -public override uint BeginAuthSession(IntPtr pAuthTicket,int cbAuthTicket,ulong steamID) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamUser_BeginAuthSession(m_pSteamUser,pAuthTicket,cbAuthTicket,steamID); - return result; -} -public override void EndAuthSession(ulong steamID) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamUser_EndAuthSession(m_pSteamUser,steamID); -} -public override void CancelAuthTicket(uint hAuthTicket) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamUser_CancelAuthTicket(m_pSteamUser,hAuthTicket); -} -public override uint UserHasLicenseForApp(ulong steamID,uint appID) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamUser_UserHasLicenseForApp(m_pSteamUser,steamID,appID); - return result; -} -public override bool BIsBehindNAT() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUser_BIsBehindNAT(m_pSteamUser); - return result; -} -public override void AdvertiseGame(ulong steamIDGameServer,uint unIPServer,char usPortServer) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamUser_AdvertiseGame(m_pSteamUser,steamIDGameServer,unIPServer,usPortServer); -} -public override ulong RequestEncryptedAppTicket(IntPtr pDataToInclude,int cbDataToInclude) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUser_RequestEncryptedAppTicket(m_pSteamUser,pDataToInclude,cbDataToInclude); - return result; -} -public override bool GetEncryptedAppTicket(IntPtr pTicket,int cbMaxTicket,ref uint pcbTicket) -{ - CheckIfUsable(); - pcbTicket = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamUser_GetEncryptedAppTicket(m_pSteamUser,pTicket,cbMaxTicket,ref pcbTicket); - return result; -} -public override int GetGameBadgeLevel(int nSeries,bool bFoil) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamUser_GetGameBadgeLevel(m_pSteamUser,nSeries,bFoil); - return result; -} -public override int GetPlayerSteamLevel() -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamUser_GetPlayerSteamLevel(m_pSteamUser); - return result; -} -public override ulong RequestStoreAuthURL(string pchRedirectURL) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUser_RequestStoreAuthURL(m_pSteamUser,pchRedirectURL); - return result; -} -} - - -public class CSteamFriends : ISteamFriends -{ -public CSteamFriends(IntPtr SteamFriends) -{ - m_pSteamFriends = SteamFriends; -} -IntPtr m_pSteamFriends; - -public override IntPtr GetIntPtr() { return m_pSteamFriends; } - -private void CheckIfUsable() -{ - if (m_pSteamFriends == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override string GetPersonaName() -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamFriends_GetPersonaName(m_pSteamFriends); - return (string) Marshal.PtrToStructure(result, typeof(string)); -} -public override ulong SetPersonaName(string pchPersonaName) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_SetPersonaName(m_pSteamFriends,pchPersonaName); - return result; -} -public override uint GetPersonaState() -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamFriends_GetPersonaState(m_pSteamFriends); - return result; -} -public override int GetFriendCount(int iFriendFlags) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendCount(m_pSteamFriends,iFriendFlags); - return result; -} -public override ulong GetFriendByIndex(int iFriend,int iFriendFlags) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendByIndex(m_pSteamFriends,iFriend,iFriendFlags); - return result; -} -public override uint GetFriendRelationship(ulong steamIDFriend) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendRelationship(m_pSteamFriends,steamIDFriend); - return result; -} -public override uint GetFriendPersonaState(ulong steamIDFriend) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendPersonaState(m_pSteamFriends,steamIDFriend); - return result; -} -public override string GetFriendPersonaName(ulong steamIDFriend) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendPersonaName(m_pSteamFriends,steamIDFriend); - return (string) Marshal.PtrToStructure(result, typeof(string)); -} -public override bool GetFriendGamePlayed(ulong steamIDFriend,out FriendGameInfo_t pFriendGameInfo) -{ - CheckIfUsable(); - pFriendGameInfo = new FriendGameInfo_t(); - bool result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendGamePlayed(m_pSteamFriends,steamIDFriend,ref pFriendGameInfo); - return result; -} -public override string GetFriendPersonaNameHistory(ulong steamIDFriend,int iPersonaName) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendPersonaNameHistory(m_pSteamFriends,steamIDFriend,iPersonaName); - return (string) Marshal.PtrToStructure(result, typeof(string)); -} -public override int GetFriendSteamLevel(ulong steamIDFriend) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendSteamLevel(m_pSteamFriends,steamIDFriend); - return result; -} -public override string GetPlayerNickname(ulong steamIDPlayer) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamFriends_GetPlayerNickname(m_pSteamFriends,steamIDPlayer); - return (string) Marshal.PtrToStructure(result, typeof(string)); -} -public override int GetFriendsGroupCount() -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendsGroupCount(m_pSteamFriends); - return result; -} -public override char GetFriendsGroupIDByIndex(int iFG) -{ - CheckIfUsable(); - char result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendsGroupIDByIndex(m_pSteamFriends,iFG); - return result; -} -public override string GetFriendsGroupName(char friendsGroupID) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendsGroupName(m_pSteamFriends,friendsGroupID); - return (string) Marshal.PtrToStructure(result, typeof(string)); -} -public override int GetFriendsGroupMembersCount(char friendsGroupID) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendsGroupMembersCount(m_pSteamFriends,friendsGroupID); - return result; -} -public override void GetFriendsGroupMembersList(char friendsGroupID,out CSteamID [] pOutSteamIDMembers) -{ - CheckIfUsable(); - int nMembersCount = GetFriendsGroupMembersCount (friendsGroupID); - pOutSteamIDMembers = new CSteamID[nMembersCount]; - NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendsGroupMembersList(m_pSteamFriends,friendsGroupID,pOutSteamIDMembers,nMembersCount); -} -public override bool HasFriend(ulong steamIDFriend,int iFriendFlags) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamFriends_HasFriend(m_pSteamFriends,steamIDFriend,iFriendFlags); - return result; -} -public override int GetClanCount() -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetClanCount(m_pSteamFriends); - return result; -} -public override ulong GetClanByIndex(int iClan) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_GetClanByIndex(m_pSteamFriends,iClan); - return result; -} -public override string GetClanName(ulong steamIDClan) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamFriends_GetClanName(m_pSteamFriends,steamIDClan); - return (string) Marshal.PtrToStructure(result, typeof(string)); -} -public override string GetClanTag(ulong steamIDClan) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamFriends_GetClanTag(m_pSteamFriends,steamIDClan); - return (string) Marshal.PtrToStructure(result, typeof(string)); -} -public override bool GetClanActivityCounts(ulong steamIDClan,ref int pnOnline,ref int pnInGame,ref int pnChatting) -{ - CheckIfUsable(); - pnOnline = 0; - pnInGame = 0; - pnChatting = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamFriends_GetClanActivityCounts(m_pSteamFriends,steamIDClan,ref pnOnline,ref pnInGame,ref pnChatting); - return result; -} -public override ulong DownloadClanActivityCounts(CSteamID [] psteamIDClans) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_DownloadClanActivityCounts(m_pSteamFriends,psteamIDClans,(int) psteamIDClans.Length); - return result; -} -public override int GetFriendCountFromSource(ulong steamIDSource) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendCountFromSource(m_pSteamFriends,steamIDSource); - return result; -} -public override ulong GetFriendFromSourceByIndex(ulong steamIDSource,int iFriend) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendFromSourceByIndex(m_pSteamFriends,steamIDSource,iFriend); - return result; -} -public override bool IsUserInSource(ulong steamIDUser,ulong steamIDSource) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamFriends_IsUserInSource(m_pSteamFriends,steamIDUser,steamIDSource); - return result; -} -public override void SetInGameVoiceSpeaking(ulong steamIDUser,bool bSpeaking) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamFriends_SetInGameVoiceSpeaking(m_pSteamFriends,steamIDUser,bSpeaking); -} -public override void ActivateGameOverlay(string pchDialog) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamFriends_ActivateGameOverlay(m_pSteamFriends,pchDialog); -} -public override void ActivateGameOverlayToUser(string pchDialog,ulong steamID) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamFriends_ActivateGameOverlayToUser(m_pSteamFriends,pchDialog,steamID); -} -public override void ActivateGameOverlayToWebPage(string pchURL) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamFriends_ActivateGameOverlayToWebPage(m_pSteamFriends,pchURL); -} -public override void ActivateGameOverlayToStore(uint nAppID,char eFlag) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamFriends_ActivateGameOverlayToStore(m_pSteamFriends,nAppID,eFlag); -} -public override void SetPlayedWith(ulong steamIDUserPlayedWith) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamFriends_SetPlayedWith(m_pSteamFriends,steamIDUserPlayedWith); -} -public override void ActivateGameOverlayInviteDialog(ulong steamIDLobby) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamFriends_ActivateGameOverlayInviteDialog(m_pSteamFriends,steamIDLobby); -} -public override int GetSmallFriendAvatar(ulong steamIDFriend) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetSmallFriendAvatar(m_pSteamFriends,steamIDFriend); - return result; -} -public override int GetMediumFriendAvatar(ulong steamIDFriend) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetMediumFriendAvatar(m_pSteamFriends,steamIDFriend); - return result; -} -public override int GetLargeFriendAvatar(ulong steamIDFriend) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetLargeFriendAvatar(m_pSteamFriends,steamIDFriend); - return result; -} -public override bool RequestUserInformation(ulong steamIDUser,bool bRequireNameOnly) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamFriends_RequestUserInformation(m_pSteamFriends,steamIDUser,bRequireNameOnly); - return result; -} -public override ulong RequestClanOfficerList(ulong steamIDClan) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_RequestClanOfficerList(m_pSteamFriends,steamIDClan); - return result; -} -public override ulong GetClanOwner(ulong steamIDClan) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_GetClanOwner(m_pSteamFriends,steamIDClan); - return result; -} -public override int GetClanOfficerCount(ulong steamIDClan) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetClanOfficerCount(m_pSteamFriends,steamIDClan); - return result; -} -public override ulong GetClanOfficerByIndex(ulong steamIDClan,int iOfficer) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_GetClanOfficerByIndex(m_pSteamFriends,steamIDClan,iOfficer); - return result; -} -public override uint GetUserRestrictions() -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamFriends_GetUserRestrictions(m_pSteamFriends); - return result; -} -public override bool SetRichPresence(string pchKey,string pchValue) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamFriends_SetRichPresence(m_pSteamFriends,pchKey,pchValue); - return result; -} -public override void ClearRichPresence() -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamFriends_ClearRichPresence(m_pSteamFriends); -} -public override string GetFriendRichPresence(ulong steamIDFriend,string pchKey) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendRichPresence(m_pSteamFriends,steamIDFriend,pchKey); - return (string) Marshal.PtrToStructure(result, typeof(string)); -} -public override int GetFriendRichPresenceKeyCount(ulong steamIDFriend) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendRichPresenceKeyCount(m_pSteamFriends,steamIDFriend); - return result; -} -public override string GetFriendRichPresenceKeyByIndex(ulong steamIDFriend,int iKey) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendRichPresenceKeyByIndex(m_pSteamFriends,steamIDFriend,iKey); - return (string) Marshal.PtrToStructure(result, typeof(string)); -} -public override void RequestFriendRichPresence(ulong steamIDFriend) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamFriends_RequestFriendRichPresence(m_pSteamFriends,steamIDFriend); -} -public override bool InviteUserToGame(ulong steamIDFriend,string pchConnectString) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamFriends_InviteUserToGame(m_pSteamFriends,steamIDFriend,pchConnectString); - return result; -} -public override int GetCoplayFriendCount() -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetCoplayFriendCount(m_pSteamFriends); - return result; -} -public override ulong GetCoplayFriend(int iCoplayFriend) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_GetCoplayFriend(m_pSteamFriends,iCoplayFriend); - return result; -} -public override int GetFriendCoplayTime(ulong steamIDFriend) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendCoplayTime(m_pSteamFriends,steamIDFriend); - return result; -} -public override uint GetFriendCoplayGame(ulong steamIDFriend) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendCoplayGame(m_pSteamFriends,steamIDFriend); - return result; -} -public override ulong JoinClanChatRoom(ulong steamIDClan) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_JoinClanChatRoom(m_pSteamFriends,steamIDClan); - return result; -} -public override bool LeaveClanChatRoom(ulong steamIDClan) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamFriends_LeaveClanChatRoom(m_pSteamFriends,steamIDClan); - return result; -} -public override int GetClanChatMemberCount(ulong steamIDClan) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetClanChatMemberCount(m_pSteamFriends,steamIDClan); - return result; -} -public override ulong GetChatMemberByIndex(ulong steamIDClan,int iUser) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_GetChatMemberByIndex(m_pSteamFriends,steamIDClan,iUser); - return result; -} -public override bool SendClanChatMessage(ulong steamIDClanChat,string pchText) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamFriends_SendClanChatMessage(m_pSteamFriends,steamIDClanChat,pchText); - return result; -} -public override int GetClanChatMessage(ulong steamIDClanChat,int iMessage,IntPtr prgchText,int cchTextMax,ref uint peChatEntryType,out CSteamID psteamidChatter) -{ - CheckIfUsable(); - peChatEntryType = 0; - psteamidChatter = new CSteamID(); - int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetClanChatMessage(m_pSteamFriends,steamIDClanChat,iMessage,prgchText,cchTextMax,ref peChatEntryType,ref psteamidChatter); - return result; -} -public override bool IsClanChatAdmin(ulong steamIDClanChat,ulong steamIDUser) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamFriends_IsClanChatAdmin(m_pSteamFriends,steamIDClanChat,steamIDUser); - return result; -} -public override bool IsClanChatWindowOpenInSteam(ulong steamIDClanChat) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamFriends_IsClanChatWindowOpenInSteam(m_pSteamFriends,steamIDClanChat); - return result; -} -public override bool OpenClanChatWindowInSteam(ulong steamIDClanChat) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamFriends_OpenClanChatWindowInSteam(m_pSteamFriends,steamIDClanChat); - return result; -} -public override bool CloseClanChatWindowInSteam(ulong steamIDClanChat) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamFriends_CloseClanChatWindowInSteam(m_pSteamFriends,steamIDClanChat); - return result; -} -public override bool SetListenForFriendsMessages(bool bInterceptEnabled) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamFriends_SetListenForFriendsMessages(m_pSteamFriends,bInterceptEnabled); - return result; -} -public override bool ReplyToFriendMessage(ulong steamIDFriend,string pchMsgToSend) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamFriends_ReplyToFriendMessage(m_pSteamFriends,steamIDFriend,pchMsgToSend); - return result; -} -public override int GetFriendMessage(ulong steamIDFriend,int iMessageID,IntPtr pvData,int cubData,ref uint peChatEntryType) -{ - CheckIfUsable(); - peChatEntryType = 0; - int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendMessage(m_pSteamFriends,steamIDFriend,iMessageID,pvData,cubData,ref peChatEntryType); - return result; -} -public override ulong GetFollowerCount(ulong steamID) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFollowerCount(m_pSteamFriends,steamID); - return result; -} -public override ulong IsFollowing(ulong steamID) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_IsFollowing(m_pSteamFriends,steamID); - return result; -} -public override ulong EnumerateFollowingList(uint unStartIndex) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_EnumerateFollowingList(m_pSteamFriends,unStartIndex); - return result; -} -} - - -public class CSteamUtils : ISteamUtils -{ -public CSteamUtils(IntPtr SteamUtils) -{ - m_pSteamUtils = SteamUtils; -} -IntPtr m_pSteamUtils; - -public override IntPtr GetIntPtr() { return m_pSteamUtils; } - -private void CheckIfUsable() -{ - if (m_pSteamUtils == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override uint GetSecondsSinceAppActive() -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamUtils_GetSecondsSinceAppActive(m_pSteamUtils); - return result; -} -public override uint GetSecondsSinceComputerActive() -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamUtils_GetSecondsSinceComputerActive(m_pSteamUtils); - return result; -} -public override int GetConnectedUniverse() -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamUtils_GetConnectedUniverse(m_pSteamUtils); - return result; -} -public override uint GetServerRealTime() -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamUtils_GetServerRealTime(m_pSteamUtils); - return result; -} -public override string GetIPCountry() -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamUtils_GetIPCountry(m_pSteamUtils); - return (string) Marshal.PtrToStructure(result, typeof(string)); -} -public override bool GetImageSize(int iImage,ref uint pnWidth,ref uint pnHeight) -{ - CheckIfUsable(); - pnWidth = 0; - pnHeight = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamUtils_GetImageSize(m_pSteamUtils,iImage,ref pnWidth,ref pnHeight); - return result; -} -public override bool GetImageRGBA(int iImage,IntPtr pubDest,int nDestBufferSize) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUtils_GetImageRGBA(m_pSteamUtils,iImage,pubDest,nDestBufferSize); - return result; -} -public override bool GetCSERIPPort(ref uint unIP,ref char usPort) -{ - CheckIfUsable(); - unIP = 0; - usPort = (char) 0; - bool result = NativeEntrypoints.SteamAPI_ISteamUtils_GetCSERIPPort(m_pSteamUtils,ref unIP,ref usPort); - return result; -} -public override byte GetCurrentBatteryPower() -{ - CheckIfUsable(); - byte result = NativeEntrypoints.SteamAPI_ISteamUtils_GetCurrentBatteryPower(m_pSteamUtils); - return result; -} -public override uint GetAppID() -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamUtils_GetAppID(m_pSteamUtils); - return result; -} -public override void SetOverlayNotificationPosition(uint eNotificationPosition) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamUtils_SetOverlayNotificationPosition(m_pSteamUtils,eNotificationPosition); -} -public override bool IsAPICallCompleted(ulong hSteamAPICall,ref bool pbFailed) -{ - CheckIfUsable(); - pbFailed = false; - bool result = NativeEntrypoints.SteamAPI_ISteamUtils_IsAPICallCompleted(m_pSteamUtils,hSteamAPICall,ref pbFailed); - return result; -} -public override int GetAPICallFailureReason(ulong hSteamAPICall) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamUtils_GetAPICallFailureReason(m_pSteamUtils,hSteamAPICall); - return result; -} -public override bool GetAPICallResult(ulong hSteamAPICall,IntPtr pCallback,int cubCallback,int iCallbackExpected,ref bool pbFailed) -{ - CheckIfUsable(); - pbFailed = false; - bool result = NativeEntrypoints.SteamAPI_ISteamUtils_GetAPICallResult(m_pSteamUtils,hSteamAPICall,pCallback,cubCallback,iCallbackExpected,ref pbFailed); - return result; -} -public override void RunFrame() -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamUtils_RunFrame(m_pSteamUtils); -} -public override uint GetIPCCallCount() -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamUtils_GetIPCCallCount(m_pSteamUtils); - return result; -} -public override void SetWarningMessageHook(IntPtr pFunction) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamUtils_SetWarningMessageHook(m_pSteamUtils,pFunction); -} -public override bool IsOverlayEnabled() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUtils_IsOverlayEnabled(m_pSteamUtils); - return result; -} -public override bool BOverlayNeedsPresent() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUtils_BOverlayNeedsPresent(m_pSteamUtils); - return result; -} -public override ulong CheckFileSignature(string szFileName) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUtils_CheckFileSignature(m_pSteamUtils,szFileName); - return result; -} -public override bool ShowGamepadTextInput(int eInputMode,int eLineInputMode,string pchDescription,uint unCharMax,string pchExistingText) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUtils_ShowGamepadTextInput(m_pSteamUtils,eInputMode,eLineInputMode,pchDescription,unCharMax,pchExistingText); - return result; -} -public override uint GetEnteredGamepadTextLength() -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamUtils_GetEnteredGamepadTextLength(m_pSteamUtils); - return result; -} -public override bool GetEnteredGamepadTextInput(string pchText,uint cchText) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUtils_GetEnteredGamepadTextInput(m_pSteamUtils,pchText,cchText); - return result; -} -public override string GetSteamUILanguage() -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamUtils_GetSteamUILanguage(m_pSteamUtils); - return (string) Marshal.PtrToStructure(result, typeof(string)); -} -public override bool IsSteamRunningInVR() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUtils_IsSteamRunningInVR(m_pSteamUtils); - return result; -} -public override void SetOverlayNotificationInset(int nHorizontalInset,int nVerticalInset) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamUtils_SetOverlayNotificationInset(m_pSteamUtils,nHorizontalInset,nVerticalInset); -} -} - - -public class CSteamMatchmaking : ISteamMatchmaking -{ -public CSteamMatchmaking(IntPtr SteamMatchmaking) -{ - m_pSteamMatchmaking = SteamMatchmaking; -} -IntPtr m_pSteamMatchmaking; - -public override IntPtr GetIntPtr() { return m_pSteamMatchmaking; } - -private void CheckIfUsable() -{ - if (m_pSteamMatchmaking == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override int GetFavoriteGameCount() -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetFavoriteGameCount(m_pSteamMatchmaking); - return result; -} -public override bool GetFavoriteGame(int iGame,ref uint pnAppID,ref uint pnIP,ref char pnConnPort,ref char pnQueryPort,ref uint punFlags,ref uint pRTime32LastPlayedOnServer) -{ - CheckIfUsable(); - pnAppID = 0; - pnIP = 0; - pnConnPort = (char) 0; - pnQueryPort = (char) 0; - punFlags = 0; - pRTime32LastPlayedOnServer = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetFavoriteGame(m_pSteamMatchmaking,iGame,ref pnAppID,ref pnIP,ref pnConnPort,ref pnQueryPort,ref punFlags,ref pRTime32LastPlayedOnServer); - return result; -} -public override int AddFavoriteGame(uint nAppID,uint nIP,char nConnPort,char nQueryPort,uint unFlags,uint rTime32LastPlayedOnServer) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_AddFavoriteGame(m_pSteamMatchmaking,nAppID,nIP,nConnPort,nQueryPort,unFlags,rTime32LastPlayedOnServer); - return result; -} -public override bool RemoveFavoriteGame(uint nAppID,uint nIP,char nConnPort,char nQueryPort,uint unFlags) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_RemoveFavoriteGame(m_pSteamMatchmaking,nAppID,nIP,nConnPort,nQueryPort,unFlags); - return result; -} -public override ulong RequestLobbyList() -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_RequestLobbyList(m_pSteamMatchmaking); - return result; -} -public override void AddRequestLobbyListStringFilter(string pchKeyToMatch,string pchValueToMatch,uint eComparisonType) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmaking_AddRequestLobbyListStringFilter(m_pSteamMatchmaking,pchKeyToMatch,pchValueToMatch,eComparisonType); -} -public override void AddRequestLobbyListNumericalFilter(string pchKeyToMatch,int nValueToMatch,uint eComparisonType) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmaking_AddRequestLobbyListNumericalFilter(m_pSteamMatchmaking,pchKeyToMatch,nValueToMatch,eComparisonType); -} -public override void AddRequestLobbyListNearValueFilter(string pchKeyToMatch,int nValueToBeCloseTo) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmaking_AddRequestLobbyListNearValueFilter(m_pSteamMatchmaking,pchKeyToMatch,nValueToBeCloseTo); -} -public override void AddRequestLobbyListFilterSlotsAvailable(int nSlotsAvailable) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable(m_pSteamMatchmaking,nSlotsAvailable); -} -public override void AddRequestLobbyListDistanceFilter(uint eLobbyDistanceFilter) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmaking_AddRequestLobbyListDistanceFilter(m_pSteamMatchmaking,eLobbyDistanceFilter); -} -public override void AddRequestLobbyListResultCountFilter(int cMaxResults) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmaking_AddRequestLobbyListResultCountFilter(m_pSteamMatchmaking,cMaxResults); -} -public override void AddRequestLobbyListCompatibleMembersFilter(ulong steamIDLobby) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter(m_pSteamMatchmaking,steamIDLobby); -} -public override ulong GetLobbyByIndex(int iLobby) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetLobbyByIndex(m_pSteamMatchmaking,iLobby); - return result; -} -public override ulong CreateLobby(uint eLobbyType,int cMaxMembers) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_CreateLobby(m_pSteamMatchmaking,eLobbyType,cMaxMembers); - return result; -} -public override ulong JoinLobby(ulong steamIDLobby) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_JoinLobby(m_pSteamMatchmaking,steamIDLobby); - return result; -} -public override void LeaveLobby(ulong steamIDLobby) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmaking_LeaveLobby(m_pSteamMatchmaking,steamIDLobby); -} -public override bool InviteUserToLobby(ulong steamIDLobby,ulong steamIDInvitee) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_InviteUserToLobby(m_pSteamMatchmaking,steamIDLobby,steamIDInvitee); - return result; -} -public override int GetNumLobbyMembers(ulong steamIDLobby) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetNumLobbyMembers(m_pSteamMatchmaking,steamIDLobby); - return result; -} -public override ulong GetLobbyMemberByIndex(ulong steamIDLobby,int iMember) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetLobbyMemberByIndex(m_pSteamMatchmaking,steamIDLobby,iMember); - return result; -} -public override string GetLobbyData(ulong steamIDLobby,string pchKey) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetLobbyData(m_pSteamMatchmaking,steamIDLobby,pchKey); - return (string) Marshal.PtrToStructure(result, typeof(string)); -} -public override bool SetLobbyData(ulong steamIDLobby,string pchKey,string pchValue) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_SetLobbyData(m_pSteamMatchmaking,steamIDLobby,pchKey,pchValue); - return result; -} -public override int GetLobbyDataCount(ulong steamIDLobby) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetLobbyDataCount(m_pSteamMatchmaking,steamIDLobby); - return result; -} -public override bool GetLobbyDataByIndex(ulong steamIDLobby,int iLobbyData,string pchKey,int cchKeyBufferSize,string pchValue,int cchValueBufferSize) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex(m_pSteamMatchmaking,steamIDLobby,iLobbyData,pchKey,cchKeyBufferSize,pchValue,cchValueBufferSize); - return result; -} -public override bool DeleteLobbyData(ulong steamIDLobby,string pchKey) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_DeleteLobbyData(m_pSteamMatchmaking,steamIDLobby,pchKey); - return result; -} -public override string GetLobbyMemberData(ulong steamIDLobby,ulong steamIDUser,string pchKey) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetLobbyMemberData(m_pSteamMatchmaking,steamIDLobby,steamIDUser,pchKey); - return (string) Marshal.PtrToStructure(result, typeof(string)); -} -public override void SetLobbyMemberData(ulong steamIDLobby,string pchKey,string pchValue) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmaking_SetLobbyMemberData(m_pSteamMatchmaking,steamIDLobby,pchKey,pchValue); -} -public override bool SendLobbyChatMsg(ulong steamIDLobby,IntPtr pvMsgBody,int cubMsgBody) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_SendLobbyChatMsg(m_pSteamMatchmaking,steamIDLobby,pvMsgBody,cubMsgBody); - return result; -} -public override int GetLobbyChatEntry(ulong steamIDLobby,int iChatID,out CSteamID pSteamIDUser,IntPtr pvData,int cubData,ref uint peChatEntryType) -{ - CheckIfUsable(); - pSteamIDUser = new CSteamID(); - peChatEntryType = 0; - int result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetLobbyChatEntry(m_pSteamMatchmaking,steamIDLobby,iChatID,ref pSteamIDUser,pvData,cubData,ref peChatEntryType); - return result; -} -public override bool RequestLobbyData(ulong steamIDLobby) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_RequestLobbyData(m_pSteamMatchmaking,steamIDLobby); - return result; -} -public override void SetLobbyGameServer(ulong steamIDLobby,uint unGameServerIP,char unGameServerPort,ulong steamIDGameServer) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmaking_SetLobbyGameServer(m_pSteamMatchmaking,steamIDLobby,unGameServerIP,unGameServerPort,steamIDGameServer); -} -public override bool GetLobbyGameServer(ulong steamIDLobby,ref uint punGameServerIP,ref char punGameServerPort,out CSteamID psteamIDGameServer) -{ - CheckIfUsable(); - punGameServerIP = 0; - punGameServerPort = (char) 0; - psteamIDGameServer = new CSteamID(); - bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetLobbyGameServer(m_pSteamMatchmaking,steamIDLobby,ref punGameServerIP,ref punGameServerPort,ref psteamIDGameServer); - return result; -} -public override bool SetLobbyMemberLimit(ulong steamIDLobby,int cMaxMembers) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_SetLobbyMemberLimit(m_pSteamMatchmaking,steamIDLobby,cMaxMembers); - return result; -} -public override int GetLobbyMemberLimit(ulong steamIDLobby) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetLobbyMemberLimit(m_pSteamMatchmaking,steamIDLobby); - return result; -} -public override bool SetLobbyType(ulong steamIDLobby,uint eLobbyType) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_SetLobbyType(m_pSteamMatchmaking,steamIDLobby,eLobbyType); - return result; -} -public override bool SetLobbyJoinable(ulong steamIDLobby,bool bLobbyJoinable) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_SetLobbyJoinable(m_pSteamMatchmaking,steamIDLobby,bLobbyJoinable); - return result; -} -public override ulong GetLobbyOwner(ulong steamIDLobby) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetLobbyOwner(m_pSteamMatchmaking,steamIDLobby); - return result; -} -public override bool SetLobbyOwner(ulong steamIDLobby,ulong steamIDNewOwner) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_SetLobbyOwner(m_pSteamMatchmaking,steamIDLobby,steamIDNewOwner); - return result; -} -public override bool SetLinkedLobby(ulong steamIDLobby,ulong steamIDLobbyDependent) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_SetLinkedLobby(m_pSteamMatchmaking,steamIDLobby,steamIDLobbyDependent); - return result; -} -} - - -public class CSteamMatchmakingServerListResponse : ISteamMatchmakingServerListResponse -{ -public CSteamMatchmakingServerListResponse(IntPtr SteamMatchmakingServerListResponse) -{ - m_pSteamMatchmakingServerListResponse = SteamMatchmakingServerListResponse; -} -IntPtr m_pSteamMatchmakingServerListResponse; - -public override IntPtr GetIntPtr() { return m_pSteamMatchmakingServerListResponse; } - -private void CheckIfUsable() -{ - if (m_pSteamMatchmakingServerListResponse == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override void ServerResponded(uint hRequest,int iServer) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmakingServerListResponse_ServerResponded(m_pSteamMatchmakingServerListResponse,hRequest,iServer); -} -public override void ServerFailedToRespond(uint hRequest,int iServer) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmakingServerListResponse_ServerFailedToRespond(m_pSteamMatchmakingServerListResponse,hRequest,iServer); -} -public override void RefreshComplete(uint hRequest,uint response) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmakingServerListResponse_RefreshComplete(m_pSteamMatchmakingServerListResponse,hRequest,response); -} -} - - -public class CSteamMatchmakingPingResponse : ISteamMatchmakingPingResponse -{ -public CSteamMatchmakingPingResponse(IntPtr SteamMatchmakingPingResponse) -{ - m_pSteamMatchmakingPingResponse = SteamMatchmakingPingResponse; -} -IntPtr m_pSteamMatchmakingPingResponse; - -public override IntPtr GetIntPtr() { return m_pSteamMatchmakingPingResponse; } - -private void CheckIfUsable() -{ - if (m_pSteamMatchmakingPingResponse == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override void ServerResponded(IntPtr server) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmakingPingResponse_ServerResponded(m_pSteamMatchmakingPingResponse,server); -} -public override void ServerFailedToRespond() -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmakingPingResponse_ServerFailedToRespond(m_pSteamMatchmakingPingResponse); -} -} - - -public class CSteamMatchmakingPlayersResponse : ISteamMatchmakingPlayersResponse -{ -public CSteamMatchmakingPlayersResponse(IntPtr SteamMatchmakingPlayersResponse) -{ - m_pSteamMatchmakingPlayersResponse = SteamMatchmakingPlayersResponse; -} -IntPtr m_pSteamMatchmakingPlayersResponse; - -public override IntPtr GetIntPtr() { return m_pSteamMatchmakingPlayersResponse; } - -private void CheckIfUsable() -{ - if (m_pSteamMatchmakingPlayersResponse == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override void AddPlayerToList(string pchName,int nScore,float flTimePlayed) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmakingPlayersResponse_AddPlayerToList(m_pSteamMatchmakingPlayersResponse,pchName,nScore,flTimePlayed); -} -public override void PlayersFailedToRespond() -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmakingPlayersResponse_PlayersFailedToRespond(m_pSteamMatchmakingPlayersResponse); -} -public override void PlayersRefreshComplete() -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmakingPlayersResponse_PlayersRefreshComplete(m_pSteamMatchmakingPlayersResponse); -} -} - - -public class CSteamMatchmakingRulesResponse : ISteamMatchmakingRulesResponse -{ -public CSteamMatchmakingRulesResponse(IntPtr SteamMatchmakingRulesResponse) -{ - m_pSteamMatchmakingRulesResponse = SteamMatchmakingRulesResponse; -} -IntPtr m_pSteamMatchmakingRulesResponse; - -public override IntPtr GetIntPtr() { return m_pSteamMatchmakingRulesResponse; } - -private void CheckIfUsable() -{ - if (m_pSteamMatchmakingRulesResponse == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override void RulesResponded(string pchRule,string pchValue) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmakingRulesResponse_RulesResponded(m_pSteamMatchmakingRulesResponse,pchRule,pchValue); -} -public override void RulesFailedToRespond() -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmakingRulesResponse_RulesFailedToRespond(m_pSteamMatchmakingRulesResponse); -} -public override void RulesRefreshComplete() -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmakingRulesResponse_RulesRefreshComplete(m_pSteamMatchmakingRulesResponse); -} -} - - -public class CSteamMatchmakingServers : ISteamMatchmakingServers -{ -public CSteamMatchmakingServers(IntPtr SteamMatchmakingServers) -{ - m_pSteamMatchmakingServers = SteamMatchmakingServers; -} -IntPtr m_pSteamMatchmakingServers; - -public override IntPtr GetIntPtr() { return m_pSteamMatchmakingServers; } - -private void CheckIfUsable() -{ - if (m_pSteamMatchmakingServers == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override uint RequestInternetServerList(uint iApp,MatchMakingKeyValuePair_t [] ppchFilters,ISteamMatchmakingServerListResponse pRequestServersResponse) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_RequestInternetServerList(m_pSteamMatchmakingServers,iApp,ppchFilters,(uint) ppchFilters.Length,pRequestServersResponse.GetIntPtr()); - return result; -} -public override uint RequestLANServerList(uint iApp,ISteamMatchmakingServerListResponse pRequestServersResponse) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_RequestLANServerList(m_pSteamMatchmakingServers,iApp,pRequestServersResponse.GetIntPtr()); - return result; -} -public override uint RequestFriendsServerList(uint iApp,MatchMakingKeyValuePair_t [] ppchFilters,ISteamMatchmakingServerListResponse pRequestServersResponse) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_RequestFriendsServerList(m_pSteamMatchmakingServers,iApp,ppchFilters,(uint) ppchFilters.Length,pRequestServersResponse.GetIntPtr()); - return result; -} -public override uint RequestFavoritesServerList(uint iApp,MatchMakingKeyValuePair_t [] ppchFilters,ISteamMatchmakingServerListResponse pRequestServersResponse) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_RequestFavoritesServerList(m_pSteamMatchmakingServers,iApp,ppchFilters,(uint) ppchFilters.Length,pRequestServersResponse.GetIntPtr()); - return result; -} -public override uint RequestHistoryServerList(uint iApp,MatchMakingKeyValuePair_t [] ppchFilters,ISteamMatchmakingServerListResponse pRequestServersResponse) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_RequestHistoryServerList(m_pSteamMatchmakingServers,iApp,ppchFilters,(uint) ppchFilters.Length,pRequestServersResponse.GetIntPtr()); - return result; -} -public override uint RequestSpectatorServerList(uint iApp,MatchMakingKeyValuePair_t [] ppchFilters,ISteamMatchmakingServerListResponse pRequestServersResponse) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_RequestSpectatorServerList(m_pSteamMatchmakingServers,iApp,ppchFilters,(uint) ppchFilters.Length,pRequestServersResponse.GetIntPtr()); - return result; -} -public override void ReleaseRequest(uint hServerListRequest) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_ReleaseRequest(m_pSteamMatchmakingServers,hServerListRequest); -} -public override gameserveritem_t GetServerDetails(uint hRequest,int iServer) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_GetServerDetails(m_pSteamMatchmakingServers,hRequest,iServer); - return (gameserveritem_t) Marshal.PtrToStructure(result, typeof(gameserveritem_t)); -} -public override void CancelQuery(uint hRequest) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_CancelQuery(m_pSteamMatchmakingServers,hRequest); -} -public override void RefreshQuery(uint hRequest) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_RefreshQuery(m_pSteamMatchmakingServers,hRequest); -} -public override bool IsRefreshing(uint hRequest) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_IsRefreshing(m_pSteamMatchmakingServers,hRequest); - return result; -} -public override int GetServerCount(uint hRequest) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_GetServerCount(m_pSteamMatchmakingServers,hRequest); - return result; -} -public override void RefreshServer(uint hRequest,int iServer) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_RefreshServer(m_pSteamMatchmakingServers,hRequest,iServer); -} -public override uint PingServer(uint unIP,char usPort,ISteamMatchmakingPingResponse pRequestServersResponse) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_PingServer(m_pSteamMatchmakingServers,unIP,usPort,pRequestServersResponse.GetIntPtr()); - return result; -} -public override uint PlayerDetails(uint unIP,char usPort,ISteamMatchmakingPlayersResponse pRequestServersResponse) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_PlayerDetails(m_pSteamMatchmakingServers,unIP,usPort,pRequestServersResponse.GetIntPtr()); - return result; -} -public override uint ServerRules(uint unIP,char usPort,ISteamMatchmakingRulesResponse pRequestServersResponse) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_ServerRules(m_pSteamMatchmakingServers,unIP,usPort,pRequestServersResponse.GetIntPtr()); - return result; -} -public override void CancelServerQuery(uint hServerQuery) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_CancelServerQuery(m_pSteamMatchmakingServers,hServerQuery); -} -} - - -public class CSteamRemoteStorage : ISteamRemoteStorage -{ -public CSteamRemoteStorage(IntPtr SteamRemoteStorage) -{ - m_pSteamRemoteStorage = SteamRemoteStorage; -} -IntPtr m_pSteamRemoteStorage; - -public override IntPtr GetIntPtr() { return m_pSteamRemoteStorage; } - -private void CheckIfUsable() -{ - if (m_pSteamRemoteStorage == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override bool FileWrite(string pchFile,IntPtr pvData,int cubData) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileWrite(m_pSteamRemoteStorage,pchFile,pvData,cubData); - return result; -} -public override int FileRead(string pchFile,IntPtr pvData,int cubDataToRead) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileRead(m_pSteamRemoteStorage,pchFile,pvData,cubDataToRead); - return result; -} -public override ulong FileWriteAsync(string pchFile,IntPtr pvData,uint cubData) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileWriteAsync(m_pSteamRemoteStorage,pchFile,pvData,cubData); - return result; -} -public override ulong FileReadAsync(string pchFile,uint nOffset,uint cubToRead) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileReadAsync(m_pSteamRemoteStorage,pchFile,nOffset,cubToRead); - return result; -} -public override bool FileReadAsyncComplete(ulong hReadCall,IntPtr pvBuffer,uint cubToRead) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileReadAsyncComplete(m_pSteamRemoteStorage,hReadCall,pvBuffer,cubToRead); - return result; -} -public override bool FileForget(string pchFile) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileForget(m_pSteamRemoteStorage,pchFile); - return result; -} -public override bool FileDelete(string pchFile) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileDelete(m_pSteamRemoteStorage,pchFile); - return result; -} -public override ulong FileShare(string pchFile) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileShare(m_pSteamRemoteStorage,pchFile); - return result; -} -public override bool SetSyncPlatforms(string pchFile,uint eRemoteStoragePlatform) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_SetSyncPlatforms(m_pSteamRemoteStorage,pchFile,eRemoteStoragePlatform); - return result; -} -public override ulong FileWriteStreamOpen(string pchFile) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileWriteStreamOpen(m_pSteamRemoteStorage,pchFile); - return result; -} -public override bool FileWriteStreamWriteChunk(ulong writeHandle,IntPtr pvData,int cubData) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileWriteStreamWriteChunk(m_pSteamRemoteStorage,writeHandle,pvData,cubData); - return result; -} -public override bool FileWriteStreamClose(ulong writeHandle) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileWriteStreamClose(m_pSteamRemoteStorage,writeHandle); - return result; -} -public override bool FileWriteStreamCancel(ulong writeHandle) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileWriteStreamCancel(m_pSteamRemoteStorage,writeHandle); - return result; -} -public override bool FileExists(string pchFile) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileExists(m_pSteamRemoteStorage,pchFile); - return result; -} -public override bool FilePersisted(string pchFile) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FilePersisted(m_pSteamRemoteStorage,pchFile); - return result; -} -public override int GetFileSize(string pchFile) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetFileSize(m_pSteamRemoteStorage,pchFile); - return result; -} -public override long GetFileTimestamp(string pchFile) -{ - CheckIfUsable(); - long result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetFileTimestamp(m_pSteamRemoteStorage,pchFile); - return result; -} -public override uint GetSyncPlatforms(string pchFile) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetSyncPlatforms(m_pSteamRemoteStorage,pchFile); - return result; -} -public override int GetFileCount() -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetFileCount(m_pSteamRemoteStorage); - return result; -} -public override string GetFileNameAndSize(int iFile,ref int pnFileSizeInBytes) -{ - CheckIfUsable(); - pnFileSizeInBytes = 0; - IntPtr result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetFileNameAndSize(m_pSteamRemoteStorage,iFile,ref pnFileSizeInBytes); - return (string) Marshal.PtrToStructure(result, typeof(string)); -} -public override bool GetQuota(ref int pnTotalBytes,ref int puAvailableBytes) -{ - CheckIfUsable(); - pnTotalBytes = 0; - puAvailableBytes = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetQuota(m_pSteamRemoteStorage,ref pnTotalBytes,ref puAvailableBytes); - return result; -} -public override bool IsCloudEnabledForAccount() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_IsCloudEnabledForAccount(m_pSteamRemoteStorage); - return result; -} -public override bool IsCloudEnabledForApp() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_IsCloudEnabledForApp(m_pSteamRemoteStorage); - return result; -} -public override void SetCloudEnabledForApp(bool bEnabled) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamRemoteStorage_SetCloudEnabledForApp(m_pSteamRemoteStorage,bEnabled); -} -public override ulong UGCDownload(ulong hContent,uint unPriority) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_UGCDownload(m_pSteamRemoteStorage,hContent,unPriority); - return result; -} -public override bool GetUGCDownloadProgress(ulong hContent,ref int pnBytesDownloaded,ref int pnBytesExpected) -{ - CheckIfUsable(); - pnBytesDownloaded = 0; - pnBytesExpected = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetUGCDownloadProgress(m_pSteamRemoteStorage,hContent,ref pnBytesDownloaded,ref pnBytesExpected); - return result; -} -public override bool GetUGCDetails(ulong hContent,ref uint pnAppID,string ppchName,ref int pnFileSizeInBytes,out CSteamID pSteamIDOwner) -{ - CheckIfUsable(); - pnAppID = 0; - ppchName = ""; - pnFileSizeInBytes = 0; - pSteamIDOwner = new CSteamID(); - bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetUGCDetails(m_pSteamRemoteStorage,hContent,ref pnAppID,ppchName,ref pnFileSizeInBytes,ref pSteamIDOwner); - return result; -} -public override int UGCRead(ulong hContent,IntPtr pvData,int cubDataToRead,uint cOffset,uint eAction) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_UGCRead(m_pSteamRemoteStorage,hContent,pvData,cubDataToRead,cOffset,eAction); - return result; -} -public override int GetCachedUGCCount() -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetCachedUGCCount(m_pSteamRemoteStorage); - return result; -} -public override ulong GetCachedUGCHandle(int iCachedContent) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetCachedUGCHandle(m_pSteamRemoteStorage,iCachedContent); - return result; -} -public override ulong PublishWorkshopFile(string pchFile,string pchPreviewFile,uint nConsumerAppId,string pchTitle,string pchDescription,uint eVisibility,ref SteamParamStringArray_t pTags,uint eWorkshopFileType) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_PublishWorkshopFile(m_pSteamRemoteStorage,pchFile,pchPreviewFile,nConsumerAppId,pchTitle,pchDescription,eVisibility,ref pTags,eWorkshopFileType); - return result; -} -public override ulong CreatePublishedFileUpdateRequest(ulong unPublishedFileId) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_CreatePublishedFileUpdateRequest(m_pSteamRemoteStorage,unPublishedFileId); - return result; -} -public override bool UpdatePublishedFileFile(ulong updateHandle,string pchFile) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileFile(m_pSteamRemoteStorage,updateHandle,pchFile); - return result; -} -public override bool UpdatePublishedFilePreviewFile(ulong updateHandle,string pchPreviewFile) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_UpdatePublishedFilePreviewFile(m_pSteamRemoteStorage,updateHandle,pchPreviewFile); - return result; -} -public override bool UpdatePublishedFileTitle(ulong updateHandle,string pchTitle) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTitle(m_pSteamRemoteStorage,updateHandle,pchTitle); - return result; -} -public override bool UpdatePublishedFileDescription(ulong updateHandle,string pchDescription) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileDescription(m_pSteamRemoteStorage,updateHandle,pchDescription); - return result; -} -public override bool UpdatePublishedFileVisibility(ulong updateHandle,uint eVisibility) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileVisibility(m_pSteamRemoteStorage,updateHandle,eVisibility); - return result; -} -public override bool UpdatePublishedFileTags(ulong updateHandle,ref SteamParamStringArray_t pTags) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTags(m_pSteamRemoteStorage,updateHandle,ref pTags); - return result; -} -public override ulong CommitPublishedFileUpdate(ulong updateHandle) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_CommitPublishedFileUpdate(m_pSteamRemoteStorage,updateHandle); - return result; -} -public override ulong GetPublishedFileDetails(ulong unPublishedFileId,uint unMaxSecondsOld) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetPublishedFileDetails(m_pSteamRemoteStorage,unPublishedFileId,unMaxSecondsOld); - return result; -} -public override ulong DeletePublishedFile(ulong unPublishedFileId) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_DeletePublishedFile(m_pSteamRemoteStorage,unPublishedFileId); - return result; -} -public override ulong EnumerateUserPublishedFiles(uint unStartIndex) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_EnumerateUserPublishedFiles(m_pSteamRemoteStorage,unStartIndex); - return result; -} -public override ulong SubscribePublishedFile(ulong unPublishedFileId) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_SubscribePublishedFile(m_pSteamRemoteStorage,unPublishedFileId); - return result; -} -public override ulong EnumerateUserSubscribedFiles(uint unStartIndex) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_EnumerateUserSubscribedFiles(m_pSteamRemoteStorage,unStartIndex); - return result; -} -public override ulong UnsubscribePublishedFile(ulong unPublishedFileId) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_UnsubscribePublishedFile(m_pSteamRemoteStorage,unPublishedFileId); - return result; -} -public override bool UpdatePublishedFileSetChangeDescription(ulong updateHandle,string pchChangeDescription) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription(m_pSteamRemoteStorage,updateHandle,pchChangeDescription); - return result; -} -public override ulong GetPublishedItemVoteDetails(ulong unPublishedFileId) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetPublishedItemVoteDetails(m_pSteamRemoteStorage,unPublishedFileId); - return result; -} -public override ulong UpdateUserPublishedItemVote(ulong unPublishedFileId,bool bVoteUp) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_UpdateUserPublishedItemVote(m_pSteamRemoteStorage,unPublishedFileId,bVoteUp); - return result; -} -public override ulong GetUserPublishedItemVoteDetails(ulong unPublishedFileId) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetUserPublishedItemVoteDetails(m_pSteamRemoteStorage,unPublishedFileId); - return result; -} -public override ulong EnumerateUserSharedWorkshopFiles(ulong steamId,uint unStartIndex,ref SteamParamStringArray_t pRequiredTags,ref SteamParamStringArray_t pExcludedTags) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles(m_pSteamRemoteStorage,steamId,unStartIndex,ref pRequiredTags,ref pExcludedTags); - return result; -} -public override ulong PublishVideo(uint eVideoProvider,string pchVideoAccount,string pchVideoIdentifier,string pchPreviewFile,uint nConsumerAppId,string pchTitle,string pchDescription,uint eVisibility,ref SteamParamStringArray_t pTags) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_PublishVideo(m_pSteamRemoteStorage,eVideoProvider,pchVideoAccount,pchVideoIdentifier,pchPreviewFile,nConsumerAppId,pchTitle,pchDescription,eVisibility,ref pTags); - return result; -} -public override ulong SetUserPublishedFileAction(ulong unPublishedFileId,uint eAction) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_SetUserPublishedFileAction(m_pSteamRemoteStorage,unPublishedFileId,eAction); - return result; -} -public override ulong EnumeratePublishedFilesByUserAction(uint eAction,uint unStartIndex) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_EnumeratePublishedFilesByUserAction(m_pSteamRemoteStorage,eAction,unStartIndex); - return result; -} -public override ulong EnumeratePublishedWorkshopFiles(uint eEnumerationType,uint unStartIndex,uint unCount,uint unDays,ref SteamParamStringArray_t pTags,ref SteamParamStringArray_t pUserTags) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_EnumeratePublishedWorkshopFiles(m_pSteamRemoteStorage,eEnumerationType,unStartIndex,unCount,unDays,ref pTags,ref pUserTags); - return result; -} -public override ulong UGCDownloadToLocation(ulong hContent,string pchLocation,uint unPriority) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_UGCDownloadToLocation(m_pSteamRemoteStorage,hContent,pchLocation,unPriority); - return result; -} -} - - -public class CSteamUserStats : ISteamUserStats -{ -public CSteamUserStats(IntPtr SteamUserStats) -{ - m_pSteamUserStats = SteamUserStats; -} -IntPtr m_pSteamUserStats; - -public override IntPtr GetIntPtr() { return m_pSteamUserStats; } - -private void CheckIfUsable() -{ - if (m_pSteamUserStats == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override bool RequestCurrentStats() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_RequestCurrentStats(m_pSteamUserStats); - return result; -} -public override bool GetStat(string pchName,ref int pData) -{ - CheckIfUsable(); - pData = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetStat(m_pSteamUserStats,pchName,ref pData); - return result; -} -public override bool GetStat0(string pchName,ref float pData) -{ - CheckIfUsable(); - pData = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetStat0(m_pSteamUserStats,pchName,ref pData); - return result; -} -public override bool SetStat(string pchName,int nData) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_SetStat(m_pSteamUserStats,pchName,nData); - return result; -} -public override bool SetStat0(string pchName,float fData) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_SetStat0(m_pSteamUserStats,pchName,fData); - return result; -} -public override bool UpdateAvgRateStat(string pchName,float flCountThisSession,double dSessionLength) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_UpdateAvgRateStat(m_pSteamUserStats,pchName,flCountThisSession,dSessionLength); - return result; -} -public override bool GetAchievement(string pchName,ref bool pbAchieved) -{ - CheckIfUsable(); - pbAchieved = false; - bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetAchievement(m_pSteamUserStats,pchName,ref pbAchieved); - return result; -} -public override bool SetAchievement(string pchName) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_SetAchievement(m_pSteamUserStats,pchName); - return result; -} -public override bool ClearAchievement(string pchName) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_ClearAchievement(m_pSteamUserStats,pchName); - return result; -} -public override bool GetAchievementAndUnlockTime(string pchName,ref bool pbAchieved,ref uint punUnlockTime) -{ - CheckIfUsable(); - pbAchieved = false; - punUnlockTime = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime(m_pSteamUserStats,pchName,ref pbAchieved,ref punUnlockTime); - return result; -} -public override bool StoreStats() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_StoreStats(m_pSteamUserStats); - return result; -} -public override int GetAchievementIcon(string pchName) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetAchievementIcon(m_pSteamUserStats,pchName); - return result; -} -public override string GetAchievementDisplayAttribute(string pchName,string pchKey) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute(m_pSteamUserStats,pchName,pchKey); - return (string) Marshal.PtrToStructure(result, typeof(string)); -} -public override bool IndicateAchievementProgress(string pchName,uint nCurProgress,uint nMaxProgress) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_IndicateAchievementProgress(m_pSteamUserStats,pchName,nCurProgress,nMaxProgress); - return result; -} -public override uint GetNumAchievements() -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetNumAchievements(m_pSteamUserStats); - return result; -} -public override string GetAchievementName(uint iAchievement) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetAchievementName(m_pSteamUserStats,iAchievement); - return (string) Marshal.PtrToStructure(result, typeof(string)); -} -public override ulong RequestUserStats(ulong steamIDUser) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUserStats_RequestUserStats(m_pSteamUserStats,steamIDUser); - return result; -} -public override bool GetUserStat(ulong steamIDUser,string pchName,ref int pData) -{ - CheckIfUsable(); - pData = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetUserStat(m_pSteamUserStats,steamIDUser,pchName,ref pData); - return result; -} -public override bool GetUserStat0(ulong steamIDUser,string pchName,ref float pData) -{ - CheckIfUsable(); - pData = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetUserStat0(m_pSteamUserStats,steamIDUser,pchName,ref pData); - return result; -} -public override bool GetUserAchievement(ulong steamIDUser,string pchName,ref bool pbAchieved) -{ - CheckIfUsable(); - pbAchieved = false; - bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetUserAchievement(m_pSteamUserStats,steamIDUser,pchName,ref pbAchieved); - return result; -} -public override bool GetUserAchievementAndUnlockTime(ulong steamIDUser,string pchName,ref bool pbAchieved,ref uint punUnlockTime) -{ - CheckIfUsable(); - pbAchieved = false; - punUnlockTime = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime(m_pSteamUserStats,steamIDUser,pchName,ref pbAchieved,ref punUnlockTime); - return result; -} -public override bool ResetAllStats(bool bAchievementsToo) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_ResetAllStats(m_pSteamUserStats,bAchievementsToo); - return result; -} -public override ulong FindOrCreateLeaderboard(string pchLeaderboardName,uint eLeaderboardSortMethod,uint eLeaderboardDisplayType) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUserStats_FindOrCreateLeaderboard(m_pSteamUserStats,pchLeaderboardName,eLeaderboardSortMethod,eLeaderboardDisplayType); - return result; -} -public override ulong FindLeaderboard(string pchLeaderboardName) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUserStats_FindLeaderboard(m_pSteamUserStats,pchLeaderboardName); - return result; -} -public override string GetLeaderboardName(ulong hSteamLeaderboard) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetLeaderboardName(m_pSteamUserStats,hSteamLeaderboard); - return (string) Marshal.PtrToStructure(result, typeof(string)); -} -public override int GetLeaderboardEntryCount(ulong hSteamLeaderboard) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetLeaderboardEntryCount(m_pSteamUserStats,hSteamLeaderboard); - return result; -} -public override uint GetLeaderboardSortMethod(ulong hSteamLeaderboard) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetLeaderboardSortMethod(m_pSteamUserStats,hSteamLeaderboard); - return result; -} -public override uint GetLeaderboardDisplayType(ulong hSteamLeaderboard) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetLeaderboardDisplayType(m_pSteamUserStats,hSteamLeaderboard); - return result; -} -public override ulong DownloadLeaderboardEntries(ulong hSteamLeaderboard,uint eLeaderboardDataRequest,int nRangeStart,int nRangeEnd) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUserStats_DownloadLeaderboardEntries(m_pSteamUserStats,hSteamLeaderboard,eLeaderboardDataRequest,nRangeStart,nRangeEnd); - return result; -} -public override ulong DownloadLeaderboardEntriesForUsers(ulong hSteamLeaderboard,CSteamID [] prgUsers) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUserStats_DownloadLeaderboardEntriesForUsers(m_pSteamUserStats,hSteamLeaderboard,prgUsers,(int) prgUsers.Length); - return result; -} -public override bool GetDownloadedLeaderboardEntry(ulong hSteamLeaderboardEntries,int index,ref LeaderboardEntry_t pLeaderboardEntry,ref int pDetails,int cDetailsMax) -{ - CheckIfUsable(); - pDetails = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetDownloadedLeaderboardEntry(m_pSteamUserStats,hSteamLeaderboardEntries,index,ref pLeaderboardEntry,ref pDetails,cDetailsMax); - return result; -} -public override ulong UploadLeaderboardScore(ulong hSteamLeaderboard,uint eLeaderboardUploadScoreMethod,int nScore,ref int pScoreDetails,int cScoreDetailsCount) -{ - CheckIfUsable(); - pScoreDetails = 0; - ulong result = NativeEntrypoints.SteamAPI_ISteamUserStats_UploadLeaderboardScore(m_pSteamUserStats,hSteamLeaderboard,eLeaderboardUploadScoreMethod,nScore,ref pScoreDetails,cScoreDetailsCount); - return result; -} -public override ulong AttachLeaderboardUGC(ulong hSteamLeaderboard,ulong hUGC) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUserStats_AttachLeaderboardUGC(m_pSteamUserStats,hSteamLeaderboard,hUGC); - return result; -} -public override ulong GetNumberOfCurrentPlayers() -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers(m_pSteamUserStats); - return result; -} -public override ulong RequestGlobalAchievementPercentages() -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages(m_pSteamUserStats); - return result; -} -public override int GetMostAchievedAchievementInfo(string pchName,uint unNameBufLen,ref float pflPercent,ref bool pbAchieved) -{ - CheckIfUsable(); - pflPercent = 0; - pbAchieved = false; - int result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo(m_pSteamUserStats,pchName,unNameBufLen,ref pflPercent,ref pbAchieved); - return result; -} -public override int GetNextMostAchievedAchievementInfo(int iIteratorPrevious,string pchName,uint unNameBufLen,ref float pflPercent,ref bool pbAchieved) -{ - CheckIfUsable(); - pflPercent = 0; - pbAchieved = false; - int result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo(m_pSteamUserStats,iIteratorPrevious,pchName,unNameBufLen,ref pflPercent,ref pbAchieved); - return result; -} -public override bool GetAchievementAchievedPercent(string pchName,ref float pflPercent) -{ - CheckIfUsable(); - pflPercent = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetAchievementAchievedPercent(m_pSteamUserStats,pchName,ref pflPercent); - return result; -} -public override ulong RequestGlobalStats(int nHistoryDays) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUserStats_RequestGlobalStats(m_pSteamUserStats,nHistoryDays); - return result; -} -public override bool GetGlobalStat(string pchStatName,ref long pData) -{ - CheckIfUsable(); - pData = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetGlobalStat(m_pSteamUserStats,pchStatName,ref pData); - return result; -} -public override bool GetGlobalStat0(string pchStatName,ref double pData) -{ - CheckIfUsable(); - pData = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetGlobalStat0(m_pSteamUserStats,pchStatName,ref pData); - return result; -} -public override int GetGlobalStatHistory(string pchStatName,long [] pData) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetGlobalStatHistory(m_pSteamUserStats,pchStatName,pData,(uint) pData.Length); - return result; -} -public override int GetGlobalStatHistory0(string pchStatName,double [] pData) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetGlobalStatHistory0(m_pSteamUserStats,pchStatName,pData,(uint) pData.Length); - return result; -} -} - - -public class CSteamApps : ISteamApps -{ -public CSteamApps(IntPtr SteamApps) -{ - m_pSteamApps = SteamApps; -} -IntPtr m_pSteamApps; - -public override IntPtr GetIntPtr() { return m_pSteamApps; } - -private void CheckIfUsable() -{ - if (m_pSteamApps == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override bool BIsSubscribed() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamApps_BIsSubscribed(m_pSteamApps); - return result; -} -public override bool BIsLowViolence() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamApps_BIsLowViolence(m_pSteamApps); - return result; -} -public override bool BIsCybercafe() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamApps_BIsCybercafe(m_pSteamApps); - return result; -} -public override bool BIsVACBanned() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamApps_BIsVACBanned(m_pSteamApps); - return result; -} -public override string GetCurrentGameLanguage() -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamApps_GetCurrentGameLanguage(m_pSteamApps); - return (string) Marshal.PtrToStructure(result, typeof(string)); -} -public override string GetAvailableGameLanguages() -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamApps_GetAvailableGameLanguages(m_pSteamApps); - return (string) Marshal.PtrToStructure(result, typeof(string)); -} -public override bool BIsSubscribedApp(uint appID) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamApps_BIsSubscribedApp(m_pSteamApps,appID); - return result; -} -public override bool BIsDlcInstalled(uint appID) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamApps_BIsDlcInstalled(m_pSteamApps,appID); - return result; -} -public override uint GetEarliestPurchaseUnixTime(uint nAppID) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime(m_pSteamApps,nAppID); - return result; -} -public override bool BIsSubscribedFromFreeWeekend() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend(m_pSteamApps); - return result; -} -public override int GetDLCCount() -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamApps_GetDLCCount(m_pSteamApps); - return result; -} -public override bool BGetDLCDataByIndex(int iDLC,ref uint pAppID,ref bool pbAvailable,string pchName,int cchNameBufferSize) -{ - CheckIfUsable(); - pAppID = 0; - pbAvailable = false; - bool result = NativeEntrypoints.SteamAPI_ISteamApps_BGetDLCDataByIndex(m_pSteamApps,iDLC,ref pAppID,ref pbAvailable,pchName,cchNameBufferSize); - return result; -} -public override void InstallDLC(uint nAppID) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamApps_InstallDLC(m_pSteamApps,nAppID); -} -public override void UninstallDLC(uint nAppID) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamApps_UninstallDLC(m_pSteamApps,nAppID); -} -public override void RequestAppProofOfPurchaseKey(uint nAppID) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey(m_pSteamApps,nAppID); -} -public override bool GetCurrentBetaName(string pchName,int cchNameBufferSize) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamApps_GetCurrentBetaName(m_pSteamApps,pchName,cchNameBufferSize); - return result; -} -public override bool MarkContentCorrupt(bool bMissingFilesOnly) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamApps_MarkContentCorrupt(m_pSteamApps,bMissingFilesOnly); - return result; -} -public override uint GetInstalledDepots(uint appID,ref uint pvecDepots,uint cMaxDepots) -{ - CheckIfUsable(); - pvecDepots = 0; - uint result = NativeEntrypoints.SteamAPI_ISteamApps_GetInstalledDepots(m_pSteamApps,appID,ref pvecDepots,cMaxDepots); - return result; -} -public override uint GetAppInstallDir(uint appID,string pchFolder,uint cchFolderBufferSize) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamApps_GetAppInstallDir(m_pSteamApps,appID,pchFolder,cchFolderBufferSize); - return result; -} -public override bool BIsAppInstalled(uint appID) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamApps_BIsAppInstalled(m_pSteamApps,appID); - return result; -} -public override ulong GetAppOwner() -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamApps_GetAppOwner(m_pSteamApps); - return result; -} -public override string GetLaunchQueryParam(string pchKey) -{ - CheckIfUsable(); - IntPtr result = NativeEntrypoints.SteamAPI_ISteamApps_GetLaunchQueryParam(m_pSteamApps,pchKey); - return (string) Marshal.PtrToStructure(result, typeof(string)); -} -public override bool GetDlcDownloadProgress(uint nAppID,ref ulong punBytesDownloaded,ref ulong punBytesTotal) -{ - CheckIfUsable(); - punBytesDownloaded = 0; - punBytesTotal = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamApps_GetDlcDownloadProgress(m_pSteamApps,nAppID,ref punBytesDownloaded,ref punBytesTotal); - return result; -} -public override int GetAppBuildId() -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamApps_GetAppBuildId(m_pSteamApps); - return result; -} -} - - -public class CSteamNetworking : ISteamNetworking -{ -public CSteamNetworking(IntPtr SteamNetworking) -{ - m_pSteamNetworking = SteamNetworking; -} -IntPtr m_pSteamNetworking; - -public override IntPtr GetIntPtr() { return m_pSteamNetworking; } - -private void CheckIfUsable() -{ - if (m_pSteamNetworking == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override bool SendP2PPacket(ulong steamIDRemote,IntPtr pubData,uint cubData,uint eP2PSendType,int nChannel) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_SendP2PPacket(m_pSteamNetworking,steamIDRemote,pubData,cubData,eP2PSendType,nChannel); - return result; -} -public override bool IsP2PPacketAvailable(ref uint pcubMsgSize,int nChannel) -{ - CheckIfUsable(); - pcubMsgSize = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_IsP2PPacketAvailable(m_pSteamNetworking,ref pcubMsgSize,nChannel); - return result; -} -public override bool ReadP2PPacket(IntPtr pubDest,uint cubDest,ref uint pcubMsgSize,ref CSteamID psteamIDRemote,int nChannel) -{ - CheckIfUsable(); - pcubMsgSize = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_ReadP2PPacket(m_pSteamNetworking,pubDest,cubDest,ref pcubMsgSize,ref psteamIDRemote,nChannel); - return result; -} -public override bool AcceptP2PSessionWithUser(ulong steamIDRemote) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_AcceptP2PSessionWithUser(m_pSteamNetworking,steamIDRemote); - return result; -} -public override bool CloseP2PSessionWithUser(ulong steamIDRemote) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_CloseP2PSessionWithUser(m_pSteamNetworking,steamIDRemote); - return result; -} -public override bool CloseP2PChannelWithUser(ulong steamIDRemote,int nChannel) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_CloseP2PChannelWithUser(m_pSteamNetworking,steamIDRemote,nChannel); - return result; -} -public override bool GetP2PSessionState(ulong steamIDRemote,ref P2PSessionState_t pConnectionState) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_GetP2PSessionState(m_pSteamNetworking,steamIDRemote,ref pConnectionState); - return result; -} -public override bool AllowP2PPacketRelay(bool bAllow) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_AllowP2PPacketRelay(m_pSteamNetworking,bAllow); - return result; -} -public override uint CreateListenSocket(int nVirtualP2PPort,uint nIP,char nPort,bool bAllowUseOfPacketRelay) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamNetworking_CreateListenSocket(m_pSteamNetworking,nVirtualP2PPort,nIP,nPort,bAllowUseOfPacketRelay); - return result; -} -public override uint CreateP2PConnectionSocket(ulong steamIDTarget,int nVirtualPort,int nTimeoutSec,bool bAllowUseOfPacketRelay) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamNetworking_CreateP2PConnectionSocket(m_pSteamNetworking,steamIDTarget,nVirtualPort,nTimeoutSec,bAllowUseOfPacketRelay); - return result; -} -public override uint CreateConnectionSocket(uint nIP,char nPort,int nTimeoutSec) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamNetworking_CreateConnectionSocket(m_pSteamNetworking,nIP,nPort,nTimeoutSec); - return result; -} -public override bool DestroySocket(uint hSocket,bool bNotifyRemoteEnd) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_DestroySocket(m_pSteamNetworking,hSocket,bNotifyRemoteEnd); - return result; -} -public override bool DestroyListenSocket(uint hSocket,bool bNotifyRemoteEnd) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_DestroyListenSocket(m_pSteamNetworking,hSocket,bNotifyRemoteEnd); - return result; -} -public override bool SendDataOnSocket(uint hSocket,IntPtr pubData,uint cubData,bool bReliable) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_SendDataOnSocket(m_pSteamNetworking,hSocket,pubData,cubData,bReliable); - return result; -} -public override bool IsDataAvailableOnSocket(uint hSocket,ref uint pcubMsgSize) -{ - CheckIfUsable(); - pcubMsgSize = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_IsDataAvailableOnSocket(m_pSteamNetworking,hSocket,ref pcubMsgSize); - return result; -} -public override bool RetrieveDataFromSocket(uint hSocket,IntPtr pubDest,uint cubDest,ref uint pcubMsgSize) -{ - CheckIfUsable(); - pcubMsgSize = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_RetrieveDataFromSocket(m_pSteamNetworking,hSocket,pubDest,cubDest,ref pcubMsgSize); - return result; -} -public override bool IsDataAvailable(uint hListenSocket,ref uint pcubMsgSize,ref uint phSocket) -{ - CheckIfUsable(); - pcubMsgSize = 0; - phSocket = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_IsDataAvailable(m_pSteamNetworking,hListenSocket,ref pcubMsgSize,ref phSocket); - return result; -} -public override bool RetrieveData(uint hListenSocket,IntPtr pubDest,uint cubDest,ref uint pcubMsgSize,ref uint phSocket) -{ - CheckIfUsable(); - pcubMsgSize = 0; - phSocket = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_RetrieveData(m_pSteamNetworking,hListenSocket,pubDest,cubDest,ref pcubMsgSize,ref phSocket); - return result; -} -public override bool GetSocketInfo(uint hSocket,ref CSteamID pSteamIDRemote,ref int peSocketStatus,ref uint punIPRemote,ref char punPortRemote) -{ - CheckIfUsable(); - peSocketStatus = 0; - punIPRemote = 0; - punPortRemote = (char) 0; - bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_GetSocketInfo(m_pSteamNetworking,hSocket,ref pSteamIDRemote,ref peSocketStatus,ref punIPRemote,ref punPortRemote); - return result; -} -public override bool GetListenSocketInfo(uint hListenSocket,ref uint pnIP,ref char pnPort) -{ - CheckIfUsable(); - pnIP = 0; - pnPort = (char) 0; - bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_GetListenSocketInfo(m_pSteamNetworking,hListenSocket,ref pnIP,ref pnPort); - return result; -} -public override uint GetSocketConnectionType(uint hSocket) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamNetworking_GetSocketConnectionType(m_pSteamNetworking,hSocket); - return result; -} -public override int GetMaxPacketSize(uint hSocket) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamNetworking_GetMaxPacketSize(m_pSteamNetworking,hSocket); - return result; -} -} - - -public class CSteamScreenshots : ISteamScreenshots -{ -public CSteamScreenshots(IntPtr SteamScreenshots) -{ - m_pSteamScreenshots = SteamScreenshots; -} -IntPtr m_pSteamScreenshots; - -public override IntPtr GetIntPtr() { return m_pSteamScreenshots; } - -private void CheckIfUsable() -{ - if (m_pSteamScreenshots == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override uint WriteScreenshot(IntPtr pubRGB,uint cubRGB,int nWidth,int nHeight) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamScreenshots_WriteScreenshot(m_pSteamScreenshots,pubRGB,cubRGB,nWidth,nHeight); - return result; -} -public override uint AddScreenshotToLibrary(string pchFilename,string pchThumbnailFilename,int nWidth,int nHeight) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamScreenshots_AddScreenshotToLibrary(m_pSteamScreenshots,pchFilename,pchThumbnailFilename,nWidth,nHeight); - return result; -} -public override void TriggerScreenshot() -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamScreenshots_TriggerScreenshot(m_pSteamScreenshots); -} -public override void HookScreenshots(bool bHook) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamScreenshots_HookScreenshots(m_pSteamScreenshots,bHook); -} -public override bool SetLocation(uint hScreenshot,string pchLocation) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamScreenshots_SetLocation(m_pSteamScreenshots,hScreenshot,pchLocation); - return result; -} -public override bool TagUser(uint hScreenshot,ulong steamID) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamScreenshots_TagUser(m_pSteamScreenshots,hScreenshot,steamID); - return result; -} -public override bool TagPublishedFile(uint hScreenshot,ulong unPublishedFileID) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamScreenshots_TagPublishedFile(m_pSteamScreenshots,hScreenshot,unPublishedFileID); - return result; -} -} - - -public class CSteamMusic : ISteamMusic -{ -public CSteamMusic(IntPtr SteamMusic) -{ - m_pSteamMusic = SteamMusic; -} -IntPtr m_pSteamMusic; - -public override IntPtr GetIntPtr() { return m_pSteamMusic; } - -private void CheckIfUsable() -{ - if (m_pSteamMusic == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override bool BIsEnabled() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusic_BIsEnabled(m_pSteamMusic); - return result; -} -public override bool BIsPlaying() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusic_BIsPlaying(m_pSteamMusic); - return result; -} -public override int GetPlaybackStatus() -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamMusic_GetPlaybackStatus(m_pSteamMusic); - return result; -} -public override void Play() -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMusic_Play(m_pSteamMusic); -} -public override void Pause() -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMusic_Pause(m_pSteamMusic); -} -public override void PlayPrevious() -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMusic_PlayPrevious(m_pSteamMusic); -} -public override void PlayNext() -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMusic_PlayNext(m_pSteamMusic); -} -public override void SetVolume(float flVolume) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamMusic_SetVolume(m_pSteamMusic,flVolume); -} -public override float GetVolume() -{ - CheckIfUsable(); - float result = NativeEntrypoints.SteamAPI_ISteamMusic_GetVolume(m_pSteamMusic); - return result; -} -} - - -public class CSteamMusicRemote : ISteamMusicRemote -{ -public CSteamMusicRemote(IntPtr SteamMusicRemote) -{ - m_pSteamMusicRemote = SteamMusicRemote; -} -IntPtr m_pSteamMusicRemote; - -public override IntPtr GetIntPtr() { return m_pSteamMusicRemote; } - -private void CheckIfUsable() -{ - if (m_pSteamMusicRemote == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override bool RegisterSteamMusicRemote(string pchName) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_RegisterSteamMusicRemote(m_pSteamMusicRemote,pchName); - return result; -} -public override bool DeregisterSteamMusicRemote() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_DeregisterSteamMusicRemote(m_pSteamMusicRemote); - return result; -} -public override bool BIsCurrentMusicRemote() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_BIsCurrentMusicRemote(m_pSteamMusicRemote); - return result; -} -public override bool BActivationSuccess(bool bValue) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_BActivationSuccess(m_pSteamMusicRemote,bValue); - return result; -} -public override bool SetDisplayName(string pchDisplayName) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_SetDisplayName(m_pSteamMusicRemote,pchDisplayName); - return result; -} -public override bool SetPNGIcon_64x64(IntPtr pvBuffer,uint cbBufferLength) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_SetPNGIcon_64x64(m_pSteamMusicRemote,pvBuffer,cbBufferLength); - return result; -} -public override bool EnablePlayPrevious(bool bValue) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_EnablePlayPrevious(m_pSteamMusicRemote,bValue); - return result; -} -public override bool EnablePlayNext(bool bValue) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_EnablePlayNext(m_pSteamMusicRemote,bValue); - return result; -} -public override bool EnableShuffled(bool bValue) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_EnableShuffled(m_pSteamMusicRemote,bValue); - return result; -} -public override bool EnableLooped(bool bValue) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_EnableLooped(m_pSteamMusicRemote,bValue); - return result; -} -public override bool EnableQueue(bool bValue) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_EnableQueue(m_pSteamMusicRemote,bValue); - return result; -} -public override bool EnablePlaylists(bool bValue) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_EnablePlaylists(m_pSteamMusicRemote,bValue); - return result; -} -public override bool UpdatePlaybackStatus(int nStatus) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_UpdatePlaybackStatus(m_pSteamMusicRemote,nStatus); - return result; -} -public override bool UpdateShuffled(bool bValue) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_UpdateShuffled(m_pSteamMusicRemote,bValue); - return result; -} -public override bool UpdateLooped(bool bValue) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_UpdateLooped(m_pSteamMusicRemote,bValue); - return result; -} -public override bool UpdateVolume(float flValue) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_UpdateVolume(m_pSteamMusicRemote,flValue); - return result; -} -public override bool CurrentEntryWillChange() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_CurrentEntryWillChange(m_pSteamMusicRemote); - return result; -} -public override bool CurrentEntryIsAvailable(bool bAvailable) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_CurrentEntryIsAvailable(m_pSteamMusicRemote,bAvailable); - return result; -} -public override bool UpdateCurrentEntryText(string pchText) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_UpdateCurrentEntryText(m_pSteamMusicRemote,pchText); - return result; -} -public override bool UpdateCurrentEntryElapsedSeconds(int nValue) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds(m_pSteamMusicRemote,nValue); - return result; -} -public override bool UpdateCurrentEntryCoverArt(IntPtr pvBuffer,uint cbBufferLength) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_UpdateCurrentEntryCoverArt(m_pSteamMusicRemote,pvBuffer,cbBufferLength); - return result; -} -public override bool CurrentEntryDidChange() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_CurrentEntryDidChange(m_pSteamMusicRemote); - return result; -} -public override bool QueueWillChange() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_QueueWillChange(m_pSteamMusicRemote); - return result; -} -public override bool ResetQueueEntries() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_ResetQueueEntries(m_pSteamMusicRemote); - return result; -} -public override bool SetQueueEntry(int nID,int nPosition,string pchEntryText) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_SetQueueEntry(m_pSteamMusicRemote,nID,nPosition,pchEntryText); - return result; -} -public override bool SetCurrentQueueEntry(int nID) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_SetCurrentQueueEntry(m_pSteamMusicRemote,nID); - return result; -} -public override bool QueueDidChange() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_QueueDidChange(m_pSteamMusicRemote); - return result; -} -public override bool PlaylistWillChange() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_PlaylistWillChange(m_pSteamMusicRemote); - return result; -} -public override bool ResetPlaylistEntries() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_ResetPlaylistEntries(m_pSteamMusicRemote); - return result; -} -public override bool SetPlaylistEntry(int nID,int nPosition,string pchEntryText) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_SetPlaylistEntry(m_pSteamMusicRemote,nID,nPosition,pchEntryText); - return result; -} -public override bool SetCurrentPlaylistEntry(int nID) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_SetCurrentPlaylistEntry(m_pSteamMusicRemote,nID); - return result; -} -public override bool PlaylistDidChange() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_PlaylistDidChange(m_pSteamMusicRemote); - return result; -} -} - - -public class CSteamHTTP : ISteamHTTP -{ -public CSteamHTTP(IntPtr SteamHTTP) -{ - m_pSteamHTTP = SteamHTTP; -} -IntPtr m_pSteamHTTP; - -public override IntPtr GetIntPtr() { return m_pSteamHTTP; } - -private void CheckIfUsable() -{ - if (m_pSteamHTTP == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override uint CreateHTTPRequest(uint eHTTPRequestMethod,string pchAbsoluteURL) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamHTTP_CreateHTTPRequest(m_pSteamHTTP,eHTTPRequestMethod,pchAbsoluteURL); - return result; -} -public override bool SetHTTPRequestContextValue(uint hRequest,ulong ulContextValue) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_SetHTTPRequestContextValue(m_pSteamHTTP,hRequest,ulContextValue); - return result; -} -public override bool SetHTTPRequestNetworkActivityTimeout(uint hRequest,uint unTimeoutSeconds) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_SetHTTPRequestNetworkActivityTimeout(m_pSteamHTTP,hRequest,unTimeoutSeconds); - return result; -} -public override bool SetHTTPRequestHeaderValue(uint hRequest,string pchHeaderName,string pchHeaderValue) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_SetHTTPRequestHeaderValue(m_pSteamHTTP,hRequest,pchHeaderName,pchHeaderValue); - return result; -} -public override bool SetHTTPRequestGetOrPostParameter(uint hRequest,string pchParamName,string pchParamValue) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_SetHTTPRequestGetOrPostParameter(m_pSteamHTTP,hRequest,pchParamName,pchParamValue); - return result; -} -public override bool SendHTTPRequest(uint hRequest,ref ulong pCallHandle) -{ - CheckIfUsable(); - pCallHandle = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_SendHTTPRequest(m_pSteamHTTP,hRequest,ref pCallHandle); - return result; -} -public override bool SendHTTPRequestAndStreamResponse(uint hRequest,ref ulong pCallHandle) -{ - CheckIfUsable(); - pCallHandle = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_SendHTTPRequestAndStreamResponse(m_pSteamHTTP,hRequest,ref pCallHandle); - return result; -} -public override bool DeferHTTPRequest(uint hRequest) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_DeferHTTPRequest(m_pSteamHTTP,hRequest); - return result; -} -public override bool PrioritizeHTTPRequest(uint hRequest) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_PrioritizeHTTPRequest(m_pSteamHTTP,hRequest); - return result; -} -public override bool GetHTTPResponseHeaderSize(uint hRequest,string pchHeaderName,ref uint unResponseHeaderSize) -{ - CheckIfUsable(); - unResponseHeaderSize = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_GetHTTPResponseHeaderSize(m_pSteamHTTP,hRequest,pchHeaderName,ref unResponseHeaderSize); - return result; -} -public override bool GetHTTPResponseHeaderValue(uint hRequest,string pchHeaderName,IntPtr pHeaderValueBuffer,uint unBufferSize) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_GetHTTPResponseHeaderValue(m_pSteamHTTP,hRequest,pchHeaderName,pHeaderValueBuffer,unBufferSize); - return result; -} -public override bool GetHTTPResponseBodySize(uint hRequest,ref uint unBodySize) -{ - CheckIfUsable(); - unBodySize = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_GetHTTPResponseBodySize(m_pSteamHTTP,hRequest,ref unBodySize); - return result; -} -public override bool GetHTTPResponseBodyData(uint hRequest,IntPtr pBodyDataBuffer,uint unBufferSize) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_GetHTTPResponseBodyData(m_pSteamHTTP,hRequest,pBodyDataBuffer,unBufferSize); - return result; -} -public override bool GetHTTPStreamingResponseBodyData(uint hRequest,uint cOffset,IntPtr pBodyDataBuffer,uint unBufferSize) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_GetHTTPStreamingResponseBodyData(m_pSteamHTTP,hRequest,cOffset,pBodyDataBuffer,unBufferSize); - return result; -} -public override bool ReleaseHTTPRequest(uint hRequest) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_ReleaseHTTPRequest(m_pSteamHTTP,hRequest); - return result; -} -public override bool GetHTTPDownloadProgressPct(uint hRequest,ref float pflPercentOut) -{ - CheckIfUsable(); - pflPercentOut = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_GetHTTPDownloadProgressPct(m_pSteamHTTP,hRequest,ref pflPercentOut); - return result; -} -public override bool SetHTTPRequestRawPostBody(uint hRequest,string pchContentType,IntPtr pubBody,uint unBodyLen) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_SetHTTPRequestRawPostBody(m_pSteamHTTP,hRequest,pchContentType,pubBody,unBodyLen); - return result; -} -public override uint CreateCookieContainer(bool bAllowResponsesToModify) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamHTTP_CreateCookieContainer(m_pSteamHTTP,bAllowResponsesToModify); - return result; -} -public override bool ReleaseCookieContainer(uint hCookieContainer) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_ReleaseCookieContainer(m_pSteamHTTP,hCookieContainer); - return result; -} -public override bool SetCookie(uint hCookieContainer,string pchHost,string pchUrl,string pchCookie) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_SetCookie(m_pSteamHTTP,hCookieContainer,pchHost,pchUrl,pchCookie); - return result; -} -public override bool SetHTTPRequestCookieContainer(uint hRequest,uint hCookieContainer) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_SetHTTPRequestCookieContainer(m_pSteamHTTP,hRequest,hCookieContainer); - return result; -} -public override bool SetHTTPRequestUserAgentInfo(uint hRequest,string pchUserAgentInfo) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_SetHTTPRequestUserAgentInfo(m_pSteamHTTP,hRequest,pchUserAgentInfo); - return result; -} -public override bool SetHTTPRequestRequiresVerifiedCertificate(uint hRequest,bool bRequireVerifiedCertificate) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate(m_pSteamHTTP,hRequest,bRequireVerifiedCertificate); - return result; -} -public override bool SetHTTPRequestAbsoluteTimeoutMS(uint hRequest,uint unMilliseconds) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS(m_pSteamHTTP,hRequest,unMilliseconds); - return result; -} -public override bool GetHTTPRequestWasTimedOut(uint hRequest,ref bool pbWasTimedOut) -{ - CheckIfUsable(); - pbWasTimedOut = false; - bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut(m_pSteamHTTP,hRequest,ref pbWasTimedOut); - return result; -} -} - - -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) -{ - m_pSteamController = SteamController; -} -IntPtr m_pSteamController; - -public override IntPtr GetIntPtr() { return m_pSteamController; } - -private void CheckIfUsable() -{ - if (m_pSteamController == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override bool Init() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamController_Init(m_pSteamController); - return result; -} -public override bool Shutdown() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamController_Shutdown(m_pSteamController); - return result; -} -public override void RunFrame() -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamController_RunFrame(m_pSteamController); -} -public override int GetConnectedControllers(ref ulong handlesOut) -{ - CheckIfUsable(); - handlesOut = 0; - int result = NativeEntrypoints.SteamAPI_ISteamController_GetConnectedControllers(m_pSteamController,ref handlesOut); - return result; -} -public override bool ShowBindingPanel(ulong controllerHandle) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamController_ShowBindingPanel(m_pSteamController,controllerHandle); - return result; -} -public override ulong GetActionSetHandle(string pszActionSetName) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamController_GetActionSetHandle(m_pSteamController,pszActionSetName); - return result; -} -public override void ActivateActionSet(ulong controllerHandle,ulong actionSetHandle) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamController_ActivateActionSet(m_pSteamController,controllerHandle,actionSetHandle); -} -public override ulong GetCurrentActionSet(ulong controllerHandle) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamController_GetCurrentActionSet(m_pSteamController,controllerHandle); - return result; -} -public override ulong GetDigitalActionHandle(string pszActionName) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamController_GetDigitalActionHandle(m_pSteamController,pszActionName); - return result; -} -public override ControllerDigitalActionData_t GetDigitalActionData(ulong controllerHandle,ulong digitalActionHandle) -{ - CheckIfUsable(); - ControllerDigitalActionData_t result = NativeEntrypoints.SteamAPI_ISteamController_GetDigitalActionData(m_pSteamController,controllerHandle,digitalActionHandle); - return result; -} -public override int GetDigitalActionOrigins(ulong controllerHandle,ulong actionSetHandle,ulong digitalActionHandle,ref uint originsOut) -{ - CheckIfUsable(); - originsOut = 0; - int result = NativeEntrypoints.SteamAPI_ISteamController_GetDigitalActionOrigins(m_pSteamController,controllerHandle,actionSetHandle,digitalActionHandle,ref originsOut); - return result; -} -public override ulong GetAnalogActionHandle(string pszActionName) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamController_GetAnalogActionHandle(m_pSteamController,pszActionName); - return result; -} -public override ControllerAnalogActionData_t GetAnalogActionData(ulong controllerHandle,ulong analogActionHandle) -{ - CheckIfUsable(); - ControllerAnalogActionData_t result = NativeEntrypoints.SteamAPI_ISteamController_GetAnalogActionData(m_pSteamController,controllerHandle,analogActionHandle); - return result; -} -public override int GetAnalogActionOrigins(ulong controllerHandle,ulong actionSetHandle,ulong analogActionHandle,ref uint originsOut) -{ - CheckIfUsable(); - originsOut = 0; - int result = NativeEntrypoints.SteamAPI_ISteamController_GetAnalogActionOrigins(m_pSteamController,controllerHandle,actionSetHandle,analogActionHandle,ref originsOut); - return result; -} -public override void StopAnalogActionMomentum(ulong controllerHandle,ulong eAction) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamController_StopAnalogActionMomentum(m_pSteamController,controllerHandle,eAction); -} -public override void TriggerHapticPulse(ulong controllerHandle,uint eTargetPad,char usDurationMicroSec) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamController_TriggerHapticPulse(m_pSteamController,controllerHandle,eTargetPad,usDurationMicroSec); -} -} - - -public class CSteamUGC : ISteamUGC -{ -public CSteamUGC(IntPtr SteamUGC) -{ - m_pSteamUGC = SteamUGC; -} -IntPtr m_pSteamUGC; - -public override IntPtr GetIntPtr() { return m_pSteamUGC; } - -private void CheckIfUsable() -{ - if (m_pSteamUGC == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override ulong CreateQueryUserUGCRequest(uint unAccountID,uint eListType,uint eMatchingUGCType,uint eSortOrder,uint nCreatorAppID,uint nConsumerAppID,uint unPage) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_CreateQueryUserUGCRequest(m_pSteamUGC,unAccountID,eListType,eMatchingUGCType,eSortOrder,nCreatorAppID,nConsumerAppID,unPage); - return result; -} -public override ulong CreateQueryAllUGCRequest(uint eQueryType,uint eMatchingeMatchingUGCTypeFileType,uint nCreatorAppID,uint nConsumerAppID,uint unPage) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_CreateQueryAllUGCRequest(m_pSteamUGC,eQueryType,eMatchingeMatchingUGCTypeFileType,nCreatorAppID,nConsumerAppID,unPage); - return result; -} -public override ulong CreateQueryUGCDetailsRequest(ref ulong pvecPublishedFileID,uint unNumPublishedFileIDs) -{ - CheckIfUsable(); - pvecPublishedFileID = 0; - ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_CreateQueryUGCDetailsRequest(m_pSteamUGC,ref pvecPublishedFileID,unNumPublishedFileIDs); - return result; -} -public override ulong SendQueryUGCRequest(ulong handle) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_SendQueryUGCRequest(m_pSteamUGC,handle); - return result; -} -public override bool GetQueryUGCResult(ulong handle,uint index,ref SteamUGCDetails_t pDetails) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_GetQueryUGCResult(m_pSteamUGC,handle,index,ref pDetails); - return result; -} -public override bool GetQueryUGCPreviewURL(ulong handle,uint index,string pchURL,uint cchURLSize) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_GetQueryUGCPreviewURL(m_pSteamUGC,handle,index,pchURL,cchURLSize); - return result; -} -public override bool GetQueryUGCMetadata(ulong handle,uint index,string pchMetadata,uint cchMetadatasize) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_GetQueryUGCMetadata(m_pSteamUGC,handle,index,pchMetadata,cchMetadatasize); - return result; -} -public override bool GetQueryUGCChildren(ulong handle,uint index,ref ulong pvecPublishedFileID,uint cMaxEntries) -{ - CheckIfUsable(); - pvecPublishedFileID = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_GetQueryUGCChildren(m_pSteamUGC,handle,index,ref pvecPublishedFileID,cMaxEntries); - return result; -} -public override bool GetQueryUGCStatistic(ulong handle,uint index,uint eStatType,ref uint pStatValue) -{ - CheckIfUsable(); - pStatValue = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_GetQueryUGCStatistic(m_pSteamUGC,handle,index,eStatType,ref pStatValue); - return result; -} -public override uint GetQueryUGCNumAdditionalPreviews(ulong handle,uint index) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamUGC_GetQueryUGCNumAdditionalPreviews(m_pSteamUGC,handle,index); - return result; -} -public override bool GetQueryUGCAdditionalPreview(ulong handle,uint index,uint previewIndex,string pchURLOrVideoID,uint cchURLSize,ref bool pbIsImage) -{ - CheckIfUsable(); - pbIsImage = false; - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview(m_pSteamUGC,handle,index,previewIndex,pchURLOrVideoID,cchURLSize,ref pbIsImage); - return result; -} -public override uint GetQueryUGCNumKeyValueTags(ulong handle,uint index) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamUGC_GetQueryUGCNumKeyValueTags(m_pSteamUGC,handle,index); - return result; -} -public override bool GetQueryUGCKeyValueTag(ulong handle,uint index,uint keyValueTagIndex,string pchKey,uint cchKeySize,string pchValue,uint cchValueSize) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag(m_pSteamUGC,handle,index,keyValueTagIndex,pchKey,cchKeySize,pchValue,cchValueSize); - return result; -} -public override bool ReleaseQueryUGCRequest(ulong handle) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_ReleaseQueryUGCRequest(m_pSteamUGC,handle); - return result; -} -public override bool AddRequiredTag(ulong handle,string pTagName) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_AddRequiredTag(m_pSteamUGC,handle,pTagName); - return result; -} -public override bool AddExcludedTag(ulong handle,string pTagName) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_AddExcludedTag(m_pSteamUGC,handle,pTagName); - return result; -} -public override bool SetReturnKeyValueTags(ulong handle,bool bReturnKeyValueTags) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetReturnKeyValueTags(m_pSteamUGC,handle,bReturnKeyValueTags); - return result; -} -public override bool SetReturnLongDescription(ulong handle,bool bReturnLongDescription) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetReturnLongDescription(m_pSteamUGC,handle,bReturnLongDescription); - return result; -} -public override bool SetReturnMetadata(ulong handle,bool bReturnMetadata) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetReturnMetadata(m_pSteamUGC,handle,bReturnMetadata); - return result; -} -public override bool SetReturnChildren(ulong handle,bool bReturnChildren) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetReturnChildren(m_pSteamUGC,handle,bReturnChildren); - return result; -} -public override bool SetReturnAdditionalPreviews(ulong handle,bool bReturnAdditionalPreviews) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetReturnAdditionalPreviews(m_pSteamUGC,handle,bReturnAdditionalPreviews); - return result; -} -public override bool SetReturnTotalOnly(ulong handle,bool bReturnTotalOnly) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetReturnTotalOnly(m_pSteamUGC,handle,bReturnTotalOnly); - return result; -} -public override bool SetLanguage(ulong handle,string pchLanguage) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetLanguage(m_pSteamUGC,handle,pchLanguage); - return result; -} -public override bool SetAllowCachedResponse(ulong handle,uint unMaxAgeSeconds) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetAllowCachedResponse(m_pSteamUGC,handle,unMaxAgeSeconds); - return result; -} -public override bool SetCloudFileNameFilter(ulong handle,string pMatchCloudFileName) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetCloudFileNameFilter(m_pSteamUGC,handle,pMatchCloudFileName); - return result; -} -public override bool SetMatchAnyTag(ulong handle,bool bMatchAnyTag) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetMatchAnyTag(m_pSteamUGC,handle,bMatchAnyTag); - return result; -} -public override bool SetSearchText(ulong handle,string pSearchText) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetSearchText(m_pSteamUGC,handle,pSearchText); - return result; -} -public override bool SetRankedByTrendDays(ulong handle,uint unDays) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetRankedByTrendDays(m_pSteamUGC,handle,unDays); - return result; -} -public override bool AddRequiredKeyValueTag(ulong handle,string pKey,string pValue) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_AddRequiredKeyValueTag(m_pSteamUGC,handle,pKey,pValue); - return result; -} -public override ulong RequestUGCDetails(ulong nPublishedFileID,uint unMaxAgeSeconds) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_RequestUGCDetails(m_pSteamUGC,nPublishedFileID,unMaxAgeSeconds); - return result; -} -public override ulong CreateItem(uint nConsumerAppId,uint eFileType) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_CreateItem(m_pSteamUGC,nConsumerAppId,eFileType); - return result; -} -public override ulong StartItemUpdate(uint nConsumerAppId,ulong nPublishedFileID) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_StartItemUpdate(m_pSteamUGC,nConsumerAppId,nPublishedFileID); - return result; -} -public override bool SetItemTitle(ulong handle,string pchTitle) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetItemTitle(m_pSteamUGC,handle,pchTitle); - return result; -} -public override bool SetItemDescription(ulong handle,string pchDescription) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetItemDescription(m_pSteamUGC,handle,pchDescription); - return result; -} -public override bool SetItemUpdateLanguage(ulong handle,string pchLanguage) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetItemUpdateLanguage(m_pSteamUGC,handle,pchLanguage); - return result; -} -public override bool SetItemMetadata(ulong handle,string pchMetaData) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetItemMetadata(m_pSteamUGC,handle,pchMetaData); - return result; -} -public override bool SetItemVisibility(ulong handle,uint eVisibility) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetItemVisibility(m_pSteamUGC,handle,eVisibility); - return result; -} -public override bool SetItemTags(ulong updateHandle,ref SteamParamStringArray_t pTags) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetItemTags(m_pSteamUGC,updateHandle,ref pTags); - return result; -} -public override bool SetItemContent(ulong handle,string pszContentFolder) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetItemContent(m_pSteamUGC,handle,pszContentFolder); - return result; -} -public override bool SetItemPreview(ulong handle,string pszPreviewFile) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetItemPreview(m_pSteamUGC,handle,pszPreviewFile); - return result; -} -public override bool RemoveItemKeyValueTags(ulong handle,string pchKey) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_RemoveItemKeyValueTags(m_pSteamUGC,handle,pchKey); - return result; -} -public override bool AddItemKeyValueTag(ulong handle,string pchKey,string pchValue) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_AddItemKeyValueTag(m_pSteamUGC,handle,pchKey,pchValue); - return result; -} -public override ulong SubmitItemUpdate(ulong handle,string pchChangeNote) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_SubmitItemUpdate(m_pSteamUGC,handle,pchChangeNote); - return result; -} -public override uint GetItemUpdateProgress(ulong handle,ref ulong punBytesProcessed,ref ulong punBytesTotal) -{ - CheckIfUsable(); - punBytesProcessed = 0; - punBytesTotal = 0; - uint result = NativeEntrypoints.SteamAPI_ISteamUGC_GetItemUpdateProgress(m_pSteamUGC,handle,ref punBytesProcessed,ref punBytesTotal); - return result; -} -public override ulong SetUserItemVote(ulong nPublishedFileID,bool bVoteUp) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_SetUserItemVote(m_pSteamUGC,nPublishedFileID,bVoteUp); - return result; -} -public override ulong GetUserItemVote(ulong nPublishedFileID) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_GetUserItemVote(m_pSteamUGC,nPublishedFileID); - return result; -} -public override ulong AddItemToFavorites(uint nAppId,ulong nPublishedFileID) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_AddItemToFavorites(m_pSteamUGC,nAppId,nPublishedFileID); - return result; -} -public override ulong RemoveItemFromFavorites(uint nAppId,ulong nPublishedFileID) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_RemoveItemFromFavorites(m_pSteamUGC,nAppId,nPublishedFileID); - return result; -} -public override ulong SubscribeItem(ulong nPublishedFileID) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_SubscribeItem(m_pSteamUGC,nPublishedFileID); - return result; -} -public override ulong UnsubscribeItem(ulong nPublishedFileID) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_UnsubscribeItem(m_pSteamUGC,nPublishedFileID); - return result; -} -public override uint GetNumSubscribedItems() -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamUGC_GetNumSubscribedItems(m_pSteamUGC); - return result; -} -public override uint GetSubscribedItems(ref ulong pvecPublishedFileID,uint cMaxEntries) -{ - CheckIfUsable(); - pvecPublishedFileID = 0; - uint result = NativeEntrypoints.SteamAPI_ISteamUGC_GetSubscribedItems(m_pSteamUGC,ref pvecPublishedFileID,cMaxEntries); - return result; -} -public override uint GetItemState(ulong nPublishedFileID) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamUGC_GetItemState(m_pSteamUGC,nPublishedFileID); - return result; -} -public override bool GetItemInstallInfo(ulong nPublishedFileID,ref ulong punSizeOnDisk,string pchFolder,uint cchFolderSize,ref uint punTimeStamp) -{ - CheckIfUsable(); - punSizeOnDisk = 0; - punTimeStamp = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_GetItemInstallInfo(m_pSteamUGC,nPublishedFileID,ref punSizeOnDisk,pchFolder,cchFolderSize,ref punTimeStamp); - return result; -} -public override bool GetItemDownloadInfo(ulong nPublishedFileID,ref ulong punBytesDownloaded,ref ulong punBytesTotal) -{ - CheckIfUsable(); - punBytesDownloaded = 0; - punBytesTotal = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_GetItemDownloadInfo(m_pSteamUGC,nPublishedFileID,ref punBytesDownloaded,ref punBytesTotal); - return result; -} -public override bool DownloadItem(ulong nPublishedFileID,bool bHighPriority) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_DownloadItem(m_pSteamUGC,nPublishedFileID,bHighPriority); - return result; -} -public override bool BInitWorkshopForGameServer(uint unWorkshopDepotID,string pszFolder) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamUGC_BInitWorkshopForGameServer(m_pSteamUGC,unWorkshopDepotID,pszFolder); - return result; -} -public override void SuspendDownloads(bool bSuspend) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamUGC_SuspendDownloads(m_pSteamUGC,bSuspend); -} -} - - -public class CSteamAppList : ISteamAppList -{ -public CSteamAppList(IntPtr SteamAppList) -{ - m_pSteamAppList = SteamAppList; -} -IntPtr m_pSteamAppList; - -public override IntPtr GetIntPtr() { return m_pSteamAppList; } - -private void CheckIfUsable() -{ - if (m_pSteamAppList == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override uint GetNumInstalledApps() -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamAppList_GetNumInstalledApps(m_pSteamAppList); - return result; -} -public override uint GetInstalledApps(ref uint pvecAppID,uint unMaxAppIDs) -{ - CheckIfUsable(); - pvecAppID = 0; - uint result = NativeEntrypoints.SteamAPI_ISteamAppList_GetInstalledApps(m_pSteamAppList,ref pvecAppID,unMaxAppIDs); - return result; -} -public override int GetAppName(uint nAppID,string pchName,int cchNameMax) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamAppList_GetAppName(m_pSteamAppList,nAppID,pchName,cchNameMax); - return result; -} -public override int GetAppInstallDir(uint nAppID,string pchDirectory,int cchNameMax) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamAppList_GetAppInstallDir(m_pSteamAppList,nAppID,pchDirectory,cchNameMax); - return result; -} -public override int GetAppBuildId(uint nAppID) -{ - CheckIfUsable(); - int result = NativeEntrypoints.SteamAPI_ISteamAppList_GetAppBuildId(m_pSteamAppList,nAppID); - return result; -} -} - - -public class CSteamHTMLSurface : ISteamHTMLSurface -{ -public CSteamHTMLSurface(IntPtr SteamHTMLSurface) -{ - m_pSteamHTMLSurface = SteamHTMLSurface; -} -IntPtr m_pSteamHTMLSurface; - -public override IntPtr GetIntPtr() { return m_pSteamHTMLSurface; } - -private void CheckIfUsable() -{ - if (m_pSteamHTMLSurface == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override void DestructISteamHTMLSurface() -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_DestructISteamHTMLSurface(m_pSteamHTMLSurface); -} -public override bool Init() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamHTMLSurface_Init(m_pSteamHTMLSurface); - return result; -} -public override bool Shutdown() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamHTMLSurface_Shutdown(m_pSteamHTMLSurface); - return result; -} -public override ulong CreateBrowser(string pchUserAgent,string pchUserCSS) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamHTMLSurface_CreateBrowser(m_pSteamHTMLSurface,pchUserAgent,pchUserCSS); - return result; -} -public override void RemoveBrowser(uint unBrowserHandle) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_RemoveBrowser(m_pSteamHTMLSurface,unBrowserHandle); -} -public override void LoadURL(uint unBrowserHandle,string pchURL,string pchPostData) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_LoadURL(m_pSteamHTMLSurface,unBrowserHandle,pchURL,pchPostData); -} -public override void SetSize(uint unBrowserHandle,uint unWidth,uint unHeight) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_SetSize(m_pSteamHTMLSurface,unBrowserHandle,unWidth,unHeight); -} -public override void StopLoad(uint unBrowserHandle) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_StopLoad(m_pSteamHTMLSurface,unBrowserHandle); -} -public override void Reload(uint unBrowserHandle) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_Reload(m_pSteamHTMLSurface,unBrowserHandle); -} -public override void GoBack(uint unBrowserHandle) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_GoBack(m_pSteamHTMLSurface,unBrowserHandle); -} -public override void GoForward(uint unBrowserHandle) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_GoForward(m_pSteamHTMLSurface,unBrowserHandle); -} -public override void AddHeader(uint unBrowserHandle,string pchKey,string pchValue) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_AddHeader(m_pSteamHTMLSurface,unBrowserHandle,pchKey,pchValue); -} -public override void ExecuteJavascript(uint unBrowserHandle,string pchScript) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_ExecuteJavascript(m_pSteamHTMLSurface,unBrowserHandle,pchScript); -} -public override void MouseUp(uint unBrowserHandle,uint eMouseButton) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_MouseUp(m_pSteamHTMLSurface,unBrowserHandle,eMouseButton); -} -public override void MouseDown(uint unBrowserHandle,uint eMouseButton) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_MouseDown(m_pSteamHTMLSurface,unBrowserHandle,eMouseButton); -} -public override void MouseDoubleClick(uint unBrowserHandle,uint eMouseButton) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_MouseDoubleClick(m_pSteamHTMLSurface,unBrowserHandle,eMouseButton); -} -public override void MouseMove(uint unBrowserHandle,int x,int y) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_MouseMove(m_pSteamHTMLSurface,unBrowserHandle,x,y); -} -public override void MouseWheel(uint unBrowserHandle,int nDelta) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_MouseWheel(m_pSteamHTMLSurface,unBrowserHandle,nDelta); -} -public override void KeyDown(uint unBrowserHandle,uint nNativeKeyCode,uint eHTMLKeyModifiers) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_KeyDown(m_pSteamHTMLSurface,unBrowserHandle,nNativeKeyCode,eHTMLKeyModifiers); -} -public override void KeyUp(uint unBrowserHandle,uint nNativeKeyCode,uint eHTMLKeyModifiers) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_KeyUp(m_pSteamHTMLSurface,unBrowserHandle,nNativeKeyCode,eHTMLKeyModifiers); -} -public override void KeyChar(uint unBrowserHandle,uint cUnicodeChar,uint eHTMLKeyModifiers) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_KeyChar(m_pSteamHTMLSurface,unBrowserHandle,cUnicodeChar,eHTMLKeyModifiers); -} -public override void SetHorizontalScroll(uint unBrowserHandle,uint nAbsolutePixelScroll) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_SetHorizontalScroll(m_pSteamHTMLSurface,unBrowserHandle,nAbsolutePixelScroll); -} -public override void SetVerticalScroll(uint unBrowserHandle,uint nAbsolutePixelScroll) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_SetVerticalScroll(m_pSteamHTMLSurface,unBrowserHandle,nAbsolutePixelScroll); -} -public override void SetKeyFocus(uint unBrowserHandle,bool bHasKeyFocus) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_SetKeyFocus(m_pSteamHTMLSurface,unBrowserHandle,bHasKeyFocus); -} -public override void ViewSource(uint unBrowserHandle) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_ViewSource(m_pSteamHTMLSurface,unBrowserHandle); -} -public override void CopyToClipboard(uint unBrowserHandle) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_CopyToClipboard(m_pSteamHTMLSurface,unBrowserHandle); -} -public override void PasteFromClipboard(uint unBrowserHandle) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_PasteFromClipboard(m_pSteamHTMLSurface,unBrowserHandle); -} -public override void Find(uint unBrowserHandle,string pchSearchStr,bool bCurrentlyInFind,bool bReverse) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_Find(m_pSteamHTMLSurface,unBrowserHandle,pchSearchStr,bCurrentlyInFind,bReverse); -} -public override void StopFind(uint unBrowserHandle) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_StopFind(m_pSteamHTMLSurface,unBrowserHandle); -} -public override void GetLinkAtPosition(uint unBrowserHandle,int x,int y) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_GetLinkAtPosition(m_pSteamHTMLSurface,unBrowserHandle,x,y); -} -public override void SetCookie(string pchHostname,string pchKey,string pchValue,string pchPath,ulong nExpires,bool bSecure,bool bHTTPOnly) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_SetCookie(m_pSteamHTMLSurface,pchHostname,pchKey,pchValue,pchPath,nExpires,bSecure,bHTTPOnly); -} -public override void SetPageScaleFactor(uint unBrowserHandle,float flZoom,int nPointX,int nPointY) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_SetPageScaleFactor(m_pSteamHTMLSurface,unBrowserHandle,flZoom,nPointX,nPointY); -} -public override void SetBackgroundMode(uint unBrowserHandle,bool bBackgroundMode) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_SetBackgroundMode(m_pSteamHTMLSurface,unBrowserHandle,bBackgroundMode); -} -public override void AllowStartRequest(uint unBrowserHandle,bool bAllowed) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_AllowStartRequest(m_pSteamHTMLSurface,unBrowserHandle,bAllowed); -} -public override void JSDialogResponse(uint unBrowserHandle,bool bResult) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_JSDialogResponse(m_pSteamHTMLSurface,unBrowserHandle,bResult); -} -public override void FileLoadDialogResponse(uint unBrowserHandle,string pchSelectedFiles) -{ - CheckIfUsable(); - pchSelectedFiles = ""; - NativeEntrypoints.SteamAPI_ISteamHTMLSurface_FileLoadDialogResponse(m_pSteamHTMLSurface,unBrowserHandle,pchSelectedFiles); -} -} - - -public class CSteamInventory : ISteamInventory -{ -public CSteamInventory(IntPtr SteamInventory) -{ - m_pSteamInventory = SteamInventory; -} -IntPtr m_pSteamInventory; - -public override IntPtr GetIntPtr() { return m_pSteamInventory; } - -private void CheckIfUsable() -{ - if (m_pSteamInventory == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override uint GetResultStatus(int resultHandle) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamInventory_GetResultStatus(m_pSteamInventory,resultHandle); - return result; -} -public override bool GetResultItems(int resultHandle,out SteamItemDetails_t [] pOutItemsArray) -{ - CheckIfUsable(); - uint punOutItemsArraySize = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamInventory_GetResultItems(m_pSteamInventory,resultHandle,null,ref punOutItemsArraySize); - pOutItemsArray= new SteamItemDetails_t[punOutItemsArraySize]; - result = NativeEntrypoints.SteamAPI_ISteamInventory_GetResultItems(m_pSteamInventory,resultHandle,pOutItemsArray,ref punOutItemsArraySize); - return result; -} -public override uint GetResultTimestamp(int resultHandle) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamInventory_GetResultTimestamp(m_pSteamInventory,resultHandle); - return result; -} -public override bool CheckResultSteamID(int resultHandle,ulong steamIDExpected) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamInventory_CheckResultSteamID(m_pSteamInventory,resultHandle,steamIDExpected); - return result; -} -public override void DestroyResult(int resultHandle) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamInventory_DestroyResult(m_pSteamInventory,resultHandle); -} -public override bool GetAllItems(ref int pResultHandle) -{ - CheckIfUsable(); - pResultHandle = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamInventory_GetAllItems(m_pSteamInventory,ref pResultHandle); - return result; -} -public override bool GetItemsByID(ref int pResultHandle,ulong [] pInstanceIDs) -{ - CheckIfUsable(); - pResultHandle = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamInventory_GetItemsByID(m_pSteamInventory,ref pResultHandle,pInstanceIDs,(uint) pInstanceIDs.Length); - return result; -} -public override bool SerializeResult(int resultHandle,IntPtr pOutBuffer,ref uint punOutBufferSize) -{ - CheckIfUsable(); - punOutBufferSize = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamInventory_SerializeResult(m_pSteamInventory,resultHandle,pOutBuffer,ref punOutBufferSize); - return result; -} -public override bool DeserializeResult(ref int pOutResultHandle,IntPtr pBuffer,uint unBufferSize,bool bRESERVED_MUST_BE_FALSE) -{ - CheckIfUsable(); - pOutResultHandle = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamInventory_DeserializeResult(m_pSteamInventory,ref pOutResultHandle,pBuffer,unBufferSize,bRESERVED_MUST_BE_FALSE); - return result; -} -public override bool GenerateItems(ref int pResultHandle,int [] pArrayItemDefs,uint [] punArrayQuantity) -{ - CheckIfUsable(); - pResultHandle = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamInventory_GenerateItems(m_pSteamInventory,ref pResultHandle,pArrayItemDefs,punArrayQuantity,(uint) punArrayQuantity.Length); - return result; -} -public override bool GrantPromoItems(ref int pResultHandle) -{ - CheckIfUsable(); - pResultHandle = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamInventory_GrantPromoItems(m_pSteamInventory,ref pResultHandle); - return result; -} -public override bool AddPromoItem(ref int pResultHandle,int itemDef) -{ - CheckIfUsable(); - pResultHandle = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamInventory_AddPromoItem(m_pSteamInventory,ref pResultHandle,itemDef); - return result; -} -public override bool AddPromoItems(ref int pResultHandle,int [] pArrayItemDefs) -{ - CheckIfUsable(); - pResultHandle = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamInventory_AddPromoItems(m_pSteamInventory,ref pResultHandle,pArrayItemDefs,(uint) pArrayItemDefs.Length); - return result; -} -public override bool ConsumeItem(ref int pResultHandle,ulong itemConsume,uint unQuantity) -{ - CheckIfUsable(); - pResultHandle = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamInventory_ConsumeItem(m_pSteamInventory,ref pResultHandle,itemConsume,unQuantity); - return result; -} -public override bool ExchangeItems(ref int pResultHandle,int [] pArrayGenerate,uint [] punArrayGenerateQuantity,ulong [] pArrayDestroy,uint [] punArrayDestroyQuantity) -{ - CheckIfUsable(); - pResultHandle = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamInventory_ExchangeItems(m_pSteamInventory,ref pResultHandle,pArrayGenerate,punArrayGenerateQuantity,(uint) punArrayGenerateQuantity.Length,pArrayDestroy,punArrayDestroyQuantity,(uint) punArrayDestroyQuantity.Length); - return result; -} -public override bool TransferItemQuantity(ref int pResultHandle,ulong itemIdSource,uint unQuantity,ulong itemIdDest) -{ - CheckIfUsable(); - pResultHandle = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamInventory_TransferItemQuantity(m_pSteamInventory,ref pResultHandle,itemIdSource,unQuantity,itemIdDest); - return result; -} -public override void SendItemDropHeartbeat() -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamInventory_SendItemDropHeartbeat(m_pSteamInventory); -} -public override bool TriggerItemDrop(ref int pResultHandle,int dropListDefinition) -{ - CheckIfUsable(); - pResultHandle = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamInventory_TriggerItemDrop(m_pSteamInventory,ref pResultHandle,dropListDefinition); - return result; -} -public override bool TradeItems(ref int pResultHandle,ulong steamIDTradePartner,ulong [] pArrayGive,uint [] pArrayGiveQuantity,ulong [] pArrayGet,uint [] pArrayGetQuantity) -{ - CheckIfUsable(); - pResultHandle = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamInventory_TradeItems(m_pSteamInventory,ref pResultHandle,steamIDTradePartner,pArrayGive,pArrayGiveQuantity,(uint) pArrayGiveQuantity.Length,pArrayGet,pArrayGetQuantity,(uint) pArrayGetQuantity.Length); - return result; -} -public override bool LoadItemDefinitions() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamInventory_LoadItemDefinitions(m_pSteamInventory); - return result; -} -public override bool GetItemDefinitionIDs(out int [] pItemDefIDs) -{ - CheckIfUsable(); - uint punItemDefIDsArraySize = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamInventory_GetItemDefinitionIDs(m_pSteamInventory,null,ref punItemDefIDsArraySize); - pItemDefIDs= new int[punItemDefIDsArraySize]; - result = NativeEntrypoints.SteamAPI_ISteamInventory_GetItemDefinitionIDs(m_pSteamInventory,pItemDefIDs,ref punItemDefIDsArraySize); - return result; -} -public override bool GetItemDefinitionProperty(int iDefinition,string pchPropertyName,out string pchValueBuffer) -{ - CheckIfUsable(); - uint punValueBufferSize = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamInventory_GetItemDefinitionProperty(m_pSteamInventory,iDefinition,pchPropertyName,null,ref punValueBufferSize); - System.Text.StringBuilder pStrBuffer = new System.Text.StringBuilder((int)punValueBufferSize); - result = NativeEntrypoints.SteamAPI_ISteamInventory_GetItemDefinitionProperty(m_pSteamInventory,iDefinition,pchPropertyName,pStrBuffer,ref punValueBufferSize); - pchValueBuffer = pStrBuffer.ToString(); - return result; -} -} - - -public class CSteamVideo : ISteamVideo -{ -public CSteamVideo(IntPtr SteamVideo) -{ - m_pSteamVideo = SteamVideo; -} -IntPtr m_pSteamVideo; - -public override IntPtr GetIntPtr() { return m_pSteamVideo; } - -private void CheckIfUsable() -{ - if (m_pSteamVideo == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override void GetVideoURL(uint unVideoAppID) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamVideo_GetVideoURL(m_pSteamVideo,unVideoAppID); -} -public override bool IsBroadcasting(ref int pnNumViewers) -{ - CheckIfUsable(); - pnNumViewers = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamVideo_IsBroadcasting(m_pSteamVideo,ref pnNumViewers); - return result; -} -} - - -public class CSteamGameServer : ISteamGameServer -{ -public CSteamGameServer(IntPtr SteamGameServer) -{ - m_pSteamGameServer = SteamGameServer; -} -IntPtr m_pSteamGameServer; - -public override IntPtr GetIntPtr() { return m_pSteamGameServer; } - -private void CheckIfUsable() -{ - if (m_pSteamGameServer == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override bool InitGameServer(uint unIP,char usGamePort,char usQueryPort,uint unFlags,uint nGameAppId,string pchVersionString) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamGameServer_InitGameServer(m_pSteamGameServer,unIP,usGamePort,usQueryPort,unFlags,nGameAppId,pchVersionString); - return result; -} -public override void SetProduct(string pszProduct) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_SetProduct(m_pSteamGameServer,pszProduct); -} -public override void SetGameDescription(string pszGameDescription) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_SetGameDescription(m_pSteamGameServer,pszGameDescription); -} -public override void SetModDir(string pszModDir) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_SetModDir(m_pSteamGameServer,pszModDir); -} -public override void SetDedicatedServer(bool bDedicated) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_SetDedicatedServer(m_pSteamGameServer,bDedicated); -} -public override void LogOn(string pszToken) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_LogOn(m_pSteamGameServer,pszToken); -} -public override void LogOnAnonymous() -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_LogOnAnonymous(m_pSteamGameServer); -} -public override void LogOff() -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_LogOff(m_pSteamGameServer); -} -public override bool BLoggedOn() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamGameServer_BLoggedOn(m_pSteamGameServer); - return result; -} -public override bool BSecure() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamGameServer_BSecure(m_pSteamGameServer); - return result; -} -public override ulong GetSteamID() -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamGameServer_GetSteamID(m_pSteamGameServer); - return result; -} -public override bool WasRestartRequested() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamGameServer_WasRestartRequested(m_pSteamGameServer); - return result; -} -public override void SetMaxPlayerCount(int cPlayersMax) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_SetMaxPlayerCount(m_pSteamGameServer,cPlayersMax); -} -public override void SetBotPlayerCount(int cBotplayers) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_SetBotPlayerCount(m_pSteamGameServer,cBotplayers); -} -public override void SetServerName(string pszServerName) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_SetServerName(m_pSteamGameServer,pszServerName); -} -public override void SetMapName(string pszMapName) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_SetMapName(m_pSteamGameServer,pszMapName); -} -public override void SetPasswordProtected(bool bPasswordProtected) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_SetPasswordProtected(m_pSteamGameServer,bPasswordProtected); -} -public override void SetSpectatorPort(char unSpectatorPort) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_SetSpectatorPort(m_pSteamGameServer,unSpectatorPort); -} -public override void SetSpectatorServerName(string pszSpectatorServerName) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_SetSpectatorServerName(m_pSteamGameServer,pszSpectatorServerName); -} -public override void ClearAllKeyValues() -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_ClearAllKeyValues(m_pSteamGameServer); -} -public override void SetKeyValue(string pKey,string pValue) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_SetKeyValue(m_pSteamGameServer,pKey,pValue); -} -public override void SetGameTags(string pchGameTags) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_SetGameTags(m_pSteamGameServer,pchGameTags); -} -public override void SetGameData(string pchGameData) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_SetGameData(m_pSteamGameServer,pchGameData); -} -public override void SetRegion(string pszRegion) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_SetRegion(m_pSteamGameServer,pszRegion); -} -public override bool SendUserConnectAndAuthenticate(uint unIPClient,IntPtr pvAuthBlob,uint cubAuthBlobSize,ref CSteamID pSteamIDUser) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamGameServer_SendUserConnectAndAuthenticate(m_pSteamGameServer,unIPClient,pvAuthBlob,cubAuthBlobSize,ref pSteamIDUser); - return result; -} -public override ulong CreateUnauthenticatedUserConnection() -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamGameServer_CreateUnauthenticatedUserConnection(m_pSteamGameServer); - return result; -} -public override void SendUserDisconnect(ulong steamIDUser) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_SendUserDisconnect(m_pSteamGameServer,steamIDUser); -} -public override bool BUpdateUserData(ulong steamIDUser,string pchPlayerName,uint uScore) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamGameServer_BUpdateUserData(m_pSteamGameServer,steamIDUser,pchPlayerName,uScore); - return result; -} -public override uint GetAuthSessionTicket(IntPtr pTicket,int cbMaxTicket,ref uint pcbTicket) -{ - CheckIfUsable(); - pcbTicket = 0; - uint result = NativeEntrypoints.SteamAPI_ISteamGameServer_GetAuthSessionTicket(m_pSteamGameServer,pTicket,cbMaxTicket,ref pcbTicket); - return result; -} -public override uint BeginAuthSession(IntPtr pAuthTicket,int cbAuthTicket,ulong steamID) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamGameServer_BeginAuthSession(m_pSteamGameServer,pAuthTicket,cbAuthTicket,steamID); - return result; -} -public override void EndAuthSession(ulong steamID) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_EndAuthSession(m_pSteamGameServer,steamID); -} -public override void CancelAuthTicket(uint hAuthTicket) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_CancelAuthTicket(m_pSteamGameServer,hAuthTicket); -} -public override uint UserHasLicenseForApp(ulong steamID,uint appID) -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamGameServer_UserHasLicenseForApp(m_pSteamGameServer,steamID,appID); - return result; -} -public override bool RequestUserGroupStatus(ulong steamIDUser,ulong steamIDGroup) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamGameServer_RequestUserGroupStatus(m_pSteamGameServer,steamIDUser,steamIDGroup); - return result; -} -public override void GetGameplayStats() -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_GetGameplayStats(m_pSteamGameServer); -} -public override ulong GetServerReputation() -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamGameServer_GetServerReputation(m_pSteamGameServer); - return result; -} -public override uint GetPublicIP() -{ - CheckIfUsable(); - uint result = NativeEntrypoints.SteamAPI_ISteamGameServer_GetPublicIP(m_pSteamGameServer); - return result; -} -public override bool HandleIncomingPacket(IntPtr pData,int cbData,uint srcIP,char srcPort) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamGameServer_HandleIncomingPacket(m_pSteamGameServer,pData,cbData,srcIP,srcPort); - return result; -} -public override int GetNextOutgoingPacket(IntPtr pOut,int cbMaxOut,ref uint pNetAdr,ref char pPort) -{ - CheckIfUsable(); - pNetAdr = 0; - pPort = (char) 0; - int result = NativeEntrypoints.SteamAPI_ISteamGameServer_GetNextOutgoingPacket(m_pSteamGameServer,pOut,cbMaxOut,ref pNetAdr,ref pPort); - return result; -} -public override void EnableHeartbeats(bool bActive) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_EnableHeartbeats(m_pSteamGameServer,bActive); -} -public override void SetHeartbeatInterval(int iHeartbeatInterval) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_SetHeartbeatInterval(m_pSteamGameServer,iHeartbeatInterval); -} -public override void ForceHeartbeat() -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_ISteamGameServer_ForceHeartbeat(m_pSteamGameServer); -} -public override ulong AssociateWithClan(ulong steamIDClan) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamGameServer_AssociateWithClan(m_pSteamGameServer,steamIDClan); - return result; -} -public override ulong ComputeNewPlayerCompatibility(ulong steamIDNewPlayer) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamGameServer_ComputeNewPlayerCompatibility(m_pSteamGameServer,steamIDNewPlayer); - return result; -} -} - - -public class CSteamGameServerStats : ISteamGameServerStats -{ -public CSteamGameServerStats(IntPtr SteamGameServerStats) -{ - m_pSteamGameServerStats = SteamGameServerStats; -} -IntPtr m_pSteamGameServerStats; - -public override IntPtr GetIntPtr() { return m_pSteamGameServerStats; } - -private void CheckIfUsable() -{ - if (m_pSteamGameServerStats == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override ulong RequestUserStats(ulong steamIDUser) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamGameServerStats_RequestUserStats(m_pSteamGameServerStats,steamIDUser); - return result; -} -public override bool GetUserStat(ulong steamIDUser,string pchName,ref int pData) -{ - CheckIfUsable(); - pData = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamGameServerStats_GetUserStat(m_pSteamGameServerStats,steamIDUser,pchName,ref pData); - return result; -} -public override bool GetUserStat0(ulong steamIDUser,string pchName,ref float pData) -{ - CheckIfUsable(); - pData = 0; - bool result = NativeEntrypoints.SteamAPI_ISteamGameServerStats_GetUserStat0(m_pSteamGameServerStats,steamIDUser,pchName,ref pData); - return result; -} -public override bool GetUserAchievement(ulong steamIDUser,string pchName,ref bool pbAchieved) -{ - CheckIfUsable(); - pbAchieved = false; - bool result = NativeEntrypoints.SteamAPI_ISteamGameServerStats_GetUserAchievement(m_pSteamGameServerStats,steamIDUser,pchName,ref pbAchieved); - return result; -} -public override bool SetUserStat(ulong steamIDUser,string pchName,int nData) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamGameServerStats_SetUserStat(m_pSteamGameServerStats,steamIDUser,pchName,nData); - return result; -} -public override bool SetUserStat0(ulong steamIDUser,string pchName,float fData) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamGameServerStats_SetUserStat0(m_pSteamGameServerStats,steamIDUser,pchName,fData); - return result; -} -public override bool UpdateUserAvgRateStat(ulong steamIDUser,string pchName,float flCountThisSession,double dSessionLength) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamGameServerStats_UpdateUserAvgRateStat(m_pSteamGameServerStats,steamIDUser,pchName,flCountThisSession,dSessionLength); - return result; -} -public override bool SetUserAchievement(ulong steamIDUser,string pchName) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamGameServerStats_SetUserAchievement(m_pSteamGameServerStats,steamIDUser,pchName); - return result; -} -public override bool ClearUserAchievement(ulong steamIDUser,string pchName) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_ISteamGameServerStats_ClearUserAchievement(m_pSteamGameServerStats,steamIDUser,pchName); - return result; -} -public override ulong StoreUserStats(ulong steamIDUser) -{ - CheckIfUsable(); - ulong result = NativeEntrypoints.SteamAPI_ISteamGameServerStats_StoreUserStats(m_pSteamGameServerStats,steamIDUser); - return result; -} -} - - -public class SteamAPIInterop -{ -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_RestartAppIfNecessary")] -internal static extern void SteamAPI_RestartAppIfNecessary(uint unOwnAppID ); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_Init")] -internal static extern void SteamAPI_Init(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_RunCallbacks")] -internal static extern void SteamAPI_RunCallbacks(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_RegisterCallback")] -internal static extern void SteamAPI_RegisterCallback(IntPtr pCallback, int iCallback); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_UnregisterCallback")] -internal static extern void SteamAPI_UnregisterCallback(IntPtr pCallback); -[DllImportAttribute("Steam_api", EntryPoint = "SteamClient")] -internal static extern IntPtr SteamClient(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamUser")] -internal static extern IntPtr SteamUser(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamFriends")] -internal static extern IntPtr SteamFriends(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamUtils")] -internal static extern IntPtr SteamUtils(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamMatchmaking")] -internal static extern IntPtr SteamMatchmaking(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamMatchmakingServerListResponse")] -internal static extern IntPtr SteamMatchmakingServerListResponse(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamMatchmakingPingResponse")] -internal static extern IntPtr SteamMatchmakingPingResponse(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamMatchmakingPlayersResponse")] -internal static extern IntPtr SteamMatchmakingPlayersResponse(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamMatchmakingRulesResponse")] -internal static extern IntPtr SteamMatchmakingRulesResponse(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamMatchmakingServers")] -internal static extern IntPtr SteamMatchmakingServers(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamRemoteStorage")] -internal static extern IntPtr SteamRemoteStorage(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamUserStats")] -internal static extern IntPtr SteamUserStats(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamApps")] -internal static extern IntPtr SteamApps(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamNetworking")] -internal static extern IntPtr SteamNetworking(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamScreenshots")] -internal static extern IntPtr SteamScreenshots(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamMusic")] -internal static extern IntPtr SteamMusic(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamMusicRemote")] -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")] -internal static extern IntPtr SteamUGC(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAppList")] -internal static extern IntPtr SteamAppList(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamHTMLSurface")] -internal static extern IntPtr SteamHTMLSurface(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamInventory")] -internal static extern IntPtr SteamInventory(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamVideo")] -internal static extern IntPtr SteamVideo(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamGameServer")] -internal static extern IntPtr SteamGameServer(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamGameServerStats")] -internal static extern IntPtr SteamGameServerStats(); -} - - -public enum EUniverse -{ - k_EUniverseInvalid = 0, - k_EUniversePublic = 1, - k_EUniverseBeta = 2, - k_EUniverseInternal = 3, - k_EUniverseDev = 4, - k_EUniverseMax = 5, -} -public enum EResult -{ - k_EResultOK = 1, - k_EResultFail = 2, - k_EResultNoConnection = 3, - k_EResultInvalidPassword = 5, - k_EResultLoggedInElsewhere = 6, - k_EResultInvalidProtocolVer = 7, - k_EResultInvalidParam = 8, - k_EResultFileNotFound = 9, - k_EResultBusy = 10, - k_EResultInvalidState = 11, - k_EResultInvalidName = 12, - k_EResultInvalidEmail = 13, - k_EResultDuplicateName = 14, - k_EResultAccessDenied = 15, - k_EResultTimeout = 16, - k_EResultBanned = 17, - k_EResultAccountNotFound = 18, - k_EResultInvalidSteamID = 19, - k_EResultServiceUnavailable = 20, - k_EResultNotLoggedOn = 21, - k_EResultPending = 22, - k_EResultEncryptionFailure = 23, - k_EResultInsufficientPrivilege = 24, - k_EResultLimitExceeded = 25, - k_EResultRevoked = 26, - k_EResultExpired = 27, - k_EResultAlreadyRedeemed = 28, - k_EResultDuplicateRequest = 29, - k_EResultAlreadyOwned = 30, - k_EResultIPNotFound = 31, - k_EResultPersistFailed = 32, - k_EResultLockingFailed = 33, - k_EResultLogonSessionReplaced = 34, - k_EResultConnectFailed = 35, - k_EResultHandshakeFailed = 36, - k_EResultIOFailure = 37, - k_EResultRemoteDisconnect = 38, - k_EResultShoppingCartNotFound = 39, - k_EResultBlocked = 40, - k_EResultIgnored = 41, - k_EResultNoMatch = 42, - k_EResultAccountDisabled = 43, - k_EResultServiceReadOnly = 44, - k_EResultAccountNotFeatured = 45, - k_EResultAdministratorOK = 46, - k_EResultContentVersion = 47, - k_EResultTryAnotherCM = 48, - k_EResultPasswordRequiredToKickSession = 49, - k_EResultAlreadyLoggedInElsewhere = 50, - k_EResultSuspended = 51, - k_EResultCancelled = 52, - k_EResultDataCorruption = 53, - k_EResultDiskFull = 54, - k_EResultRemoteCallFailed = 55, - k_EResultPasswordUnset = 56, - k_EResultExternalAccountUnlinked = 57, - k_EResultPSNTicketInvalid = 58, - k_EResultExternalAccountAlreadyLinked = 59, - k_EResultRemoteFileConflict = 60, - k_EResultIllegalPassword = 61, - k_EResultSameAsPreviousValue = 62, - k_EResultAccountLogonDenied = 63, - k_EResultCannotUseOldPassword = 64, - k_EResultInvalidLoginAuthCode = 65, - k_EResultAccountLogonDeniedNoMail = 66, - k_EResultHardwareNotCapableOfIPT = 67, - k_EResultIPTInitError = 68, - k_EResultParentalControlRestricted = 69, - k_EResultFacebookQueryError = 70, - k_EResultExpiredLoginAuthCode = 71, - k_EResultIPLoginRestrictionFailed = 72, - k_EResultAccountLockedDown = 73, - k_EResultAccountLogonDeniedVerifiedEmailRequired = 74, - k_EResultNoMatchingURL = 75, - k_EResultBadResponse = 76, - k_EResultRequirePasswordReEntry = 77, - k_EResultValueOutOfRange = 78, - k_EResultUnexpectedError = 79, - k_EResultDisabled = 80, - k_EResultInvalidCEGSubmission = 81, - k_EResultRestrictedDevice = 82, - k_EResultRegionLocked = 83, - k_EResultRateLimitExceeded = 84, - k_EResultAccountLoginDeniedNeedTwoFactor = 85, - k_EResultItemDeleted = 86, - k_EResultAccountLoginDeniedThrottle = 87, - k_EResultTwoFactorCodeMismatch = 88, - k_EResultTwoFactorActivationCodeMismatch = 89, - k_EResultAccountAssociatedToMultiplePartners = 90, - k_EResultNotModified = 91, - k_EResultNoMobileDevice = 92, - k_EResultTimeNotSynced = 93, - k_EResultSmsCodeFailed = 94, - k_EResultAccountLimitExceeded = 95, - k_EResultAccountActivityLimitExceeded = 96, - k_EResultPhoneActivityLimitExceeded = 97, - k_EResultRefundToWallet = 98, - k_EResultEmailSendFailure = 99, - k_EResultNotSettled = 100, - k_EResultNeedCaptcha = 101, -} -public enum EVoiceResult -{ - k_EVoiceResultOK = 0, - k_EVoiceResultNotInitialized = 1, - k_EVoiceResultNotRecording = 2, - k_EVoiceResultNoData = 3, - k_EVoiceResultBufferTooSmall = 4, - k_EVoiceResultDataCorrupted = 5, - k_EVoiceResultRestricted = 6, - k_EVoiceResultUnsupportedCodec = 7, - k_EVoiceResultReceiverOutOfDate = 8, - k_EVoiceResultReceiverDidNotAnswer = 9, -} -public enum EDenyReason -{ - k_EDenyInvalid = 0, - k_EDenyInvalidVersion = 1, - k_EDenyGeneric = 2, - k_EDenyNotLoggedOn = 3, - k_EDenyNoLicense = 4, - k_EDenyCheater = 5, - k_EDenyLoggedInElseWhere = 6, - k_EDenyUnknownText = 7, - k_EDenyIncompatibleAnticheat = 8, - k_EDenyMemoryCorruption = 9, - k_EDenyIncompatibleSoftware = 10, - k_EDenySteamConnectionLost = 11, - k_EDenySteamConnectionError = 12, - k_EDenySteamResponseTimedOut = 13, - k_EDenySteamValidationStalled = 14, - k_EDenySteamOwnerLeftGuestUser = 15, -} -public enum EBeginAuthSessionResult -{ - k_EBeginAuthSessionResultOK = 0, - k_EBeginAuthSessionResultInvalidTicket = 1, - k_EBeginAuthSessionResultDuplicateRequest = 2, - k_EBeginAuthSessionResultInvalidVersion = 3, - k_EBeginAuthSessionResultGameMismatch = 4, - k_EBeginAuthSessionResultExpiredTicket = 5, -} -public enum EAuthSessionResponse -{ - k_EAuthSessionResponseOK = 0, - k_EAuthSessionResponseUserNotConnectedToSteam = 1, - k_EAuthSessionResponseNoLicenseOrExpired = 2, - k_EAuthSessionResponseVACBanned = 3, - k_EAuthSessionResponseLoggedInElseWhere = 4, - k_EAuthSessionResponseVACCheckTimedOut = 5, - k_EAuthSessionResponseAuthTicketCanceled = 6, - k_EAuthSessionResponseAuthTicketInvalidAlreadyUsed = 7, - k_EAuthSessionResponseAuthTicketInvalid = 8, - k_EAuthSessionResponsePublisherIssuedBan = 9, -} -public enum EUserHasLicenseForAppResult -{ - k_EUserHasLicenseResultHasLicense = 0, - k_EUserHasLicenseResultDoesNotHaveLicense = 1, - k_EUserHasLicenseResultNoAuth = 2, -} -public enum EAccountType -{ - k_EAccountTypeInvalid = 0, - k_EAccountTypeIndividual = 1, - k_EAccountTypeMultiseat = 2, - k_EAccountTypeGameServer = 3, - k_EAccountTypeAnonGameServer = 4, - k_EAccountTypePending = 5, - k_EAccountTypeContentServer = 6, - k_EAccountTypeClan = 7, - k_EAccountTypeChat = 8, - k_EAccountTypeConsoleUser = 9, - k_EAccountTypeAnonUser = 10, - k_EAccountTypeMax = 11, -} -public enum EAppReleaseState -{ - k_EAppReleaseState_Unknown = 0, - k_EAppReleaseState_Unavailable = 1, - k_EAppReleaseState_Prerelease = 2, - k_EAppReleaseState_PreloadOnly = 3, - k_EAppReleaseState_Released = 4, -} -public enum EAppOwnershipFlags -{ - k_EAppOwnershipFlags_None = 0, - k_EAppOwnershipFlags_OwnsLicense = 1, - k_EAppOwnershipFlags_FreeLicense = 2, - k_EAppOwnershipFlags_RegionRestricted = 4, - k_EAppOwnershipFlags_LowViolence = 8, - k_EAppOwnershipFlags_InvalidPlatform = 16, - k_EAppOwnershipFlags_SharedLicense = 32, - k_EAppOwnershipFlags_FreeWeekend = 64, - k_EAppOwnershipFlags_RetailLicense = 128, - k_EAppOwnershipFlags_LicenseLocked = 256, - k_EAppOwnershipFlags_LicensePending = 512, - k_EAppOwnershipFlags_LicenseExpired = 1024, - k_EAppOwnershipFlags_LicensePermanent = 2048, - k_EAppOwnershipFlags_LicenseRecurring = 4096, - k_EAppOwnershipFlags_LicenseCanceled = 8192, - k_EAppOwnershipFlags_AutoGrant = 16384, - k_EAppOwnershipFlags_PendingGift = 32768, -} -public enum EAppType -{ - k_EAppType_Invalid = 0, - k_EAppType_Game = 1, - k_EAppType_Application = 2, - k_EAppType_Tool = 4, - k_EAppType_Demo = 8, - k_EAppType_Media_DEPRECATED = 16, - k_EAppType_DLC = 32, - k_EAppType_Guide = 64, - k_EAppType_Driver = 128, - k_EAppType_Config = 256, - k_EAppType_Hardware = 512, - k_EAppType_Video = 2048, - k_EAppType_Plugin = 4096, - k_EAppType_Music = 8192, - k_EAppType_Shortcut = 1073741824, - k_EAppType_DepotOnly = -2147483648, -} -public enum ESteamUserStatType -{ - k_ESteamUserStatTypeINVALID = 0, - k_ESteamUserStatTypeINT = 1, - k_ESteamUserStatTypeFLOAT = 2, - k_ESteamUserStatTypeAVGRATE = 3, - k_ESteamUserStatTypeACHIEVEMENTS = 4, - k_ESteamUserStatTypeGROUPACHIEVEMENTS = 5, - k_ESteamUserStatTypeMAX = 6, -} -public enum EChatEntryType -{ - k_EChatEntryTypeInvalid = 0, - k_EChatEntryTypeChatMsg = 1, - k_EChatEntryTypeTyping = 2, - k_EChatEntryTypeInviteGame = 3, - k_EChatEntryTypeEmote = 4, - k_EChatEntryTypeLeftConversation = 6, - k_EChatEntryTypeEntered = 7, - k_EChatEntryTypeWasKicked = 8, - k_EChatEntryTypeWasBanned = 9, - k_EChatEntryTypeDisconnected = 10, - k_EChatEntryTypeHistoricalChat = 11, - k_EChatEntryTypeReserved1 = 12, - k_EChatEntryTypeReserved2 = 13, - k_EChatEntryTypeLinkBlocked = 14, -} -public enum EChatRoomEnterResponse -{ - k_EChatRoomEnterResponseSuccess = 1, - k_EChatRoomEnterResponseDoesntExist = 2, - k_EChatRoomEnterResponseNotAllowed = 3, - k_EChatRoomEnterResponseFull = 4, - k_EChatRoomEnterResponseError = 5, - k_EChatRoomEnterResponseBanned = 6, - k_EChatRoomEnterResponseLimited = 7, - k_EChatRoomEnterResponseClanDisabled = 8, - k_EChatRoomEnterResponseCommunityBan = 9, - k_EChatRoomEnterResponseMemberBlockedYou = 10, - k_EChatRoomEnterResponseYouBlockedMember = 11, -} -public enum EChatSteamIDInstanceFlags -{ - k_EChatAccountInstanceMask = 4095, - k_EChatInstanceFlagClan = 524288, - k_EChatInstanceFlagLobby = 262144, - k_EChatInstanceFlagMMSLobby = 131072, -} -public enum EMarketingMessageFlags -{ - k_EMarketingMessageFlagsNone = 0, - k_EMarketingMessageFlagsHighPriority = 1, - k_EMarketingMessageFlagsPlatformWindows = 2, - k_EMarketingMessageFlagsPlatformMac = 4, - k_EMarketingMessageFlagsPlatformLinux = 8, - k_EMarketingMessageFlagsPlatformRestrictions = 14, -} -public enum ENotificationPosition -{ - k_EPositionTopLeft = 0, - k_EPositionTopRight = 1, - k_EPositionBottomLeft = 2, - k_EPositionBottomRight = 3, -} -public enum EBroadcastUploadResult -{ - k_EBroadcastUploadResultNone = 0, - k_EBroadcastUploadResultOK = 1, - k_EBroadcastUploadResultInitFailed = 2, - k_EBroadcastUploadResultFrameFailed = 3, - k_EBroadcastUploadResultTimeout = 4, - k_EBroadcastUploadResultBandwidthExceeded = 5, - k_EBroadcastUploadResultLowFPS = 6, - k_EBroadcastUploadResultMissingKeyFrames = 7, - k_EBroadcastUploadResultNoConnection = 8, - k_EBroadcastUploadResultRelayFailed = 9, - k_EBroadcastUploadResultSettingsChanged = 10, - k_EBroadcastUploadResultMissingAudio = 11, - k_EBroadcastUploadResultTooFarBehind = 12, - k_EBroadcastUploadResultTranscodeBehind = 13, -} -public enum ELaunchOptionType -{ - k_ELaunchOptionType_None = 0, - k_ELaunchOptionType_Default = 1, - k_ELaunchOptionType_SafeMode = 2, - k_ELaunchOptionType_Multiplayer = 3, - k_ELaunchOptionType_Config = 4, - k_ELaunchOptionType_VR = 5, - k_ELaunchOptionType_Server = 6, - k_ELaunchOptionType_Editor = 7, - k_ELaunchOptionType_Manual = 8, - k_ELaunchOptionType_Benchmark = 9, - k_ELaunchOptionType_Option1 = 10, - k_ELaunchOptionType_Option2 = 11, - k_ELaunchOptionType_Option3 = 12, - k_ELaunchOptionType_Dialog = 1000, -} -public enum EFailureType -{ - k_EFailureFlushedCallbackQueue = 0, - k_EFailurePipeFail = 1, -} -public enum EFriendRelationship -{ - k_EFriendRelationshipNone = 0, - k_EFriendRelationshipBlocked = 1, - k_EFriendRelationshipRequestRecipient = 2, - k_EFriendRelationshipFriend = 3, - k_EFriendRelationshipRequestInitiator = 4, - k_EFriendRelationshipIgnored = 5, - k_EFriendRelationshipIgnoredFriend = 6, - k_EFriendRelationshipSuggested = 7, - k_EFriendRelationshipMax = 8, -} -public enum EPersonaState -{ - k_EPersonaStateOffline = 0, - k_EPersonaStateOnline = 1, - k_EPersonaStateBusy = 2, - k_EPersonaStateAway = 3, - k_EPersonaStateSnooze = 4, - k_EPersonaStateLookingToTrade = 5, - k_EPersonaStateLookingToPlay = 6, - k_EPersonaStateMax = 7, -} -public enum EFriendFlags -{ - k_EFriendFlagNone = 0, - k_EFriendFlagBlocked = 1, - k_EFriendFlagFriendshipRequested = 2, - k_EFriendFlagImmediate = 4, - k_EFriendFlagClanMember = 8, - k_EFriendFlagOnGameServer = 16, - k_EFriendFlagRequestingFriendship = 128, - k_EFriendFlagRequestingInfo = 256, - k_EFriendFlagIgnored = 512, - k_EFriendFlagIgnoredFriend = 1024, - k_EFriendFlagSuggested = 2048, - k_EFriendFlagAll = 65535, -} -public enum EUserRestriction -{ - k_nUserRestrictionNone = 0, - k_nUserRestrictionUnknown = 1, - k_nUserRestrictionAnyChat = 2, - k_nUserRestrictionVoiceChat = 4, - k_nUserRestrictionGroupChat = 8, - k_nUserRestrictionRating = 16, - k_nUserRestrictionGameInvites = 32, - k_nUserRestrictionTrading = 64, -} -public enum EOverlayToStoreFlag -{ - k_EOverlayToStoreFlag_None = 0, - k_EOverlayToStoreFlag_AddToCart = 1, - k_EOverlayToStoreFlag_AddToCartAndShow = 2, -} -public enum EPersonaChange -{ - k_EPersonaChangeName = 1, - k_EPersonaChangeStatus = 2, - k_EPersonaChangeComeOnline = 4, - k_EPersonaChangeGoneOffline = 8, - k_EPersonaChangeGamePlayed = 16, - k_EPersonaChangeGameServer = 32, - k_EPersonaChangeAvatar = 64, - k_EPersonaChangeJoinedSource = 128, - k_EPersonaChangeLeftSource = 256, - k_EPersonaChangeRelationshipChanged = 512, - k_EPersonaChangeNameFirstSet = 1024, - k_EPersonaChangeFacebookInfo = 2048, - k_EPersonaChangeNickname = 4096, - k_EPersonaChangeSteamLevel = 8192, -} -public enum ESteamAPICallFailure -{ - k_ESteamAPICallFailureNone = -1, - k_ESteamAPICallFailureSteamGone = 0, - k_ESteamAPICallFailureNetworkFailure = 1, - k_ESteamAPICallFailureInvalidHandle = 2, - k_ESteamAPICallFailureMismatchedCallback = 3, -} -public enum EGamepadTextInputMode -{ - k_EGamepadTextInputModeNormal = 0, - k_EGamepadTextInputModePassword = 1, -} -public enum EGamepadTextInputLineMode -{ - k_EGamepadTextInputLineModeSingleLine = 0, - k_EGamepadTextInputLineModeMultipleLines = 1, -} -public enum ECheckFileSignature -{ - k_ECheckFileSignatureInvalidSignature = 0, - k_ECheckFileSignatureValidSignature = 1, - k_ECheckFileSignatureFileNotFound = 2, - k_ECheckFileSignatureNoSignaturesFoundForThisApp = 3, - k_ECheckFileSignatureNoSignaturesFoundForThisFile = 4, -} -public enum EMatchMakingServerResponse -{ - eServerResponded = 0, - eServerFailedToRespond = 1, - eNoServersListedOnMasterServer = 2, -} -public enum ELobbyType -{ - k_ELobbyTypePrivate = 0, - k_ELobbyTypeFriendsOnly = 1, - k_ELobbyTypePublic = 2, - k_ELobbyTypeInvisible = 3, -} -public enum ELobbyComparison -{ - k_ELobbyComparisonEqualToOrLessThan = -2, - k_ELobbyComparisonLessThan = -1, - k_ELobbyComparisonEqual = 0, - k_ELobbyComparisonGreaterThan = 1, - k_ELobbyComparisonEqualToOrGreaterThan = 2, - k_ELobbyComparisonNotEqual = 3, -} -public enum ELobbyDistanceFilter -{ - k_ELobbyDistanceFilterClose = 0, - k_ELobbyDistanceFilterDefault = 1, - k_ELobbyDistanceFilterFar = 2, - k_ELobbyDistanceFilterWorldwide = 3, -} -public enum EChatMemberStateChange -{ - k_EChatMemberStateChangeEntered = 1, - k_EChatMemberStateChangeLeft = 2, - k_EChatMemberStateChangeDisconnected = 4, - k_EChatMemberStateChangeKicked = 8, - k_EChatMemberStateChangeBanned = 16, -} -public enum EResolveConflict -{ - k_EResolveConflictKeepClient = 1, - k_EResolveConflictKeepServer = 2, -} -public enum ERemoteStoragePlatform -{ - k_ERemoteStoragePlatformNone = 0, - k_ERemoteStoragePlatformWindows = 1, - k_ERemoteStoragePlatformOSX = 2, - k_ERemoteStoragePlatformPS3 = 4, - k_ERemoteStoragePlatformLinux = 8, - k_ERemoteStoragePlatformReserved2 = 16, - k_ERemoteStoragePlatformAll = -1, -} -public enum ERemoteStoragePublishedFileVisibility -{ - k_ERemoteStoragePublishedFileVisibilityPublic = 0, - k_ERemoteStoragePublishedFileVisibilityFriendsOnly = 1, - k_ERemoteStoragePublishedFileVisibilityPrivate = 2, -} -public enum EWorkshopFileType -{ - k_EWorkshopFileTypeFirst = 0, - k_EWorkshopFileTypeCommunity = 0, - k_EWorkshopFileTypeMicrotransaction = 1, - k_EWorkshopFileTypeCollection = 2, - k_EWorkshopFileTypeArt = 3, - k_EWorkshopFileTypeVideo = 4, - k_EWorkshopFileTypeScreenshot = 5, - k_EWorkshopFileTypeGame = 6, - k_EWorkshopFileTypeSoftware = 7, - k_EWorkshopFileTypeConcept = 8, - k_EWorkshopFileTypeWebGuide = 9, - k_EWorkshopFileTypeIntegratedGuide = 10, - k_EWorkshopFileTypeMerch = 11, - k_EWorkshopFileTypeControllerBinding = 12, - k_EWorkshopFileTypeSteamworksAccessInvite = 13, - k_EWorkshopFileTypeSteamVideo = 14, - k_EWorkshopFileTypeGameManagedItem = 15, - k_EWorkshopFileTypeMax = 16, -} -public enum EWorkshopVote -{ - k_EWorkshopVoteUnvoted = 0, - k_EWorkshopVoteFor = 1, - k_EWorkshopVoteAgainst = 2, - k_EWorkshopVoteLater = 3, -} -public enum EWorkshopFileAction -{ - k_EWorkshopFileActionPlayed = 0, - k_EWorkshopFileActionCompleted = 1, -} -public enum EWorkshopEnumerationType -{ - k_EWorkshopEnumerationTypeRankedByVote = 0, - k_EWorkshopEnumerationTypeRecent = 1, - k_EWorkshopEnumerationTypeTrending = 2, - k_EWorkshopEnumerationTypeFavoritesOfFriends = 3, - k_EWorkshopEnumerationTypeVotedByFriends = 4, - k_EWorkshopEnumerationTypeContentByFriends = 5, - k_EWorkshopEnumerationTypeRecentFromFollowedUsers = 6, -} -public enum EWorkshopVideoProvider -{ - k_EWorkshopVideoProviderNone = 0, - k_EWorkshopVideoProviderYoutube = 1, -} -public enum EUGCReadAction -{ - k_EUGCRead_ContinueReadingUntilFinished = 0, - k_EUGCRead_ContinueReading = 1, - k_EUGCRead_Close = 2, -} -public enum ELeaderboardDataRequest -{ - k_ELeaderboardDataRequestGlobal = 0, - k_ELeaderboardDataRequestGlobalAroundUser = 1, - k_ELeaderboardDataRequestFriends = 2, - k_ELeaderboardDataRequestUsers = 3, -} -public enum ELeaderboardSortMethod -{ - k_ELeaderboardSortMethodNone = 0, - k_ELeaderboardSortMethodAscending = 1, - k_ELeaderboardSortMethodDescending = 2, -} -public enum ELeaderboardDisplayType -{ - k_ELeaderboardDisplayTypeNone = 0, - k_ELeaderboardDisplayTypeNumeric = 1, - k_ELeaderboardDisplayTypeTimeSeconds = 2, - k_ELeaderboardDisplayTypeTimeMilliSeconds = 3, -} -public enum ELeaderboardUploadScoreMethod -{ - k_ELeaderboardUploadScoreMethodNone = 0, - k_ELeaderboardUploadScoreMethodKeepBest = 1, - k_ELeaderboardUploadScoreMethodForceUpdate = 2, -} -public enum ERegisterActivationCodeResult -{ - k_ERegisterActivationCodeResultOK = 0, - k_ERegisterActivationCodeResultFail = 1, - k_ERegisterActivationCodeResultAlreadyRegistered = 2, - k_ERegisterActivationCodeResultTimeout = 3, - k_ERegisterActivationCodeAlreadyOwned = 4, -} -public enum EP2PSessionError -{ - k_EP2PSessionErrorNone = 0, - k_EP2PSessionErrorNotRunningApp = 1, - k_EP2PSessionErrorNoRightsToApp = 2, - k_EP2PSessionErrorDestinationNotLoggedIn = 3, - k_EP2PSessionErrorTimeout = 4, - k_EP2PSessionErrorMax = 5, -} -public enum EP2PSend -{ - k_EP2PSendUnreliable = 0, - k_EP2PSendUnreliableNoDelay = 1, - k_EP2PSendReliable = 2, - k_EP2PSendReliableWithBuffering = 3, -} -public enum ESNetSocketState -{ - k_ESNetSocketStateInvalid = 0, - k_ESNetSocketStateConnected = 1, - k_ESNetSocketStateInitiated = 10, - k_ESNetSocketStateLocalCandidatesFound = 11, - k_ESNetSocketStateReceivedRemoteCandidates = 12, - k_ESNetSocketStateChallengeHandshake = 15, - k_ESNetSocketStateDisconnecting = 21, - k_ESNetSocketStateLocalDisconnect = 22, - k_ESNetSocketStateTimeoutDuringConnect = 23, - k_ESNetSocketStateRemoteEndDisconnected = 24, - k_ESNetSocketStateConnectionBroken = 25, -} -public enum ESNetSocketConnectionType -{ - k_ESNetSocketConnectionTypeNotConnected = 0, - k_ESNetSocketConnectionTypeUDP = 1, - k_ESNetSocketConnectionTypeUDPRelay = 2, -} -public enum AudioPlayback_Status -{ - AudioPlayback_Undefined = 0, - AudioPlayback_Playing = 1, - AudioPlayback_Paused = 2, - AudioPlayback_Idle = 3, -} -public enum EHTTPMethod -{ - k_EHTTPMethodInvalid = 0, - k_EHTTPMethodGET = 1, - k_EHTTPMethodHEAD = 2, - k_EHTTPMethodPOST = 3, - k_EHTTPMethodPUT = 4, - k_EHTTPMethodDELETE = 5, - k_EHTTPMethodOPTIONS = 6, -} -public enum EHTTPStatusCode -{ - k_EHTTPStatusCodeInvalid = 0, - k_EHTTPStatusCode100Continue = 100, - k_EHTTPStatusCode101SwitchingProtocols = 101, - k_EHTTPStatusCode200OK = 200, - k_EHTTPStatusCode201Created = 201, - k_EHTTPStatusCode202Accepted = 202, - k_EHTTPStatusCode203NonAuthoritative = 203, - k_EHTTPStatusCode204NoContent = 204, - k_EHTTPStatusCode205ResetContent = 205, - k_EHTTPStatusCode206PartialContent = 206, - k_EHTTPStatusCode300MultipleChoices = 300, - k_EHTTPStatusCode301MovedPermanently = 301, - k_EHTTPStatusCode302Found = 302, - k_EHTTPStatusCode303SeeOther = 303, - k_EHTTPStatusCode304NotModified = 304, - k_EHTTPStatusCode305UseProxy = 305, - k_EHTTPStatusCode307TemporaryRedirect = 307, - k_EHTTPStatusCode400BadRequest = 400, - k_EHTTPStatusCode401Unauthorized = 401, - k_EHTTPStatusCode402PaymentRequired = 402, - k_EHTTPStatusCode403Forbidden = 403, - k_EHTTPStatusCode404NotFound = 404, - k_EHTTPStatusCode405MethodNotAllowed = 405, - k_EHTTPStatusCode406NotAcceptable = 406, - k_EHTTPStatusCode407ProxyAuthRequired = 407, - k_EHTTPStatusCode408RequestTimeout = 408, - k_EHTTPStatusCode409Conflict = 409, - k_EHTTPStatusCode410Gone = 410, - k_EHTTPStatusCode411LengthRequired = 411, - k_EHTTPStatusCode412PreconditionFailed = 412, - k_EHTTPStatusCode413RequestEntityTooLarge = 413, - k_EHTTPStatusCode414RequestURITooLong = 414, - k_EHTTPStatusCode415UnsupportedMediaType = 415, - k_EHTTPStatusCode416RequestedRangeNotSatisfiable = 416, - k_EHTTPStatusCode417ExpectationFailed = 417, - k_EHTTPStatusCode4xxUnknown = 418, - k_EHTTPStatusCode429TooManyRequests = 429, - k_EHTTPStatusCode500InternalServerError = 500, - k_EHTTPStatusCode501NotImplemented = 501, - k_EHTTPStatusCode502BadGateway = 502, - k_EHTTPStatusCode503ServiceUnavailable = 503, - k_EHTTPStatusCode504GatewayTimeout = 504, - k_EHTTPStatusCode505HTTPVersionNotSupported = 505, - k_EHTTPStatusCode5xxUnknown = 599, -} -public enum ESteamControllerPad -{ - k_ESteamControllerPad_Left = 0, - k_ESteamControllerPad_Right = 1, -} -public enum EControllerSource -{ - k_EControllerSource_None = 0, - k_EControllerSource_LeftTrackpad = 1, - k_EControllerSource_RightTrackpad = 2, - k_EControllerSource_Joystick = 3, - k_EControllerSource_ABXY = 4, - k_EControllerSource_Switch = 5, - k_EControllerSource_LeftTrigger = 6, - k_EControllerSource_RightTrigger = 7, - k_EControllerSource_Gyro = 8, -} -public enum EControllerSourceMode -{ - k_EControllerSourceMode_None = 0, - k_EControllerSourceMode_Dpad = 1, - k_EControllerSourceMode_Buttons = 2, - k_EControllerSourceMode_FourButtons = 3, - k_EControllerSourceMode_AbsoluteMouse = 4, - k_EControllerSourceMode_RelativeMouse = 5, - k_EControllerSourceMode_JoystickMove = 6, - k_EControllerSourceMode_JoystickCamera = 7, - k_EControllerSourceMode_ScrollWheel = 8, - k_EControllerSourceMode_Trigger = 9, - k_EControllerSourceMode_TouchMenu = 10, -} -public enum EControllerActionOrigin -{ - k_EControllerActionOrigin_None = 0, - k_EControllerActionOrigin_A = 1, - k_EControllerActionOrigin_B = 2, - k_EControllerActionOrigin_X = 3, - k_EControllerActionOrigin_Y = 4, - k_EControllerActionOrigin_LeftBumper = 5, - k_EControllerActionOrigin_RightBumper = 6, - k_EControllerActionOrigin_LeftGrip = 7, - k_EControllerActionOrigin_RightGrip = 8, - k_EControllerActionOrigin_Start = 9, - k_EControllerActionOrigin_Back = 10, - k_EControllerActionOrigin_LeftPad_Touch = 11, - k_EControllerActionOrigin_LeftPad_Swipe = 12, - k_EControllerActionOrigin_LeftPad_Click = 13, - k_EControllerActionOrigin_LeftPad_DPadNorth = 14, - k_EControllerActionOrigin_LeftPad_DPadSouth = 15, - k_EControllerActionOrigin_LeftPad_DPadWest = 16, - k_EControllerActionOrigin_LeftPad_DPadEast = 17, - k_EControllerActionOrigin_RightPad_Touch = 18, - k_EControllerActionOrigin_RightPad_Swipe = 19, - k_EControllerActionOrigin_RightPad_Click = 20, - k_EControllerActionOrigin_RightPad_DPadNorth = 21, - k_EControllerActionOrigin_RightPad_DPadSouth = 22, - k_EControllerActionOrigin_RightPad_DPadWest = 23, - k_EControllerActionOrigin_RightPad_DPadEast = 24, - k_EControllerActionOrigin_LeftTrigger_Pull = 25, - k_EControllerActionOrigin_LeftTrigger_Click = 26, - k_EControllerActionOrigin_RightTrigger_Pull = 27, - k_EControllerActionOrigin_RightTrigger_Click = 28, - k_EControllerActionOrigin_LeftStick_Move = 29, - k_EControllerActionOrigin_LeftStick_Click = 30, - k_EControllerActionOrigin_LeftStick_DPadNorth = 31, - k_EControllerActionOrigin_LeftStick_DPadSouth = 32, - k_EControllerActionOrigin_LeftStick_DPadWest = 33, - k_EControllerActionOrigin_LeftStick_DPadEast = 34, - k_EControllerActionOrigin_Gyro_Move = 35, - k_EControllerActionOrigin_Gyro_Pitch = 36, - k_EControllerActionOrigin_Gyro_Yaw = 37, - k_EControllerActionOrigin_Gyro_Roll = 38, - k_EControllerActionOrigin_Count = 39, -} -public enum EUGCMatchingUGCType -{ - k_EUGCMatchingUGCType_Items = 0, - k_EUGCMatchingUGCType_Items_Mtx = 1, - k_EUGCMatchingUGCType_Items_ReadyToUse = 2, - k_EUGCMatchingUGCType_Collections = 3, - k_EUGCMatchingUGCType_Artwork = 4, - k_EUGCMatchingUGCType_Videos = 5, - k_EUGCMatchingUGCType_Screenshots = 6, - k_EUGCMatchingUGCType_AllGuides = 7, - k_EUGCMatchingUGCType_WebGuides = 8, - k_EUGCMatchingUGCType_IntegratedGuides = 9, - k_EUGCMatchingUGCType_UsableInGame = 10, - k_EUGCMatchingUGCType_ControllerBindings = 11, - k_EUGCMatchingUGCType_GameManagedItems = 12, - k_EUGCMatchingUGCType_All = -1, -} -public enum EUserUGCList -{ - k_EUserUGCList_Published = 0, - k_EUserUGCList_VotedOn = 1, - k_EUserUGCList_VotedUp = 2, - k_EUserUGCList_VotedDown = 3, - k_EUserUGCList_WillVoteLater = 4, - k_EUserUGCList_Favorited = 5, - k_EUserUGCList_Subscribed = 6, - k_EUserUGCList_UsedOrPlayed = 7, - k_EUserUGCList_Followed = 8, -} -public enum EUserUGCListSortOrder -{ - k_EUserUGCListSortOrder_CreationOrderDesc = 0, - k_EUserUGCListSortOrder_CreationOrderAsc = 1, - k_EUserUGCListSortOrder_TitleAsc = 2, - k_EUserUGCListSortOrder_LastUpdatedDesc = 3, - k_EUserUGCListSortOrder_SubscriptionDateDesc = 4, - k_EUserUGCListSortOrder_VoteScoreDesc = 5, - k_EUserUGCListSortOrder_ForModeration = 6, -} -public enum EUGCQuery -{ - k_EUGCQuery_RankedByVote = 0, - k_EUGCQuery_RankedByPublicationDate = 1, - k_EUGCQuery_AcceptedForGameRankedByAcceptanceDate = 2, - k_EUGCQuery_RankedByTrend = 3, - k_EUGCQuery_FavoritedByFriendsRankedByPublicationDate = 4, - k_EUGCQuery_CreatedByFriendsRankedByPublicationDate = 5, - k_EUGCQuery_RankedByNumTimesReported = 6, - k_EUGCQuery_CreatedByFollowedUsersRankedByPublicationDate = 7, - k_EUGCQuery_NotYetRated = 8, - k_EUGCQuery_RankedByTotalVotesAsc = 9, - k_EUGCQuery_RankedByVotesUp = 10, - k_EUGCQuery_RankedByTextSearch = 11, - k_EUGCQuery_RankedByTotalUniqueSubscriptions = 12, -} -public enum EItemUpdateStatus -{ - k_EItemUpdateStatusInvalid = 0, - k_EItemUpdateStatusPreparingConfig = 1, - k_EItemUpdateStatusPreparingContent = 2, - k_EItemUpdateStatusUploadingContent = 3, - k_EItemUpdateStatusUploadingPreviewFile = 4, - k_EItemUpdateStatusCommittingChanges = 5, -} -public enum EItemState -{ - k_EItemStateNone = 0, - k_EItemStateSubscribed = 1, - k_EItemStateLegacyItem = 2, - k_EItemStateInstalled = 4, - k_EItemStateNeedsUpdate = 8, - k_EItemStateDownloading = 16, - k_EItemStateDownloadPending = 32, -} -public enum EItemStatistic -{ - k_EItemStatistic_NumSubscriptions = 0, - k_EItemStatistic_NumFavorites = 1, - k_EItemStatistic_NumFollowers = 2, - k_EItemStatistic_NumUniqueSubscriptions = 3, - k_EItemStatistic_NumUniqueFavorites = 4, - k_EItemStatistic_NumUniqueFollowers = 5, - k_EItemStatistic_NumUniqueWebsiteViews = 6, - k_EItemStatistic_ReportScore = 7, -} -public enum EHTMLMouseButton -{ - eHTMLMouseButton_Left = 0, - eHTMLMouseButton_Right = 1, - eHTMLMouseButton_Middle = 2, -} -public enum EMouseCursor -{ - dc_user = 0, - dc_none = 1, - dc_arrow = 2, - dc_ibeam = 3, - dc_hourglass = 4, - dc_waitarrow = 5, - dc_crosshair = 6, - dc_up = 7, - dc_sizenw = 8, - dc_sizese = 9, - dc_sizene = 10, - dc_sizesw = 11, - dc_sizew = 12, - dc_sizee = 13, - dc_sizen = 14, - dc_sizes = 15, - dc_sizewe = 16, - dc_sizens = 17, - dc_sizeall = 18, - dc_no = 19, - dc_hand = 20, - dc_blank = 21, - dc_middle_pan = 22, - dc_north_pan = 23, - dc_north_east_pan = 24, - dc_east_pan = 25, - dc_south_east_pan = 26, - dc_south_pan = 27, - dc_south_west_pan = 28, - dc_west_pan = 29, - dc_north_west_pan = 30, - dc_alias = 31, - dc_cell = 32, - dc_colresize = 33, - dc_copycur = 34, - dc_verticaltext = 35, - dc_rowresize = 36, - dc_zoomin = 37, - dc_zoomout = 38, - dc_help = 39, - dc_custom = 40, - dc_last = 41, -} -public enum EHTMLKeyModifiers -{ - k_eHTMLKeyModifier_None = 0, - k_eHTMLKeyModifier_AltDown = 1, - k_eHTMLKeyModifier_CtrlDown = 2, - k_eHTMLKeyModifier_ShiftDown = 4, -} -public enum ESteamItemFlags -{ - k_ESteamItemNoTrade = 1, - k_ESteamItemRemoved = 256, - k_ESteamItemConsumed = 512, -} -[StructLayout(LayoutKind.Sequential)] public struct CSteamID -{ - public SteamID_t m_steamid; -} -[StructLayout(LayoutKind.Sequential)] public struct SteamID_t -{ - public SteamIDComponent_t m_comp; - public ulong m_unAll64Bits; -} -[StructLayout(LayoutKind.Sequential)] public struct SteamIDComponent_t -{ - public uint m_unAccountID; - public uint m_unAccountInstance; - public uint m_EAccountType; - public EUniverse m_EUniverse; -} -[StructLayout(LayoutKind.Sequential)] public struct GameID_t -{ - public uint m_nAppID; - public uint m_nType; - public uint m_nModID; -} -[StructLayout(LayoutKind.Sequential)] public struct ValvePackingSentinel_t -{ - public uint m_u32; - public ulong m_u64; - public char m_u16; - public double m_d; -} -[StructLayout(LayoutKind.Sequential)] public struct CallbackMsg_t -{ - public uint m_hSteamUser; - public int m_iCallback; - public IntPtr m_pubParam; - public int m_cubParam; -} -[StructLayout(LayoutKind.Sequential)] public struct SteamServerConnectFailure_t -{ - public EResult m_eResult; - public bool m_bStillRetrying; -} -[StructLayout(LayoutKind.Sequential)] public struct SteamServersDisconnected_t -{ - public EResult m_eResult; -} -[StructLayout(LayoutKind.Sequential)] public struct ClientGameServerDeny_t -{ - public uint m_uAppID; - public uint m_unGameServerIP; - public char m_usGameServerPort; - public char m_bSecure; - public uint m_uReason; -} -[StructLayout(LayoutKind.Sequential)] public struct ValidateAuthTicketResponse_t -{ - public ulong m_SteamID; - public EAuthSessionResponse m_eAuthSessionResponse; - public ulong m_OwnerSteamID; -} -[StructLayout(LayoutKind.Sequential)] public struct MicroTxnAuthorizationResponse_t -{ - public uint m_unAppID; - public ulong m_ulOrderID; - public byte m_bAuthorized; -} -[StructLayout(LayoutKind.Sequential)] public struct EncryptedAppTicketResponse_t -{ - public EResult m_eResult; -} -[StructLayout(LayoutKind.Sequential)] public struct GetAuthSessionTicketResponse_t -{ - public uint m_hAuthTicket; - public EResult m_eResult; -} -[StructLayout(LayoutKind.Sequential)] public struct GameWebCallback_t -{ - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256, ArraySubType = UnmanagedType.I1)] - public char[] m_szURL; //char[256] -} -[StructLayout(LayoutKind.Sequential)] public struct StoreAuthURLResponse_t -{ - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 512, ArraySubType = UnmanagedType.I1)] - public char[] m_szURL; //char[512] -} -[StructLayout(LayoutKind.Sequential)] public struct FriendGameInfo_t -{ - public ulong m_gameID; - public uint m_unGameIP; - public char m_usGamePort; - public char m_usQueryPort; - public ulong m_steamIDLobby; -} -[StructLayout(LayoutKind.Sequential)] public struct FriendSessionStateInfo_t -{ - public uint m_uiOnlineSessionInstances; - public byte m_uiPublishedToFriendsSessionInstance; -} -[StructLayout(LayoutKind.Sequential)] public struct PersonaStateChange_t -{ - public ulong m_ulSteamID; - public int m_nChangeFlags; -} -[StructLayout(LayoutKind.Sequential)] public struct GameOverlayActivated_t -{ - public byte m_bActive; -} -[StructLayout(LayoutKind.Sequential)] public struct GameServerChangeRequested_t -{ - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 64, ArraySubType = UnmanagedType.I1)] - public char[] m_rgchServer; //char[64] - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 64, ArraySubType = UnmanagedType.I1)] - public char[] m_rgchPassword; //char[64] -} -[StructLayout(LayoutKind.Sequential)] public struct GameLobbyJoinRequested_t -{ - public ulong m_steamIDLobby; - public ulong m_steamIDFriend; -} -[StructLayout(LayoutKind.Sequential)] public struct AvatarImageLoaded_t -{ - public ulong m_steamID; - public int m_iImage; - public int m_iWide; - public int m_iTall; -} -[StructLayout(LayoutKind.Sequential)] public struct ClanOfficerListResponse_t -{ - public ulong m_steamIDClan; - public int m_cOfficers; - public byte m_bSuccess; -} -[StructLayout(LayoutKind.Sequential)] public struct FriendRichPresenceUpdate_t -{ - public ulong m_steamIDFriend; - public uint m_nAppID; -} -[StructLayout(LayoutKind.Sequential)] public struct GameRichPresenceJoinRequested_t -{ - public ulong m_steamIDFriend; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256, ArraySubType = UnmanagedType.I1)] - public char[] m_rgchConnect; //char[256] -} -[StructLayout(LayoutKind.Sequential)] public struct GameConnectedClanChatMsg_t -{ - public ulong m_steamIDClanChat; - public ulong m_steamIDUser; - public int m_iMessageID; -} -[StructLayout(LayoutKind.Sequential)] public struct GameConnectedChatJoin_t -{ - public ulong m_steamIDClanChat; - public ulong m_steamIDUser; -} -[StructLayout(LayoutKind.Sequential)] public struct GameConnectedChatLeave_t -{ - public ulong m_steamIDClanChat; - public ulong m_steamIDUser; - public bool m_bKicked; - public bool m_bDropped; -} -[StructLayout(LayoutKind.Sequential)] public struct DownloadClanActivityCountsResult_t -{ - public bool m_bSuccess; -} -[StructLayout(LayoutKind.Sequential)] public struct JoinClanChatRoomCompletionResult_t -{ - public ulong m_steamIDClanChat; - public EChatRoomEnterResponse m_eChatRoomEnterResponse; -} -[StructLayout(LayoutKind.Sequential)] public struct GameConnectedFriendChatMsg_t -{ - public ulong m_steamIDUser; - public int m_iMessageID; -} -[StructLayout(LayoutKind.Sequential)] public struct FriendsGetFollowerCount_t -{ - public EResult m_eResult; - public ulong m_steamID; - public int m_nCount; -} -[StructLayout(LayoutKind.Sequential)] public struct FriendsIsFollowing_t -{ - public EResult m_eResult; - public ulong m_steamID; - public bool m_bIsFollowing; -} -[StructLayout(LayoutKind.Sequential)] public struct FriendsEnumerateFollowingList_t -{ - public EResult m_eResult; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U8)] - public CSteamID[] m_rgSteamID; //CSteamID[50] - public int m_nResultsReturned; - public int m_nTotalResultCount; -} -[StructLayout(LayoutKind.Sequential)] public struct SetPersonaNameResponse_t -{ - public bool m_bSuccess; - public bool m_bLocalSuccess; - public EResult m_result; -} -[StructLayout(LayoutKind.Sequential)] public struct LowBatteryPower_t -{ - public byte m_nMinutesBatteryLeft; -} -[StructLayout(LayoutKind.Sequential)] public struct SteamAPICallCompleted_t -{ - public ulong m_hAsyncCall; -} -[StructLayout(LayoutKind.Sequential)] public struct CheckFileSignature_t -{ - public ECheckFileSignature m_eCheckFileSignature; -} -[StructLayout(LayoutKind.Sequential)] public struct GamepadTextInputDismissed_t -{ - public bool m_bSubmitted; - public uint m_unSubmittedText; -} -[StructLayout(LayoutKind.Sequential)] public struct MatchMakingKeyValuePair_t -{ - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256, ArraySubType = UnmanagedType.I1)] - public char[] m_szKey; //char[256] - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256, ArraySubType = UnmanagedType.I1)] - public char[] m_szValue; //char[256] -} -[StructLayout(LayoutKind.Sequential)] public struct servernetadr_t -{ - public char m_usConnectionPort; - public char m_usQueryPort; - public uint m_unIP; -} -[StructLayout(LayoutKind.Sequential)] public struct gameserveritem_t -{ - public servernetadr_t m_NetAdr; - public int m_nPing; - public bool m_bHadSuccessfulResponse; - public bool m_bDoNotRefresh; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 32, ArraySubType = UnmanagedType.I1)] - public char[] m_szGameDir; //char[32] - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 32, ArraySubType = UnmanagedType.I1)] - public char[] m_szMap; //char[32] - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 64, ArraySubType = UnmanagedType.I1)] - public char[] m_szGameDescription; //char[64] - public uint m_nAppID; - public int m_nPlayers; - public int m_nMaxPlayers; - public int m_nBotPlayers; - public bool m_bPassword; - public bool m_bSecure; - public uint m_ulTimeLastPlayed; - public int m_nServerVersion; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 64, ArraySubType = UnmanagedType.I1)] - public char[] m_szServerName; //char[64] - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 128, ArraySubType = UnmanagedType.I1)] - public char[] m_szGameTags; //char[128] - public ulong m_steamID; -} -[StructLayout(LayoutKind.Sequential)] public struct FavoritesListChanged_t -{ - public uint m_nIP; - public uint m_nQueryPort; - public uint m_nConnPort; - public uint m_nAppID; - public uint m_nFlags; - public bool m_bAdd; - public uint m_unAccountId; -} -[StructLayout(LayoutKind.Sequential)] public struct LobbyInvite_t -{ - public ulong m_ulSteamIDUser; - public ulong m_ulSteamIDLobby; - public ulong m_ulGameID; -} -[StructLayout(LayoutKind.Sequential)] public struct LobbyEnter_t -{ - public ulong m_ulSteamIDLobby; - public uint m_rgfChatPermissions; - public bool m_bLocked; - public uint m_EChatRoomEnterResponse; -} -[StructLayout(LayoutKind.Sequential)] public struct LobbyDataUpdate_t -{ - public ulong m_ulSteamIDLobby; - public ulong m_ulSteamIDMember; - public byte m_bSuccess; -} -[StructLayout(LayoutKind.Sequential)] public struct LobbyChatUpdate_t -{ - public ulong m_ulSteamIDLobby; - public ulong m_ulSteamIDUserChanged; - public ulong m_ulSteamIDMakingChange; - public uint m_rgfChatMemberStateChange; -} -[StructLayout(LayoutKind.Sequential)] public struct LobbyChatMsg_t -{ - public ulong m_ulSteamIDLobby; - public ulong m_ulSteamIDUser; - public byte m_eChatEntryType; - public uint m_iChatID; -} -[StructLayout(LayoutKind.Sequential)] public struct LobbyGameCreated_t -{ - public ulong m_ulSteamIDLobby; - public ulong m_ulSteamIDGameServer; - public uint m_unIP; - public char m_usPort; -} -[StructLayout(LayoutKind.Sequential)] public struct LobbyMatchList_t -{ - public uint m_nLobbiesMatching; -} -[StructLayout(LayoutKind.Sequential)] public struct LobbyKicked_t -{ - public ulong m_ulSteamIDLobby; - public ulong m_ulSteamIDAdmin; - public byte m_bKickedDueToDisconnect; -} -[StructLayout(LayoutKind.Sequential)] public struct LobbyCreated_t -{ - public EResult m_eResult; - public ulong m_ulSteamIDLobby; -} -[StructLayout(LayoutKind.Sequential)] public struct PSNGameBootInviteResult_t -{ - public bool m_bGameBootInviteExists; - public ulong m_steamIDLobby; -} -[StructLayout(LayoutKind.Sequential)] public struct FavoritesListAccountsUpdated_t -{ - public EResult m_eResult; -} -[StructLayout(LayoutKind.Sequential)] public struct SteamParamStringArray_t -{ - public string m_ppStrings; - public int m_nNumStrings; -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStorageAppSyncedClient_t -{ - public uint m_nAppID; - public EResult m_eResult; - public int m_unNumDownloads; -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStorageAppSyncedServer_t -{ - public uint m_nAppID; - public EResult m_eResult; - public int m_unNumUploads; -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStorageAppSyncProgress_t -{ - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 260, ArraySubType = UnmanagedType.I1)] - public char[] m_rgchCurrentFile; //char[260] - public uint m_nAppID; - public uint m_uBytesTransferredThisChunk; - public double m_dAppPercentComplete; - public bool m_bUploading; -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStorageAppSyncStatusCheck_t -{ - public uint m_nAppID; - public EResult m_eResult; -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStorageConflictResolution_t -{ - public uint m_nAppID; - public EResult m_eResult; -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStorageFileShareResult_t -{ - public EResult m_eResult; - public ulong m_hFile; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 260, ArraySubType = UnmanagedType.I1)] - public char[] m_rgchFilename; //char[260] -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStoragePublishFileResult_t -{ - public EResult m_eResult; - public ulong m_nPublishedFileId; - public bool m_bUserNeedsToAcceptWorkshopLegalAgreement; -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStorageDeletePublishedFileResult_t -{ - public EResult m_eResult; - public ulong m_nPublishedFileId; -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStorageEnumerateUserPublishedFilesResult_t -{ - public EResult m_eResult; - public int m_nResultsReturned; - public int m_nTotalResultCount; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U8)] - public ulong[] m_rgPublishedFileId; //ulong[50] -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStorageSubscribePublishedFileResult_t -{ - public EResult m_eResult; - public ulong m_nPublishedFileId; -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStorageEnumerateUserSubscribedFilesResult_t -{ - public EResult m_eResult; - public int m_nResultsReturned; - public int m_nTotalResultCount; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U8)] - public ulong[] m_rgPublishedFileId; //ulong[50] - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U4)] - public uint[] m_rgRTimeSubscribed; //uint[50] -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStorageUnsubscribePublishedFileResult_t -{ - public EResult m_eResult; - public ulong m_nPublishedFileId; -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStorageUpdatePublishedFileResult_t -{ - public EResult m_eResult; - public ulong m_nPublishedFileId; - public bool m_bUserNeedsToAcceptWorkshopLegalAgreement; -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStorageDownloadUGCResult_t -{ - public EResult m_eResult; - public ulong m_hFile; - public uint m_nAppID; - public int m_nSizeInBytes; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 260, ArraySubType = UnmanagedType.I1)] - public char[] m_pchFileName; //char[260] - public ulong m_ulSteamIDOwner; -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStorageGetPublishedFileDetailsResult_t -{ - public EResult m_eResult; - public ulong m_nPublishedFileId; - public uint m_nCreatorAppID; - public uint m_nConsumerAppID; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 129, ArraySubType = UnmanagedType.I1)] - public char[] m_rgchTitle; //char[129] - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 8000, ArraySubType = UnmanagedType.I1)] - public char[] m_rgchDescription; //char[8000] - public ulong m_hFile; - public ulong m_hPreviewFile; - public ulong m_ulSteamIDOwner; - public uint m_rtimeCreated; - public uint m_rtimeUpdated; - public ERemoteStoragePublishedFileVisibility m_eVisibility; - public bool m_bBanned; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1025, ArraySubType = UnmanagedType.I1)] - public char[] m_rgchTags; //char[1025] - public bool m_bTagsTruncated; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 260, ArraySubType = UnmanagedType.I1)] - public char[] m_pchFileName; //char[260] - public int m_nFileSize; - public int m_nPreviewFileSize; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256, ArraySubType = UnmanagedType.I1)] - public char[] m_rgchURL; //char[256] - public EWorkshopFileType m_eFileType; - public bool m_bAcceptedForUse; -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStorageEnumerateWorkshopFilesResult_t -{ - public EResult m_eResult; - public int m_nResultsReturned; - public int m_nTotalResultCount; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U8)] - public ulong[] m_rgPublishedFileId; //ulong[50] - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.R4)] - public float[] m_rgScore; //float[50] - public uint m_nAppId; - public uint m_unStartIndex; -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStorageGetPublishedItemVoteDetailsResult_t -{ - public EResult m_eResult; - public ulong m_unPublishedFileId; - public int m_nVotesFor; - public int m_nVotesAgainst; - public int m_nReports; - public float m_fScore; -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStoragePublishedFileSubscribed_t -{ - public ulong m_nPublishedFileId; - public uint m_nAppID; -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStoragePublishedFileUnsubscribed_t -{ - public ulong m_nPublishedFileId; - public uint m_nAppID; -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStoragePublishedFileDeleted_t -{ - public ulong m_nPublishedFileId; - public uint m_nAppID; -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStorageUpdateUserPublishedItemVoteResult_t -{ - public EResult m_eResult; - public ulong m_nPublishedFileId; -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStorageUserVoteDetails_t -{ - public EResult m_eResult; - public ulong m_nPublishedFileId; - public EWorkshopVote m_eVote; -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStorageEnumerateUserSharedWorkshopFilesResult_t -{ - public EResult m_eResult; - public int m_nResultsReturned; - public int m_nTotalResultCount; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U8)] - public ulong[] m_rgPublishedFileId; //ulong[50] -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStorageSetUserPublishedFileActionResult_t -{ - public EResult m_eResult; - public ulong m_nPublishedFileId; - public EWorkshopFileAction m_eAction; -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStorageEnumeratePublishedFilesByUserActionResult_t -{ - public EResult m_eResult; - public EWorkshopFileAction m_eAction; - public int m_nResultsReturned; - public int m_nTotalResultCount; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U8)] - public ulong[] m_rgPublishedFileId; //ulong[50] - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U4)] - public uint[] m_rgRTimeUpdated; //uint[50] -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStoragePublishFileProgress_t -{ - public double m_dPercentFile; - public bool m_bPreview; -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStoragePublishedFileUpdated_t -{ - public ulong m_nPublishedFileId; - public uint m_nAppID; - public ulong m_hFile; -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStorageFileWriteAsyncComplete_t -{ - public EResult m_eResult; -} -[StructLayout(LayoutKind.Sequential)] public struct RemoteStorageFileReadAsyncComplete_t -{ - public ulong m_hFileReadAsync; - public EResult m_eResult; - public uint m_nOffset; - public uint m_cubRead; -} -[StructLayout(LayoutKind.Sequential)] public struct LeaderboardEntry_t -{ - public ulong m_steamIDUser; - public int m_nGlobalRank; - public int m_nScore; - public int m_cDetails; - public ulong m_hUGC; -} -[StructLayout(LayoutKind.Sequential)] public struct UserStatsReceived_t -{ - public ulong m_nGameID; - public EResult m_eResult; - public ulong m_steamIDUser; -} -[StructLayout(LayoutKind.Sequential)] public struct UserStatsStored_t -{ - public ulong m_nGameID; - public EResult m_eResult; -} -[StructLayout(LayoutKind.Sequential)] public struct UserAchievementStored_t -{ - public ulong m_nGameID; - public bool m_bGroupAchievement; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 128, ArraySubType = UnmanagedType.I1)] - public char[] m_rgchAchievementName; //char[128] - public uint m_nCurProgress; - public uint m_nMaxProgress; -} -[StructLayout(LayoutKind.Sequential)] public struct LeaderboardFindResult_t -{ - public ulong m_hSteamLeaderboard; - public byte m_bLeaderboardFound; -} -[StructLayout(LayoutKind.Sequential)] public struct LeaderboardScoresDownloaded_t -{ - public ulong m_hSteamLeaderboard; - public ulong m_hSteamLeaderboardEntries; - public int m_cEntryCount; -} -[StructLayout(LayoutKind.Sequential)] public struct LeaderboardScoreUploaded_t -{ - public byte m_bSuccess; - public ulong m_hSteamLeaderboard; - public int m_nScore; - public byte m_bScoreChanged; - public int m_nGlobalRankNew; - public int m_nGlobalRankPrevious; -} -[StructLayout(LayoutKind.Sequential)] public struct NumberOfCurrentPlayers_t -{ - public byte m_bSuccess; - public int m_cPlayers; -} -[StructLayout(LayoutKind.Sequential)] public struct UserStatsUnloaded_t -{ - public ulong m_steamIDUser; -} -[StructLayout(LayoutKind.Sequential)] public struct UserAchievementIconFetched_t -{ - public ulong m_nGameID; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 128, ArraySubType = UnmanagedType.I1)] - public char[] m_rgchAchievementName; //char[128] - public bool m_bAchieved; - public int m_nIconHandle; -} -[StructLayout(LayoutKind.Sequential)] public struct GlobalAchievementPercentagesReady_t -{ - public ulong m_nGameID; - public EResult m_eResult; -} -[StructLayout(LayoutKind.Sequential)] public struct LeaderboardUGCSet_t -{ - public EResult m_eResult; - public ulong m_hSteamLeaderboard; -} -[StructLayout(LayoutKind.Sequential)] public struct PS3TrophiesInstalled_t -{ - public ulong m_nGameID; - public EResult m_eResult; - public ulong m_ulRequiredDiskSpace; -} -[StructLayout(LayoutKind.Sequential)] public struct GlobalStatsReceived_t -{ - public ulong m_nGameID; - public EResult m_eResult; -} -[StructLayout(LayoutKind.Sequential)] public struct DlcInstalled_t -{ - public uint m_nAppID; -} -[StructLayout(LayoutKind.Sequential)] public struct RegisterActivationCodeResponse_t -{ - public ERegisterActivationCodeResult m_eResult; - public uint m_unPackageRegistered; -} -[StructLayout(LayoutKind.Sequential)] public struct AppProofOfPurchaseKeyResponse_t -{ - public EResult m_eResult; - public uint m_nAppID; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 64, ArraySubType = UnmanagedType.I1)] - public char[] m_rgchKey; //char[64] -} -[StructLayout(LayoutKind.Sequential)] public struct P2PSessionState_t -{ - public byte m_bConnectionActive; - public byte m_bConnecting; - public byte m_eP2PSessionError; - public byte m_bUsingRelay; - public int m_nBytesQueuedForSend; - public int m_nPacketsQueuedForSend; - public uint m_nRemoteIP; - public char m_nRemotePort; -} -[StructLayout(LayoutKind.Sequential)] public struct P2PSessionRequest_t -{ - public ulong m_steamIDRemote; -} -[StructLayout(LayoutKind.Sequential)] public struct P2PSessionConnectFail_t -{ - public ulong m_steamIDRemote; - public byte m_eP2PSessionError; -} -[StructLayout(LayoutKind.Sequential)] public struct SocketStatusCallback_t -{ - public uint m_hSocket; - public uint m_hListenSocket; - public ulong m_steamIDRemote; - public int m_eSNetSocketState; -} -[StructLayout(LayoutKind.Sequential)] public struct ScreenshotReady_t -{ - public uint m_hLocal; - public EResult m_eResult; -} -[StructLayout(LayoutKind.Sequential)] public struct VolumeHasChanged_t -{ - public float m_flNewVolume; -} -[StructLayout(LayoutKind.Sequential)] public struct MusicPlayerWantsShuffled_t -{ - public bool m_bShuffled; -} -[StructLayout(LayoutKind.Sequential)] public struct MusicPlayerWantsLooped_t -{ - public bool m_bLooped; -} -[StructLayout(LayoutKind.Sequential)] public struct MusicPlayerWantsVolume_t -{ - public float m_flNewVolume; -} -[StructLayout(LayoutKind.Sequential)] public struct MusicPlayerSelectsQueueEntry_t -{ - public int nID; -} -[StructLayout(LayoutKind.Sequential)] public struct MusicPlayerSelectsPlaylistEntry_t -{ - public int nID; -} -[StructLayout(LayoutKind.Sequential)] public struct MusicPlayerWantsPlayingRepeatStatus_t -{ - public int m_nPlayingRepeatStatus; -} -[StructLayout(LayoutKind.Sequential)] public struct HTTPRequestCompleted_t -{ - public uint m_hRequest; - public ulong m_ulContextValue; - public bool m_bRequestSuccessful; - public EHTTPStatusCode m_eStatusCode; - public uint m_unBodySize; -} -[StructLayout(LayoutKind.Sequential)] public struct HTTPRequestHeadersReceived_t -{ - public uint m_hRequest; - public ulong m_ulContextValue; -} -[StructLayout(LayoutKind.Sequential)] public struct HTTPRequestDataReceived_t -{ - public uint m_hRequest; - public ulong m_ulContextValue; - 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; - public float x; - public float y; - public bool bActive; -} -[StructLayout(LayoutKind.Sequential)] public struct ControllerDigitalActionData_t -{ - public bool bState; - public bool bActive; -} -[StructLayout(LayoutKind.Sequential)] public struct SteamUGCDetails_t -{ - public ulong m_nPublishedFileId; - public EResult m_eResult; - public EWorkshopFileType m_eFileType; - public uint m_nCreatorAppID; - public uint m_nConsumerAppID; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 129, ArraySubType = UnmanagedType.I1)] - public char[] m_rgchTitle; //char[129] - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 8000, ArraySubType = UnmanagedType.I1)] - public char[] m_rgchDescription; //char[8000] - public ulong m_ulSteamIDOwner; - public uint m_rtimeCreated; - public uint m_rtimeUpdated; - public uint m_rtimeAddedToUserList; - public ERemoteStoragePublishedFileVisibility m_eVisibility; - public bool m_bBanned; - public bool m_bAcceptedForUse; - public bool m_bTagsTruncated; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1025, ArraySubType = UnmanagedType.I1)] - public char[] m_rgchTags; //char[1025] - public ulong m_hFile; - public ulong m_hPreviewFile; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 260, ArraySubType = UnmanagedType.I1)] - public char[] m_pchFileName; //char[260] - public int m_nFileSize; - public int m_nPreviewFileSize; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256, ArraySubType = UnmanagedType.I1)] - public char[] m_rgchURL; //char[256] - public uint m_unVotesUp; - public uint m_unVotesDown; - public float m_flScore; - public uint m_unNumChildren; -} -[StructLayout(LayoutKind.Sequential)] public struct SteamUGCQueryCompleted_t -{ - public ulong m_handle; - public EResult m_eResult; - public uint m_unNumResultsReturned; - public uint m_unTotalMatchingResults; - public bool m_bCachedData; -} -[StructLayout(LayoutKind.Sequential)] public struct SteamUGCRequestUGCDetailsResult_t -{ - public SteamUGCDetails_t m_details; - public bool m_bCachedData; -} -[StructLayout(LayoutKind.Sequential)] public struct CreateItemResult_t -{ - public EResult m_eResult; - public ulong m_nPublishedFileId; - public bool m_bUserNeedsToAcceptWorkshopLegalAgreement; -} -[StructLayout(LayoutKind.Sequential)] public struct SubmitItemUpdateResult_t -{ - public EResult m_eResult; - public bool m_bUserNeedsToAcceptWorkshopLegalAgreement; -} -[StructLayout(LayoutKind.Sequential)] public struct DownloadItemResult_t -{ - public uint m_unAppID; - public ulong m_nPublishedFileId; - public EResult m_eResult; -} -[StructLayout(LayoutKind.Sequential)] public struct UserFavoriteItemsListChanged_t -{ - public ulong m_nPublishedFileId; - public EResult m_eResult; - public bool m_bWasAddRequest; -} -[StructLayout(LayoutKind.Sequential)] public struct SetUserItemVoteResult_t -{ - public ulong m_nPublishedFileId; - public EResult m_eResult; - public bool m_bVoteUp; -} -[StructLayout(LayoutKind.Sequential)] public struct GetUserItemVoteResult_t -{ - public ulong m_nPublishedFileId; - public EResult m_eResult; - public bool m_bVotedUp; - public bool m_bVotedDown; - public bool m_bVoteSkipped; -} -[StructLayout(LayoutKind.Sequential)] public struct SteamAppInstalled_t -{ - public uint m_nAppID; -} -[StructLayout(LayoutKind.Sequential)] public struct SteamAppUninstalled_t -{ - public uint m_nAppID; -} -[StructLayout(LayoutKind.Sequential)] public struct HTML_BrowserReady_t -{ - public uint unBrowserHandle; -} -[StructLayout(LayoutKind.Sequential)] public struct HTML_NeedsPaint_t -{ - public uint unBrowserHandle; - public string pBGRA; - public uint unWide; - public uint unTall; - public uint unUpdateX; - public uint unUpdateY; - public uint unUpdateWide; - public uint unUpdateTall; - public uint unScrollX; - public uint unScrollY; - public float flPageScale; - public uint unPageSerial; -} -[StructLayout(LayoutKind.Sequential)] public struct HTML_StartRequest_t -{ - public uint unBrowserHandle; - public string pchURL; - public string pchTarget; - public string pchPostData; - public bool bIsRedirect; -} -[StructLayout(LayoutKind.Sequential)] public struct HTML_CloseBrowser_t -{ - public uint unBrowserHandle; -} -[StructLayout(LayoutKind.Sequential)] public struct HTML_URLChanged_t -{ - public uint unBrowserHandle; - public string pchURL; - public string pchPostData; - public bool bIsRedirect; - public string pchPageTitle; - public bool bNewNavigation; -} -[StructLayout(LayoutKind.Sequential)] public struct HTML_FinishedRequest_t -{ - public uint unBrowserHandle; - public string pchURL; - public string pchPageTitle; -} -[StructLayout(LayoutKind.Sequential)] public struct HTML_OpenLinkInNewTab_t -{ - public uint unBrowserHandle; - public string pchURL; -} -[StructLayout(LayoutKind.Sequential)] public struct HTML_ChangedTitle_t -{ - public uint unBrowserHandle; - public string pchTitle; -} -[StructLayout(LayoutKind.Sequential)] public struct HTML_SearchResults_t -{ - public uint unBrowserHandle; - public uint unResults; - public uint unCurrentMatch; -} -[StructLayout(LayoutKind.Sequential)] public struct HTML_CanGoBackAndForward_t -{ - public uint unBrowserHandle; - public bool bCanGoBack; - public bool bCanGoForward; -} -[StructLayout(LayoutKind.Sequential)] public struct HTML_HorizontalScroll_t -{ - public uint unBrowserHandle; - public uint unScrollMax; - public uint unScrollCurrent; - public float flPageScale; - public bool bVisible; - public uint unPageSize; -} -[StructLayout(LayoutKind.Sequential)] public struct HTML_VerticalScroll_t -{ - public uint unBrowserHandle; - public uint unScrollMax; - public uint unScrollCurrent; - public float flPageScale; - public bool bVisible; - public uint unPageSize; -} -[StructLayout(LayoutKind.Sequential)] public struct HTML_LinkAtPosition_t -{ - public uint unBrowserHandle; - public uint x; - public uint y; - public string pchURL; - public bool bInput; - public bool bLiveLink; -} -[StructLayout(LayoutKind.Sequential)] public struct HTML_JSAlert_t -{ - public uint unBrowserHandle; - public string pchMessage; -} -[StructLayout(LayoutKind.Sequential)] public struct HTML_JSConfirm_t -{ - public uint unBrowserHandle; - public string pchMessage; -} -[StructLayout(LayoutKind.Sequential)] public struct HTML_FileOpenDialog_t -{ - public uint unBrowserHandle; - public string pchTitle; - public string pchInitialFile; -} -[StructLayout(LayoutKind.Sequential)] public struct HTML_NewWindow_t -{ - public uint unBrowserHandle; - public string pchURL; - public uint unX; - public uint unY; - public uint unWide; - public uint unTall; - public uint unNewWindow_BrowserHandle; -} -[StructLayout(LayoutKind.Sequential)] public struct HTML_SetCursor_t -{ - public uint unBrowserHandle; - public uint eMouseCursor; -} -[StructLayout(LayoutKind.Sequential)] public struct HTML_StatusText_t -{ - public uint unBrowserHandle; - public string pchMsg; -} -[StructLayout(LayoutKind.Sequential)] public struct HTML_ShowToolTip_t -{ - public uint unBrowserHandle; - public string pchMsg; -} -[StructLayout(LayoutKind.Sequential)] public struct HTML_UpdateToolTip_t -{ - public uint unBrowserHandle; - public string pchMsg; -} -[StructLayout(LayoutKind.Sequential)] public struct HTML_HideToolTip_t -{ - public uint unBrowserHandle; -} -[StructLayout(LayoutKind.Sequential)] public struct SteamItemDetails_t -{ - public ulong m_itemId; - public int m_iDefinition; - public char m_unQuantity; - public char m_unFlags; -} -[StructLayout(LayoutKind.Sequential)] public struct SteamInventoryResultReady_t -{ - public int m_handle; - public EResult m_result; -} -[StructLayout(LayoutKind.Sequential)] public struct SteamInventoryFullUpdate_t -{ - public int m_handle; -} -[StructLayout(LayoutKind.Sequential)] public struct BroadcastUploadStop_t -{ - public EBroadcastUploadResult m_eResult; -} -[StructLayout(LayoutKind.Sequential)] public struct GetVideoURLResult_t -{ - public EResult m_eResult; - public uint m_unVideoAppID; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256, ArraySubType = UnmanagedType.I1)] - public char[] m_rgchURL; //char[256] -} -[StructLayout(LayoutKind.Sequential)] public struct CCallbackBase -{ - public byte m_nCallbackFlags; - public int m_iCallback; -} -[StructLayout(LayoutKind.Sequential)] public struct CCallResult -{ - public ulong m_hAPICall; - public IntPtr m_pObj; - public IntPtr m_Func; -} -[StructLayout(LayoutKind.Sequential)] public struct CCallback -{ - public IntPtr m_pObj; - public IntPtr m_Func; -} -[StructLayout(LayoutKind.Sequential)] public struct CSteamAPIContext -{ - public ISteamUser m_pSteamUser; - public ISteamFriends m_pSteamFriends; - public ISteamUtils m_pSteamUtils; - public ISteamMatchmaking m_pSteamMatchmaking; - public ISteamUserStats m_pSteamUserStats; - public ISteamApps m_pSteamApps; - public ISteamMatchmakingServers m_pSteamMatchmakingServers; - public ISteamNetworking m_pSteamNetworking; - public ISteamRemoteStorage m_pSteamRemoteStorage; - public ISteamScreenshots m_pSteamScreenshots; - public ISteamHTTP m_pSteamHTTP; - public ISteamUnifiedMessages m_pSteamUnifiedMessages; - public ISteamController m_pController; - public ISteamUGC m_pSteamUGC; - public ISteamAppList m_pSteamAppList; - public ISteamMusic m_pSteamMusic; - public ISteamMusicRemote m_pSteamMusicRemote; - public ISteamHTMLSurface m_pSteamHTMLSurface; - public ISteamInventory m_pSteamInventory; - public ISteamVideo m_pSteamVideo; -} -[StructLayout(LayoutKind.Sequential)] public struct GSClientApprove_t -{ - public ulong m_SteamID; - public ulong m_OwnerSteamID; -} -[StructLayout(LayoutKind.Sequential)] public struct GSClientDeny_t -{ - public ulong m_SteamID; - public EDenyReason m_eDenyReason; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 128, ArraySubType = UnmanagedType.I1)] - public char[] m_rgchOptionalText; //char[128] -} -[StructLayout(LayoutKind.Sequential)] public struct GSClientKick_t -{ - public ulong m_SteamID; - public EDenyReason m_eDenyReason; -} -[StructLayout(LayoutKind.Sequential)] public struct GSClientAchievementStatus_t -{ - public ulong m_SteamID; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 128, ArraySubType = UnmanagedType.I1)] - public char[] m_pchAchievement; //char[128] - public bool m_bUnlocked; -} -[StructLayout(LayoutKind.Sequential)] public struct GSPolicyResponse_t -{ - public byte m_bSecure; -} -[StructLayout(LayoutKind.Sequential)] public struct GSGameplayStats_t -{ - public EResult m_eResult; - public int m_nRank; - public uint m_unTotalConnects; - public uint m_unTotalMinutesPlayed; -} -[StructLayout(LayoutKind.Sequential)] public struct GSClientGroupStatus_t -{ - public ulong m_SteamIDUser; - public ulong m_SteamIDGroup; - public bool m_bMember; - public bool m_bOfficer; -} -[StructLayout(LayoutKind.Sequential)] public struct GSReputation_t -{ - public EResult m_eResult; - public uint m_unReputationScore; - public bool m_bBanned; - public uint m_unBannedIP; - public char m_usBannedPort; - public ulong m_ulBannedGameID; - public uint m_unBanExpires; -} -[StructLayout(LayoutKind.Sequential)] public struct AssociateWithClanResult_t -{ - public EResult m_eResult; -} -[StructLayout(LayoutKind.Sequential)] public struct ComputeNewPlayerCompatibilityResult_t -{ - public EResult m_eResult; - public int m_cPlayersThatDontLikeCandidate; - public int m_cPlayersThatCandidateDoesntLike; - public int m_cClanPlayersThatDontLikeCandidate; - public ulong m_SteamIDCandidate; -} -[StructLayout(LayoutKind.Sequential)] public struct GSStatsReceived_t -{ - public EResult m_eResult; - public ulong m_steamIDUser; -} -[StructLayout(LayoutKind.Sequential)] public struct GSStatsStored_t -{ - public EResult m_eResult; - public ulong m_steamIDUser; -} -[StructLayout(LayoutKind.Sequential)] public struct GSStatsUnloaded_t -{ - public ulong m_steamIDUser; -} - -public class SteamAPI -{ -public static void Init(uint appId) -{ -SteamAPIInterop.SteamAPI_RestartAppIfNecessary (appId); -SteamAPIInterop.SteamAPI_Init (); -} - -public static void RunCallbacks() -{ -SteamAPIInterop.SteamAPI_RunCallbacks (); -} - -public static void RegisterCallback(IntPtr pCallback, int iCallback) -{ -SteamAPIInterop.SteamAPI_RegisterCallback (pCallback, iCallback); -} - -public static void UnregisterCallback(IntPtr pCallback) -{ -SteamAPIInterop.SteamAPI_UnregisterCallback (pCallback); -} - -public const int k_iSteamUserCallbacks = 100; -public const int k_iSteamGameServerCallbacks = 200; -public const int k_iSteamFriendsCallbacks = 300; -public const int k_iSteamBillingCallbacks = 400; -public const int k_iSteamMatchmakingCallbacks = 500; -public const int k_iSteamContentServerCallbacks = 600; -public const int k_iSteamUtilsCallbacks = 700; -public const int k_iClientFriendsCallbacks = 800; -public const int k_iClientUserCallbacks = 900; -public const int k_iSteamAppsCallbacks = 1000; -public const int k_iSteamUserStatsCallbacks = 1100; -public const int k_iSteamNetworkingCallbacks = 1200; -public const int k_iClientRemoteStorageCallbacks = 1300; -public const int k_iClientDepotBuilderCallbacks = 1400; -public const int k_iSteamGameServerItemsCallbacks = 1500; -public const int k_iClientUtilsCallbacks = 1600; -public const int k_iSteamGameCoordinatorCallbacks = 1700; -public const int k_iSteamGameServerStatsCallbacks = 1800; -public const int k_iSteam2AsyncCallbacks = 1900; -public const int k_iSteamGameStatsCallbacks = 2000; -public const int k_iClientHTTPCallbacks = 2100; -public const int k_iClientScreenshotsCallbacks = 2200; -public const int k_iSteamScreenshotsCallbacks = 2300; -public const int k_iClientAudioCallbacks = 2400; -public const int k_iClientUnifiedMessagesCallbacks = 2500; -public const int k_iSteamStreamLauncherCallbacks = 2600; -public const int k_iClientControllerCallbacks = 2700; -public const int k_iSteamControllerCallbacks = 2800; -public const int k_iClientParentalSettingsCallbacks = 2900; -public const int k_iClientDeviceAuthCallbacks = 3000; -public const int k_iClientNetworkDeviceManagerCallbacks = 3100; -public const int k_iClientMusicCallbacks = 3200; -public const int k_iClientRemoteClientManagerCallbacks = 3300; -public const int k_iClientUGCCallbacks = 3400; -public const int k_iSteamStreamClientCallbacks = 3500; -public const int k_IClientProductBuilderCallbacks = 3600; -public const int k_iClientShortcutsCallbacks = 3700; -public const int k_iClientRemoteControlManagerCallbacks = 3800; -public const int k_iSteamAppListCallbacks = 3900; -public const int k_iSteamMusicCallbacks = 4000; -public const int k_iSteamMusicRemoteCallbacks = 4100; -public const int k_iClientVRCallbacks = 4200; -public const int k_iClientReservedCallbacks = 4300; -public const int k_iSteamReservedCallbacks = 4400; -public const int k_iSteamHTMLSurfaceCallbacks = 4500; -public const int k_iClientVideoCallbacks = 4600; -public const int k_iClientInventoryCallbacks = 4700; -public const int k_cchPersonaNameMax = 128; -public const int k_cwchPersonaNameMax = 32; -public const int k_cchMaxRichPresenceKeys = 20; -public const int k_cchMaxRichPresenceKeyLength = 64; -public const int k_cchMaxRichPresenceValueLength = 256; -public const int k_cchStatNameMax = 128; -public const int k_cchLeaderboardNameMax = 128; -public const int k_cLeaderboardDetailsMax = 64; -public const const ClientUnifiedMessageHandle k_InvalidUnifiedMessageHandle = 0; -public const const SteamItemInstanceID_t k_SteamItemInstanceIDInvalid = 18446744073709551615; -public const const SteamInventoryResult_t k_SteamInventoryResultInvalid = -1; -public static ISteamClient SteamClient() -{ -return new CSteamClient(SteamAPIInterop.SteamClient()); -} - -public static ISteamUser SteamUser() -{ -return new CSteamUser(SteamAPIInterop.SteamUser()); -} - -public static ISteamFriends SteamFriends() -{ -return new CSteamFriends(SteamAPIInterop.SteamFriends()); -} - -public static ISteamUtils SteamUtils() -{ -return new CSteamUtils(SteamAPIInterop.SteamUtils()); -} - -public static ISteamMatchmaking SteamMatchmaking() -{ -return new CSteamMatchmaking(SteamAPIInterop.SteamMatchmaking()); -} - -public static ISteamMatchmakingServerListResponse SteamMatchmakingServerListResponse() -{ -return new CSteamMatchmakingServerListResponse(SteamAPIInterop.SteamMatchmakingServerListResponse()); -} - -public static ISteamMatchmakingPingResponse SteamMatchmakingPingResponse() -{ -return new CSteamMatchmakingPingResponse(SteamAPIInterop.SteamMatchmakingPingResponse()); -} - -public static ISteamMatchmakingPlayersResponse SteamMatchmakingPlayersResponse() -{ -return new CSteamMatchmakingPlayersResponse(SteamAPIInterop.SteamMatchmakingPlayersResponse()); -} - -public static ISteamMatchmakingRulesResponse SteamMatchmakingRulesResponse() -{ -return new CSteamMatchmakingRulesResponse(SteamAPIInterop.SteamMatchmakingRulesResponse()); -} - -public static ISteamMatchmakingServers SteamMatchmakingServers() -{ -return new CSteamMatchmakingServers(SteamAPIInterop.SteamMatchmakingServers()); -} - -public static ISteamRemoteStorage SteamRemoteStorage() -{ -return new CSteamRemoteStorage(SteamAPIInterop.SteamRemoteStorage()); -} - -public static ISteamUserStats SteamUserStats() -{ -return new CSteamUserStats(SteamAPIInterop.SteamUserStats()); -} - -public static ISteamApps SteamApps() -{ -return new CSteamApps(SteamAPIInterop.SteamApps()); -} - -public static ISteamNetworking SteamNetworking() -{ -return new CSteamNetworking(SteamAPIInterop.SteamNetworking()); -} - -public static ISteamScreenshots SteamScreenshots() -{ -return new CSteamScreenshots(SteamAPIInterop.SteamScreenshots()); -} - -public static ISteamMusic SteamMusic() -{ -return new CSteamMusic(SteamAPIInterop.SteamMusic()); -} - -public static ISteamMusicRemote SteamMusicRemote() -{ -return new CSteamMusicRemote(SteamAPIInterop.SteamMusicRemote()); -} - -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()); -} - -public static ISteamUGC SteamUGC() -{ -return new CSteamUGC(SteamAPIInterop.SteamUGC()); -} - -public static ISteamAppList SteamAppList() -{ -return new CSteamAppList(SteamAPIInterop.SteamAppList()); -} - -public static ISteamHTMLSurface SteamHTMLSurface() -{ -return new CSteamHTMLSurface(SteamAPIInterop.SteamHTMLSurface()); -} - -public static ISteamInventory SteamInventory() -{ -return new CSteamInventory(SteamAPIInterop.SteamInventory()); -} - -public static ISteamVideo SteamVideo() -{ -return new CSteamVideo(SteamAPIInterop.SteamVideo()); -} - -public static ISteamGameServer SteamGameServer() -{ -return new CSteamGameServer(SteamAPIInterop.SteamGameServer()); -} - -public static ISteamGameServerStats SteamGameServerStats() -{ -return new CSteamGameServerStats(SteamAPIInterop.SteamGameServerStats()); -} - -} - - - -} - diff --git a/public/steam/steam_gameserver.h b/public/steam/steam_gameserver.h index f58791f0..c6bdd52f 100644 --- a/public/steam/steam_gameserver.h +++ b/public/steam/steam_gameserver.h @@ -35,39 +35,80 @@ enum EServerMode // UDP packets for the master server updater. See references to GameSocketShare in isteamgameserver.h. // - The version string is usually in the form x.x.x.x, and is used by the master server to detect when the // server is out of date. (Only servers with the latest version will be listed.) -#ifndef _PS3 -#ifdef VERSION_SAFE_STEAM_API_INTERFACES -S_API bool SteamGameServer_InitSafe( uint32 unIP, uint16 usSteamPort, uint16 usGamePort, uint16 usQueryPort, EServerMode eServerMode, const char *pchVersionString ); -#else -S_API bool SteamGameServer_Init( uint32 unIP, uint16 usSteamPort, uint16 usGamePort, uint16 usQueryPort, EServerMode eServerMode, const char *pchVersionString ); -#endif +inline bool SteamGameServer_Init( uint32 unIP, uint16 usSteamPort, uint16 usGamePort, uint16 usQueryPort, EServerMode eServerMode, const char *pchVersionString ); -#else +S_API void SteamGameServer_Shutdown(); +S_API void SteamGameServer_RunCallbacks(); -#ifdef VERSION_SAFE_STEAM_API_INTERFACES -S_API bool SteamGameServer_InitSafe( const SteamPS3Params_t *ps3Params, uint32 unIP, uint16 usSteamPort, uint16 usGamePort, uint16 usQueryPort, EServerMode eServerMode, const char *pchVersionString ); -#else -S_API bool SteamGameServer_Init( const SteamPS3Params_t *ps3Params, uint32 unIP, uint16 usSteamPort, uint16 usGamePort, uint16 usQueryPort, EServerMode eServerMode, const char *pchVersionString ); -#endif +// Most Steam API functions allocate some amount of thread-local memory for +// parameter storage. Calling SteamGameServer_ReleaseCurrentThreadMemory() +// will free all API-related memory associated with the calling thread. +// This memory is released automatically by SteamGameServer_RunCallbacks(), +// so single-threaded servers do not need to explicitly call this function. +inline void SteamGameServer_ReleaseCurrentThreadMemory(); -#endif +S_API bool SteamGameServer_BSecure(); +S_API uint64 SteamGameServer_GetSteamID(); -#ifndef VERSION_SAFE_STEAM_API_INTERFACES -S_API ISteamGameServer *SteamGameServer(); -S_API ISteamUtils *SteamGameServerUtils(); -S_API ISteamNetworking *SteamGameServerNetworking(); -S_API ISteamGameServerStats *SteamGameServerStats(); -S_API ISteamHTTP *SteamGameServerHTTP(); -S_API ISteamInventory *SteamGameServerInventory(); -S_API ISteamUGC *SteamGameServerUGC(); + +//----------------------------------------------------------------------------------------------------------------------------------------------------------// +// Global accessors for game server C++ APIs. See individual isteam*.h files for details. +// You should not cache the results of these accessors or pass the result pointers across +// modules! Different modules may be compiled against different SDK header versions, and +// the interface pointers could therefore be different across modules. Every line of code +// which calls into a Steamworks API should retrieve the interface from a global accessor. +//----------------------------------------------------------------------------------------------------------------------------------------------------------// +#if !defined( STEAM_API_EXPORTS ) +inline ISteamClient *SteamGameServerClient(); +inline ISteamGameServer *SteamGameServer(); +inline ISteamUtils *SteamGameServerUtils(); +inline ISteamNetworking *SteamGameServerNetworking(); +inline ISteamGameServerStats *SteamGameServerStats(); +inline ISteamHTTP *SteamGameServerHTTP(); +inline ISteamInventory *SteamGameServerInventory(); +inline ISteamUGC *SteamGameServerUGC(); +inline ISteamApps *SteamGameServerApps(); #endif -S_API void SteamGameServer_Shutdown(); -S_API void SteamGameServer_RunCallbacks(); +class CSteamGameServerAPIContext +{ +public: + CSteamGameServerAPIContext() { Clear(); } + inline void Clear(); + inline bool Init(); + + ISteamClient *SteamClient() const { return m_pSteamClient; } + ISteamGameServer *SteamGameServer() const { return m_pSteamGameServer; } + ISteamUtils *SteamGameServerUtils() const { return m_pSteamGameServerUtils; } + ISteamNetworking *SteamGameServerNetworking() const { return m_pSteamGameServerNetworking; } + ISteamGameServerStats *SteamGameServerStats() const { return m_pSteamGameServerStats; } + ISteamHTTP *SteamHTTP() const { return m_pSteamHTTP; } + ISteamInventory *SteamInventory() const { return m_pSteamInventory; } + ISteamUGC *SteamUGC() const { return m_pSteamUGC; } + ISteamApps *SteamApps() const { return m_pSteamApps; } -S_API bool SteamGameServer_BSecure(); -S_API uint64 SteamGameServer_GetSteamID(); +private: + ISteamClient *m_pSteamClient; + ISteamGameServer *m_pSteamGameServer; + ISteamUtils *m_pSteamGameServerUtils; + ISteamNetworking *m_pSteamGameServerNetworking; + ISteamGameServerStats *m_pSteamGameServerStats; + ISteamHTTP *m_pSteamHTTP; + ISteamInventory *m_pSteamInventory; + ISteamUGC *m_pSteamUGC; + ISteamApps *m_pSteamApps; +}; + + +// Older SDKs exported this global pointer, but it is no longer supported. +// You should use SteamGameServerClient() or CSteamGameServerAPIContext to +// safely access the ISteamClient APIs from your game server application. +//S_API ISteamClient *g_pSteamClientGameServer; + +// SteamGameServer_InitSafe has been replaced with SteamGameServer_Init and +// is no longer supported. Use SteamGameServer_Init instead. +//S_API void S_CALLTYPE SteamGameServer_InitSafe(); //----------------------------------------------------------------------------------------------------------------------------------------------------------// @@ -80,7 +121,6 @@ S_API uint64 SteamGameServer_GetSteamID(); CCallbackManual< thisclass, callback_type, true > var; void func( callback_type *pParam ) - #define _STEAM_CALLBACK_GS( _, thisclass, func, param, var ) \ CCallback< thisclass, param, true > var; void func( param *pParam ) @@ -89,52 +129,45 @@ S_API uint64 SteamGameServer_GetSteamID(); // // The following functions are part of abstracting API access to the steamclient.dll, but should only be used in very specific cases //----------------------------------------------------------------------------------------------------------------------------------------------------------// -S_API HSteamPipe SteamGameServer_GetHSteamPipe(); - -#ifdef VERSION_SAFE_STEAM_API_INTERFACES -//----------------------------------------------------------------------------------------------------------------------------------------------------------// -// VERSION_SAFE_STEAM_API_INTERFACES uses CSteamAPIContext to provide interfaces to each module in a way that -// lets them each specify the interface versions they are compiled with. -// -// It's important that these stay inlined in the header so the calling module specifies the interface versions -// for whatever Steam API version it has. -//----------------------------------------------------------------------------------------------------------------------------------------------------------// +S_API HSteamPipe S_CALLTYPE SteamGameServer_GetHSteamPipe(); +S_API HSteamUser S_CALLTYPE SteamGameServer_GetHSteamUser(); +S_API bool S_CALLTYPE SteamInternal_GameServer_Init( uint32 unIP, uint16 usPort, uint16 usGamePort, uint16 usQueryPort, EServerMode eServerMode, const char *pchVersionString ); -S_API HSteamUser SteamGameServer_GetHSteamUser(); -class CSteamGameServerAPIContext +#if !defined( STEAM_API_EXPORTS ) +inline void S_CALLTYPE SteamGameServerInternal_OnContextInit( void* p ) { -public: - CSteamGameServerAPIContext(); - void Clear(); - - bool Init(); - - ISteamGameServer *SteamGameServer() { return m_pSteamGameServer; } - ISteamUtils *SteamGameServerUtils() { return m_pSteamGameServerUtils; } - ISteamNetworking *SteamGameServerNetworking() { return m_pSteamGameServerNetworking; } - ISteamGameServerStats *SteamGameServerStats() { return m_pSteamGameServerStats; } - ISteamHTTP *SteamHTTP() { return m_pSteamHTTP; } - ISteamInventory *SteamInventory() { return m_pSteamInventory; } - ISteamUGC *SteamUGC() { return m_pSteamUGC; } - -private: - ISteamGameServer *m_pSteamGameServer; - ISteamUtils *m_pSteamGameServerUtils; - ISteamNetworking *m_pSteamGameServerNetworking; - ISteamGameServerStats *m_pSteamGameServerStats; - ISteamHTTP *m_pSteamHTTP; - ISteamInventory *m_pSteamInventory; - ISteamUGC *m_pSteamUGC; -}; - -inline CSteamGameServerAPIContext::CSteamGameServerAPIContext() + ((CSteamGameServerAPIContext*)p)->Clear(); + if ( SteamGameServer_GetHSteamPipe() ) + ((CSteamGameServerAPIContext*)p)->Init(); +} +inline CSteamGameServerAPIContext& SteamGameServerInternal_ModuleContext() { - Clear(); + // SteamInternal_ContextInit takes a base pointer for the equivalent of + // struct { void (*pFn)(void* pCtx); uintp counter; CSteamAPIContext ctx; } + // Do not change layout of 2 + sizeof... or add non-pointer aligned data! + // NOTE: declaring "static CSteamAPIConext" creates a large function + // which queries the initialization status of the object. We know that + // it is pointer-aligned and fully memset with zeros, so just alias a + // static buffer of the appropriate size and call it a CSteamAPIContext. + static void* s_CallbackCounterAndContext[2 + sizeof( CSteamGameServerAPIContext ) / sizeof( void* )] = { (void*)&SteamGameServerInternal_OnContextInit, 0 }; + return *(CSteamGameServerAPIContext*)SteamInternal_ContextInit( s_CallbackCounterAndContext ); } +inline ISteamClient *SteamGameServerClient() { return SteamGameServerInternal_ModuleContext().SteamClient(); } +inline ISteamGameServer *SteamGameServer() { return SteamGameServerInternal_ModuleContext().SteamGameServer(); } +inline ISteamUtils *SteamGameServerUtils() { return SteamGameServerInternal_ModuleContext().SteamGameServerUtils(); } +inline ISteamNetworking *SteamGameServerNetworking() { return SteamGameServerInternal_ModuleContext().SteamGameServerNetworking(); } +inline ISteamGameServerStats *SteamGameServerStats() { return SteamGameServerInternal_ModuleContext().SteamGameServerStats(); } +inline ISteamHTTP *SteamGameServerHTTP() { return SteamGameServerInternal_ModuleContext().SteamHTTP(); } +inline ISteamInventory *SteamGameServerInventory() { return SteamGameServerInternal_ModuleContext().SteamInventory(); } +inline ISteamUGC *SteamGameServerUGC() { return SteamGameServerInternal_ModuleContext().SteamUGC(); } +inline ISteamApps *SteamGameServerApps() { return SteamGameServerInternal_ModuleContext().SteamApps(); } +#endif // !defined( STEAM_API_EXPORTS ) + inline void CSteamGameServerAPIContext::Clear() { + m_pSteamClient = NULL; m_pSteamGameServer = NULL; m_pSteamGameServerUtils = NULL; m_pSteamGameServerNetworking = NULL; @@ -142,50 +175,69 @@ inline void CSteamGameServerAPIContext::Clear() m_pSteamHTTP = NULL; m_pSteamInventory = NULL; m_pSteamUGC = NULL; + m_pSteamApps = NULL; } -S_API ISteamClient *g_pSteamClientGameServer; -// This function must be inlined so the module using steam_api.dll gets the version names they want. +// This function must be declared inline in the header so the module using steam_api.dll gets the version names they want. inline bool CSteamGameServerAPIContext::Init() { - if ( !g_pSteamClientGameServer ) - return false; - HSteamUser hSteamUser = SteamGameServer_GetHSteamUser(); HSteamPipe hSteamPipe = SteamGameServer_GetHSteamPipe(); + if ( !hSteamPipe ) + return false; - m_pSteamGameServer = g_pSteamClientGameServer->GetISteamGameServer( hSteamUser, hSteamPipe, STEAMGAMESERVER_INTERFACE_VERSION ); + m_pSteamClient = (ISteamClient*) SteamInternal_CreateInterface( STEAMCLIENT_INTERFACE_VERSION ); + if ( !m_pSteamClient ) + return false; + + m_pSteamGameServer = m_pSteamClient->GetISteamGameServer( hSteamUser, hSteamPipe, STEAMGAMESERVER_INTERFACE_VERSION ); if ( !m_pSteamGameServer ) return false; - m_pSteamGameServerUtils = g_pSteamClientGameServer->GetISteamUtils( hSteamPipe, STEAMUTILS_INTERFACE_VERSION ); + m_pSteamGameServerUtils = m_pSteamClient->GetISteamUtils( hSteamPipe, STEAMUTILS_INTERFACE_VERSION ); if ( !m_pSteamGameServerUtils ) return false; - m_pSteamGameServerNetworking = g_pSteamClientGameServer->GetISteamNetworking( hSteamUser, hSteamPipe, STEAMNETWORKING_INTERFACE_VERSION ); + m_pSteamGameServerNetworking = m_pSteamClient->GetISteamNetworking( hSteamUser, hSteamPipe, STEAMNETWORKING_INTERFACE_VERSION ); if ( !m_pSteamGameServerNetworking ) return false; - m_pSteamGameServerStats = g_pSteamClientGameServer->GetISteamGameServerStats( hSteamUser, hSteamPipe, STEAMGAMESERVERSTATS_INTERFACE_VERSION ); + m_pSteamGameServerStats = m_pSteamClient->GetISteamGameServerStats( hSteamUser, hSteamPipe, STEAMGAMESERVERSTATS_INTERFACE_VERSION ); if ( !m_pSteamGameServerStats ) return false; - m_pSteamHTTP = g_pSteamClientGameServer->GetISteamHTTP( hSteamUser, hSteamPipe, STEAMHTTP_INTERFACE_VERSION ); + m_pSteamHTTP = m_pSteamClient->GetISteamHTTP( hSteamUser, hSteamPipe, STEAMHTTP_INTERFACE_VERSION ); if ( !m_pSteamHTTP ) return false; - m_pSteamInventory = g_pSteamClientGameServer->GetISteamInventory( hSteamUser, hSteamPipe, STEAMINVENTORY_INTERFACE_VERSION ); + m_pSteamInventory = m_pSteamClient->GetISteamInventory( hSteamUser, hSteamPipe, STEAMINVENTORY_INTERFACE_VERSION ); if ( !m_pSteamInventory ) return false; - m_pSteamUGC = g_pSteamClientGameServer->GetISteamUGC( hSteamUser, hSteamPipe, STEAMUGC_INTERFACE_VERSION ); + m_pSteamUGC = m_pSteamClient->GetISteamUGC( hSteamUser, hSteamPipe, STEAMUGC_INTERFACE_VERSION ); if ( !m_pSteamUGC ) return false; + m_pSteamApps = m_pSteamClient->GetISteamApps( hSteamUser, hSteamPipe, STEAMAPPS_INTERFACE_VERSION ); + if ( !m_pSteamApps ) + return false; + + return true; +} + + +inline bool SteamGameServer_Init( uint32 unIP, uint16 usSteamPort, uint16 usGamePort, uint16 usQueryPort, EServerMode eServerMode, const char *pchVersionString ) +{ + if ( !SteamInternal_GameServer_Init( unIP, usSteamPort, usGamePort, usQueryPort, eServerMode, pchVersionString ) ) + return false; + return true; } -#endif // VERSION_SAFE_STEAM_API_INTERFACES +inline void SteamGameServer_ReleaseCurrentThreadMemory() +{ + SteamAPI_ReleaseCurrentThreadMemory(); +} #endif // STEAM_GAMESERVER_H diff --git a/public/steam/steamclientpublic.h b/public/steam/steamclientpublic.h index a90a13cb..c129f56b 100644 --- a/public/steam/steamclientpublic.h +++ b/public/steam/steamclientpublic.h @@ -1,4 +1,4 @@ -//========= Copyright � 1996-2008, Valve LLC, All rights reserved. ============ +//========= Copyright ?1996-2008, Valve LLC, All rights reserved. ============ // // Purpose: // @@ -126,6 +126,17 @@ enum EResult k_EResultEmailSendFailure = 99, // Cannot send an email k_EResultNotSettled = 100, // Can't perform operation till payment has settled k_EResultNeedCaptcha = 101, // Needs to provide a valid captcha + k_EResultGSLTDenied = 102, // a game server login token owned by this token's owner has been banned + k_EResultGSOwnerDenied = 103, // game server owner is denied for other reason (account lock, community ban, vac ban, missing phone) + k_EResultInvalidItemType = 104, // the type of thing we were requested to act on is invalid + k_EResultIPBanned = 105, // the ip address has been banned from taking this action + 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 @@ -260,11 +271,15 @@ enum EAppOwnershipFlags k_EAppOwnershipFlags_LicenseCanceled = 0x2000, // Mark as canceled, but might be still active if recurring k_EAppOwnershipFlags_AutoGrant = 0x4000, // Ownership is based on any kind of autogrant license k_EAppOwnershipFlags_PendingGift = 0x8000, // user has pending gift to redeem + k_EAppOwnershipFlags_RentalNotActivated = 0x10000, // Rental hasn't been activated yet + k_EAppOwnershipFlags_Rental = 0x20000, // Is a rental + k_EAppOwnershipFlags_SiteLicense = 0x40000, // Is from a site license }; //----------------------------------------------------------------------------- // Purpose: designed as flags to allow filters masks +// NOTE: If you add to this, please update PackageAppType (SteamConfig) as well as populatePackageAppType //----------------------------------------------------------------------------- enum EAppType { @@ -279,10 +294,12 @@ enum EAppType k_EAppType_Driver = 0x080, // hardware driver updater (ATI, Razor etc) k_EAppType_Config = 0x100, // hidden app used to config Steam features (backpack, sales, etc) k_EAppType_Hardware = 0x200, // a hardware device (Steam Machine, Steam Controller, Steam Link, etc.) - // 0x400 is up for grabs here + k_EAppType_Franchise = 0x400, // A hub for collections of multiple apps, eg films, series, games k_EAppType_Video = 0x800, // A video component of either a Film or TVSeries (may be the feature, an episode, preview, making-of, etc) 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 @@ -327,8 +344,8 @@ enum EChatEntryType k_EChatEntryTypeWasBanned = 9, // user was banned (data: 64-bit steamid of actor performing the ban) k_EChatEntryTypeDisconnected = 10, // user disconnected k_EChatEntryTypeHistoricalChat = 11, // a chat message from user's chat history or offilne message - k_EChatEntryTypeReserved1 = 12, - k_EChatEntryTypeReserved2 = 13, + //k_EChatEntryTypeReserved1 = 12, // No longer used + //k_EChatEntryTypeReserved2 = 13, // No longer used k_EChatEntryTypeLinkBlocked = 14, // a link was removed by the chat filter. }; @@ -352,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 }; @@ -443,7 +461,7 @@ enum ELaunchOptionType k_ELaunchOptionType_SafeMode = 2, // runs the game in safe mode k_ELaunchOptionType_Multiplayer = 3, // runs the game in multiplayer mode k_ELaunchOptionType_Config = 4, // runs config tool for this game - k_ELaunchOptionType_VR = 5, // runs game in VR mode + k_ELaunchOptionType_OpenVR = 5, // runs game in VR mode using OpenVR k_ELaunchOptionType_Server = 6, // runs dedicated server for this game k_ELaunchOptionType_Editor = 7, // runs game editor k_ELaunchOptionType_Manual = 8, // shows game manual @@ -451,13 +469,98 @@ enum ELaunchOptionType k_ELaunchOptionType_Option1 = 10, // generic run option, uses description field for game name k_ELaunchOptionType_Option2 = 11, // generic run option, uses description field for game name k_ELaunchOptionType_Option3 = 12, // generic run option, uses description field for game name - + k_ELaunchOptionType_OculusVR = 13, // runs game in VR mode using the Oculus SDK + k_ELaunchOptionType_OpenVROverlay = 14, // runs an OpenVR dashboard overlay + k_ELaunchOptionType_OSVR = 15, // runs game in VR mode using the OSVR SDK + k_ELaunchOptionType_Dialog = 1000, // show launch options dialog }; -#pragma pack( push, 1 ) +//----------------------------------------------------------------------------- +// Purpose: true if this launch option is any of the vr launching types +//----------------------------------------------------------------------------- +static inline bool BIsVRLaunchOptionType( const ELaunchOptionType eType ) +{ + return eType == k_ELaunchOptionType_OpenVR + || eType == k_ELaunchOptionType_OpenVROverlay + || eType == k_ELaunchOptionType_OculusVR + || eType == k_ELaunchOptionType_OSVR; +} + + +//----------------------------------------------------------------------------- +// Purpose: code points for VR HMD vendors and models +// WARNING: DO NOT RENUMBER EXISTING VALUES - STORED IN A DATABASE +//----------------------------------------------------------------------------- +enum EVRHMDType +{ + k_eEVRHMDType_None = -1, // unknown vendor and model + + k_eEVRHMDType_Unknown = 0, // unknown vendor and model + + k_eEVRHMDType_HTC_Dev = 1, // original HTC dev kits + k_eEVRHMDType_HTC_VivePre = 2, // htc vive pre + k_eEVRHMDType_HTC_Vive = 3, // htc vive consumer release + + k_eEVRHMDType_HTC_Unknown = 20, // unknown htc hmd + + k_eEVRHMDType_Oculus_DK1 = 21, // Oculus DK1 + k_eEVRHMDType_Oculus_DK2 = 22, // Oculus DK2 + 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 + +}; + + +//----------------------------------------------------------------------------- +// Purpose: true if this is from an Oculus HMD +//----------------------------------------------------------------------------- +static inline bool BIsOculusHMD( EVRHMDType eType ) +{ + return eType == k_eEVRHMDType_Oculus_DK1 || eType == k_eEVRHMDType_Oculus_DK2 || eType == k_eEVRHMDType_Oculus_Rift || eType == k_eEVRHMDType_Oculus_Unknown; +} + + +//----------------------------------------------------------------------------- +// 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 +//----------------------------------------------------------------------------- +static inline bool BIsViveHMD( EVRHMDType eType ) +{ + return eType == k_eEVRHMDType_HTC_Dev || eType == k_eEVRHMDType_HTC_VivePre || eType == k_eEVRHMDType_HTC_Vive || eType == k_eEVRHMDType_HTC_Unknown; +} + + +#pragma pack( push, 1 ) #define CSTEAMID_DEFINED @@ -979,8 +1082,10 @@ public: CRC32_t crc32; CRC32_Init( &crc32 ); - CRC32_ProcessBuffer( &crc32, pchExePath, V_strlen( pchExePath ) ); - CRC32_ProcessBuffer( &crc32, pchAppName, V_strlen( pchAppName ) ); + if ( pchExePath ) + CRC32_ProcessBuffer( &crc32, pchExePath, V_strlen( pchExePath ) ); + if ( pchAppName ) + CRC32_ProcessBuffer( &crc32, pchAppName, V_strlen( pchAppName ) ); CRC32_Final( &crc32 ); // set the high-bit on the mod-id diff --git a/public/steam/steamencryptedappticket.h b/public/steam/steamencryptedappticket.h index d85df5a9..48c63b47 100644 --- a/public/steam/steamencryptedappticket.h +++ b/public/steam/steamencryptedappticket.h @@ -1,4 +1,4 @@ -//========= Copyright Valve Corporation, All rights reserved. ============// +//========= Copyright © 1996-2010, Valve LLC, All rights reserved. ============ // // Purpose: utilities to decode/decrypt a ticket from the // ISteamUser::RequestEncryptedAppTicket, ISteamUser::GetEncryptedAppTicket API diff --git a/public/steam/steamhttpenums.h b/public/steam/steamhttpenums.h index e15171f4..04ceda56 100644 --- a/public/steam/steamhttpenums.h +++ b/public/steam/steamhttpenums.h @@ -1,4 +1,4 @@ -//====== Copyright © 1996-2010, Valve Corporation, All rights reserved. ======= +//====== Copyright ? 1996-2010, Valve Corporation, All rights reserved. ======= // // Purpose: HTTP related enums, stuff that is shared by both clients and servers, and our // UI projects goes here. @@ -23,6 +23,7 @@ enum EHTTPMethod k_EHTTPMethodPUT, k_EHTTPMethodDELETE, k_EHTTPMethodOPTIONS, + k_EHTTPMethodPATCH, // The remaining HTTP methods are not yet supported, per rfc2616 section 5.1.1 only GET and HEAD are required for // a compliant general purpose server. We'll likely add more as we find uses for them. diff --git a/public/steam/steamps3params.h b/public/steam/steamps3params.h index d6f2fd75..c0741b4b 100644 --- a/public/steam/steamps3params.h +++ b/public/steam/steamps3params.h @@ -1,4 +1,4 @@ -//========= Copyright Valve Corporation, All rights reserved. ============// +//====== Copyright 1996-2008, Valve Corporation, All rights reserved. ======= // // Purpose: // diff --git a/public/steam/steamtypes.h b/public/steam/steamtypes.h index 22ce3e61..5eb5c8a4 100644 --- a/public/steam/steamtypes.h +++ b/public/steam/steamtypes.h @@ -1,4 +1,4 @@ -//========= Copyright © 1996-2008, Valve LLC, All rights reserved. ============ +//========= Copyright ?1996-2008, Valve LLC, All rights reserved. ============ // // Purpose: // @@ -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 @@ -84,7 +84,7 @@ typedef unsigned int uintp; #endif // else _WIN32 -#ifdef __clang__ +#ifdef API_GEN # define CLANG_ATTR(ATTR) __attribute__((annotate( ATTR ))) #else # define CLANG_ATTR(ATTR) @@ -93,6 +93,7 @@ typedef unsigned int uintp; #define METHOD_DESC(DESC) CLANG_ATTR( "desc:" #DESC ";" ) #define IGNOREATTR() CLANG_ATTR( "ignore" ) #define OUT_STRUCT() CLANG_ATTR( "out_struct: ;" ) +#define OUT_STRING() CLANG_ATTR( "out_string: ;" ) #define OUT_ARRAY_CALL(COUNTER,FUNCTION,PARAMS) CLANG_ATTR( "out_array_call:" #COUNTER "," #FUNCTION "," #PARAMS ";" ) #define OUT_ARRAY_COUNT(COUNTER, DESC) CLANG_ATTR( "out_array_count:" #COUNTER ";desc:" #DESC ) #define ARRAY_COUNT(COUNTER) CLANG_ATTR( "array_count:" #COUNTER ";" ) @@ -101,7 +102,8 @@ typedef unsigned int uintp; #define OUT_BUFFER_COUNT(COUNTER) CLANG_ATTR( "out_buffer_count:" #COUNTER ";" ) #define OUT_STRING_COUNT(COUNTER) CLANG_ATTR( "out_string_count:" #COUNTER ";" ) #define DESC(DESC) CLANG_ATTR("desc:" #DESC ";") - +#define CALL_RESULT(RESULT_TYPE) CLANG_ATTR("callresult:" #RESULT_TYPE ";") +#define CALL_BACK(RESULT_TYPE) CLANG_ATTR("callback:" #RESULT_TYPE ";") const int k_cubSaltSize = 8; typedef uint8 Salt_t[ k_cubSaltSize ]; @@ -174,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 diff --git a/public/steam/steamuniverse.h b/public/steam/steamuniverse.h index dd384dcc..1077e357 100644 --- a/public/steam/steamuniverse.h +++ b/public/steam/steamuniverse.h @@ -1,4 +1,4 @@ -//========= Copyright � 1996-2008, Valve LLC, All rights reserved. ============ +//========= Copyright ? 1996-2008, Valve LLC, All rights reserved. ============ // // Purpose: // diff --git a/public/steam/steamvr_flat.h b/public/steam/steamvr_flat.h deleted file mode 100644 index a521ecb1..00000000 --- a/public/steam/steamvr_flat.h +++ /dev/null @@ -1,33 +0,0 @@ -//====== Copyright (c) 1996-2008, Valve Corporation, All rights reserved. ======= -// -// Purpose: interface to user account information in Steam -// -//============================================================================= - -#ifndef STEAMVRFLAT_H -#define STEAMVRFLAT_H -#ifdef _WIN32 -#pragma once -#endif - - - -S_API void SteamAPI_IHmd_GetWindowBounds(intptr_t instancePtr, int32_t * pnX, int32_t * pnY, uint32_t * pnWidth, uint32_t * pnHeight); -S_API void SteamAPI_IHmd_GetRecommendedRenderTargetSize(intptr_t instancePtr, uint32_t * pnWidth, uint32_t * pnHeight); -S_API void SteamAPI_IHmd_GetEyeOutputViewport(intptr_t instancePtr, vr::Hmd_Eye eEye, uint32_t * pnX, uint32_t * pnY, uint32_t * pnWidth, uint32_t * pnHeight); -S_API struct vr::HmdMatrix44_t SteamAPI_IHmd_GetProjectionMatrix(intptr_t instancePtr, vr::Hmd_Eye eEye, float fNearZ, float fFarZ, vr::GraphicsAPIConvention eProjType); -S_API void SteamAPI_IHmd_GetProjectionRaw(intptr_t instancePtr, vr::Hmd_Eye eEye, float * pfLeft, float * pfRight, float * pfTop, float * pfBottom); -S_API struct vr::DistortionCoordinates_t SteamAPI_IHmd_ComputeDistortion(intptr_t instancePtr, vr::Hmd_Eye eEye, float fU, float fV); -S_API struct vr::HmdMatrix34_t SteamAPI_IHmd_GetHeadFromEyePose(intptr_t instancePtr, vr::Hmd_Eye eEye); -S_API bool SteamAPI_IHmd_GetViewMatrix(intptr_t instancePtr, float fSecondsFromNow, struct vr::HmdMatrix44_t * pMatLeftView, struct vr::HmdMatrix44_t * pMatRightView, vr::HmdTrackingResult * peResult); -S_API int32_t SteamAPI_IHmd_GetD3D9AdapterIndex(intptr_t instancePtr); -S_API void SteamAPI_IHmd_GetDXGIOutputInfo(intptr_t instancePtr, int32_t * pnAdapterIndex, int32_t * pnAdapterOutputIndex); -S_API void SteamAPI_IHmd_AttachToWindow(intptr_t instancePtr, void * hWnd); -S_API bool SteamAPI_IHmd_GetTrackerFromHeadPose(intptr_t instancePtr, float fPredictedSecondsFromNow, struct vr::HmdMatrix34_t * pmPose, vr::HmdTrackingResult * peResult); -S_API bool SteamAPI_IHmd_GetLastTrackerFromHeadPose(intptr_t instancePtr, struct vr::HmdMatrix34_t * pmPose); -S_API bool SteamAPI_IHmd_WillDriftInYaw(intptr_t instancePtr); -S_API void SteamAPI_IHmd_ZeroTracker(intptr_t instancePtr); -S_API struct vr::HmdMatrix34_t SteamAPI_IHmd_GetTrackerZeroPose(intptr_t instancePtr); -S_API uint32_t SteamAPI_IHmd_GetDriverId(intptr_t instancePtr, char * pchBuffer, uint32_t unBufferLen); -S_API uint32_t SteamAPI_IHmd_GetDisplayId(intptr_t instancePtr, char * pchBuffer, uint32_t unBufferLen); -#endif // STEAMVRFLAT_H diff --git a/public/steam/steamvr_interop.cs b/public/steam/steamvr_interop.cs deleted file mode 100644 index 15c5e9b0..00000000 --- a/public/steam/steamvr_interop.cs +++ /dev/null @@ -1,285 +0,0 @@ -//=== === Copyright 1996-2004, Valve Corporation, All rights reserved. ======= -// -// Purpose: -// -//============================================================================= - -using System; -using System.Runtime.InteropServices; - -namespace Valve.SteamVRInterop -{ - -class NativeEntrypoints -{ - - -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_IHmd_GetWindowBounds")] -internal static extern void SteamAPI_IHmd_GetWindowBounds(IntPtr instancePtr, ref int32_t pnX, ref int32_t pnY, ref uint32_t pnWidth, ref uint32_t pnHeight); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_IHmd_GetRecommendedRenderTargetSize")] -internal static extern void SteamAPI_IHmd_GetRecommendedRenderTargetSize(IntPtr instancePtr, ref uint32_t pnWidth, ref uint32_t pnHeight); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_IHmd_GetEyeOutputViewport")] -internal static extern void SteamAPI_IHmd_GetEyeOutputViewport(IntPtr instancePtr, vr::Hmd_Eye eEye, ref uint32_t pnX, ref uint32_t pnY, ref uint32_t pnWidth, ref uint32_t pnHeight); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_IHmd_GetProjectionMatrix")] -internal static extern vr::HmdMatrix44_t SteamAPI_IHmd_GetProjectionMatrix(IntPtr instancePtr, vr::Hmd_Eye eEye, float fNearZ, float fFarZ, vr::GraphicsAPIConvention eProjType); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_IHmd_GetProjectionRaw")] -internal static extern void SteamAPI_IHmd_GetProjectionRaw(IntPtr instancePtr, vr::Hmd_Eye eEye, ref float pfLeft, ref float pfRight, ref float pfTop, ref float pfBottom); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_IHmd_ComputeDistortion")] -internal static extern vr::DistortionCoordinates_t SteamAPI_IHmd_ComputeDistortion(IntPtr instancePtr, vr::Hmd_Eye eEye, float fU, float fV); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_IHmd_GetHeadFromEyePose")] -internal static extern vr::HmdMatrix34_t SteamAPI_IHmd_GetHeadFromEyePose(IntPtr instancePtr, vr::Hmd_Eye eEye); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_IHmd_GetViewMatrix")] -internal static extern bool SteamAPI_IHmd_GetViewMatrix(IntPtr instancePtr, float fSecondsFromNow, ref vr::HmdMatrix44_t pMatLeftView, ref vr::HmdMatrix44_t pMatRightView, ref vr::HmdTrackingResult peResult); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_IHmd_GetD3D9AdapterIndex")] -internal static extern int32_t SteamAPI_IHmd_GetD3D9AdapterIndex(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_IHmd_GetDXGIOutputInfo")] -internal static extern void SteamAPI_IHmd_GetDXGIOutputInfo(IntPtr instancePtr, ref int32_t pnAdapterIndex, ref int32_t pnAdapterOutputIndex); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_IHmd_AttachToWindow")] -internal static extern void SteamAPI_IHmd_AttachToWindow(IntPtr instancePtr, IntPtr hWnd); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_IHmd_GetTrackerFromHeadPose")] -internal static extern bool SteamAPI_IHmd_GetTrackerFromHeadPose(IntPtr instancePtr, float fPredictedSecondsFromNow, ref vr::HmdMatrix34_t pmPose, ref vr::HmdTrackingResult peResult); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_IHmd_GetLastTrackerFromHeadPose")] -internal static extern bool SteamAPI_IHmd_GetLastTrackerFromHeadPose(IntPtr instancePtr, ref vr::HmdMatrix34_t pmPose); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_IHmd_WillDriftInYaw")] -internal static extern bool SteamAPI_IHmd_WillDriftInYaw(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_IHmd_ZeroTracker")] -internal static extern void SteamAPI_IHmd_ZeroTracker(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_IHmd_GetTrackerZeroPose")] -internal static extern vr::HmdMatrix34_t SteamAPI_IHmd_GetTrackerZeroPose(IntPtr instancePtr); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_IHmd_GetDriverId")] -internal static extern uint32_t SteamAPI_IHmd_GetDriverId(IntPtr instancePtr, string pchBuffer, uint32_t unBufferLen); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_IHmd_GetDisplayId")] -internal static extern uint32_t SteamAPI_IHmd_GetDisplayId(IntPtr instancePtr, string pchBuffer, uint32_t unBufferLen); - -} - - -public abstract class IHmd -{ -public abstract void GetWindowBounds(out int32_t pnX,out int32_t pnY,out uint32_t pnWidth,out uint32_t pnHeight); -public abstract void GetRecommendedRenderTargetSize(out uint32_t pnWidth,out uint32_t pnHeight); -public abstract void GetEyeOutputViewport(vr::Hmd_Eye eEye,out uint32_t pnX,out uint32_t pnY,out uint32_t pnWidth,out uint32_t pnHeight); -public abstract vr::HmdMatrix44_t GetProjectionMatrix(vr::Hmd_Eye eEye,float fNearZ,float fFarZ,vr::GraphicsAPIConvention eProjType); -public abstract void GetProjectionRaw(vr::Hmd_Eye eEye,out float pfLeft,out float pfRight,out float pfTop,out float pfBottom); -public abstract vr::DistortionCoordinates_t ComputeDistortion(vr::Hmd_Eye eEye,float fU,float fV); -public abstract vr::HmdMatrix34_t GetHeadFromEyePose(vr::Hmd_Eye eEye); -public abstract bool GetViewMatrix(float fSecondsFromNow,out vr::HmdMatrix44_t pMatLeftView,out vr::HmdMatrix44_t pMatRightView,out vr::HmdTrackingResult peResult); -public abstract int32_t GetD3D9AdapterIndex(); -public abstract void GetDXGIOutputInfo(out int32_t pnAdapterIndex,out int32_t pnAdapterOutputIndex); -public abstract void AttachToWindow(IntPtr hWnd); -public abstract bool GetTrackerFromHeadPose(float fPredictedSecondsFromNow,out vr::HmdMatrix34_t pmPose,out vr::HmdTrackingResult peResult); -public abstract bool GetLastTrackerFromHeadPose(out vr::HmdMatrix34_t pmPose); -public abstract bool WillDriftInYaw(); -public abstract void ZeroTracker(); -public abstract vr::HmdMatrix34_t GetTrackerZeroPose(); -public abstract uint32_t GetDriverId(string pchBuffer,uint32_t unBufferLen); -public abstract uint32_t GetDisplayId(string pchBuffer,uint32_t unBufferLen); -} - - -public class CHmd : IHmd -{ -public CHmd(IntPtr hmd) -{ - m_hmd = hmd; -} -IntPtr m_hmd; - -private void CheckIfUsable() -{ - if (m_hmd == IntPtr.Zero) - { - throw new Exception("Steam Pointer not configured"); - } -} -public override void GetWindowBounds(out int32_t pnX,out int32_t pnY,out uint32_t pnWidth,out uint32_t pnHeight) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_IHmd_GetWindowBounds(m_hmd,ref pnX,ref pnY,ref pnWidth,ref pnHeight); -} -public override void GetRecommendedRenderTargetSize(out uint32_t pnWidth,out uint32_t pnHeight) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_IHmd_GetRecommendedRenderTargetSize(m_hmd,ref pnWidth,ref pnHeight); -} -public override void GetEyeOutputViewport(vr::Hmd_Eye eEye,out uint32_t pnX,out uint32_t pnY,out uint32_t pnWidth,out uint32_t pnHeight) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_IHmd_GetEyeOutputViewport(m_hmd,eEye,ref pnX,ref pnY,ref pnWidth,ref pnHeight); -} -public override vr::HmdMatrix44_t GetProjectionMatrix(vr::Hmd_Eye eEye,float fNearZ,float fFarZ,vr::GraphicsAPIConvention eProjType) -{ - CheckIfUsable(); - vr::HmdMatrix44_t result = NativeEntrypoints.SteamAPI_IHmd_GetProjectionMatrix(m_hmd,eEye,fNearZ,fFarZ,eProjType); - return result; -} -public override void GetProjectionRaw(vr::Hmd_Eye eEye,out float pfLeft,out float pfRight,out float pfTop,out float pfBottom) -{ - CheckIfUsable(); - pfLeft = 0; - pfRight = 0; - pfTop = 0; - pfBottom = 0; - NativeEntrypoints.SteamAPI_IHmd_GetProjectionRaw(m_hmd,eEye,ref pfLeft,ref pfRight,ref pfTop,ref pfBottom); -} -public override vr::DistortionCoordinates_t ComputeDistortion(vr::Hmd_Eye eEye,float fU,float fV) -{ - CheckIfUsable(); - vr::DistortionCoordinates_t result = NativeEntrypoints.SteamAPI_IHmd_ComputeDistortion(m_hmd,eEye,fU,fV); - return result; -} -public override vr::HmdMatrix34_t GetHeadFromEyePose(vr::Hmd_Eye eEye) -{ - CheckIfUsable(); - vr::HmdMatrix34_t result = NativeEntrypoints.SteamAPI_IHmd_GetHeadFromEyePose(m_hmd,eEye); - return result; -} -public override bool GetViewMatrix(float fSecondsFromNow,out vr::HmdMatrix44_t pMatLeftView,out vr::HmdMatrix44_t pMatRightView,out vr::HmdTrackingResult peResult) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_IHmd_GetViewMatrix(m_hmd,fSecondsFromNow,ref pMatLeftView,ref pMatRightView,ref peResult); - return result; -} -public override int32_t GetD3D9AdapterIndex() -{ - CheckIfUsable(); - int32_t result = NativeEntrypoints.SteamAPI_IHmd_GetD3D9AdapterIndex(m_hmd); - return result; -} -public override void GetDXGIOutputInfo(out int32_t pnAdapterIndex,out int32_t pnAdapterOutputIndex) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_IHmd_GetDXGIOutputInfo(m_hmd,ref pnAdapterIndex,ref pnAdapterOutputIndex); -} -public override void AttachToWindow(IntPtr hWnd) -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_IHmd_AttachToWindow(m_hmd,hWnd); -} -public override bool GetTrackerFromHeadPose(float fPredictedSecondsFromNow,out vr::HmdMatrix34_t pmPose,out vr::HmdTrackingResult peResult) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_IHmd_GetTrackerFromHeadPose(m_hmd,fPredictedSecondsFromNow,ref pmPose,ref peResult); - return result; -} -public override bool GetLastTrackerFromHeadPose(out vr::HmdMatrix34_t pmPose) -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_IHmd_GetLastTrackerFromHeadPose(m_hmd,ref pmPose); - return result; -} -public override bool WillDriftInYaw() -{ - CheckIfUsable(); - bool result = NativeEntrypoints.SteamAPI_IHmd_WillDriftInYaw(m_hmd); - return result; -} -public override void ZeroTracker() -{ - CheckIfUsable(); - NativeEntrypoints.SteamAPI_IHmd_ZeroTracker(m_hmd); -} -public override vr::HmdMatrix34_t GetTrackerZeroPose() -{ - CheckIfUsable(); - vr::HmdMatrix34_t result = NativeEntrypoints.SteamAPI_IHmd_GetTrackerZeroPose(m_hmd); - return result; -} -public override uint32_t GetDriverId(string pchBuffer,uint32_t unBufferLen) -{ - CheckIfUsable(); - uint32_t result = NativeEntrypoints.SteamAPI_IHmd_GetDriverId(m_hmd,pchBuffer,unBufferLen); - return result; -} -public override uint32_t GetDisplayId(string pchBuffer,uint32_t unBufferLen) -{ - CheckIfUsable(); - uint32_t result = NativeEntrypoints.SteamAPI_IHmd_GetDisplayId(m_hmd,pchBuffer,unBufferLen); - return result; -} -} - - -public class SteamVRInterop -{ -[DllImportAttribute("Steam_api", EntryPoint = "VR_Init")] -internal static extern IntPtr VR_Init(out HmdError peError); -[DllImportAttribute("Steam_api", EntryPoint = "VR_Shutdown")] -internal static extern void VR_Shutdown(); -[DllImportAttribute("Steam_api", EntryPoint = "VR_IsHmdPresent")] -internal static extern bool VR_IsHmdPresent(); -[DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_UnregisterCallback")] -internal static extern string VR_GetStringForHmdError(HmdError error); -[DllImportAttribute("Steam_api", EntryPoint = "Hmd")] -internal static extern IntPtr Hmd(); -} - - -public enum Hmd_Eye -{ - Eye_Left = 0, - Eye_Right = 1, -} -public enum GraphicsAPIConvention -{ - API_DirectX = 0, - API_OpenGL = 1, -} -public enum HmdTrackingResult -{ - TrackingResult_Uninitialized = 1, - TrackingResult_Calibrating_InProgress = 100, - TrackingResult_Calibrating_OutOfRange = 101, - TrackingResult_Running_OK = 200, - TrackingResult_Running_OutOfRange = 201, -} -public enum HmdError -{ - HmdError_None = 0, - HmdError_Init_InstallationNotFound = 100, - HmdError_Init_InstallationCorrupt = 101, - HmdError_Init_VRClientDLLNotFound = 102, - HmdError_Init_FileNotFound = 103, - HmdError_Init_FactoryNotFound = 104, - HmdError_Init_InterfaceNotFound = 105, - HmdError_Init_InvalidInterface = 106, - HmdError_Init_UserConfigDirectoryInvalid = 107, - HmdError_Init_HmdNotFound = 108, - HmdError_Init_NotInitialized = 109, - HmdError_Driver_Failed = 200, - HmdError_Driver_Unknown = 201, - HmdError_Driver_HmdUnknown = 202, - HmdError_Driver_NotLoaded = 203, - HmdError_IPC_ServerInitFailed = 300, - HmdError_IPC_ConnectFailed = 301, - HmdError_IPC_SharedStateInitFailed = 302, - HmdError_VendorSpecific_UnableToConnectToOculusRuntime = 1000, -} -[StructLayout(LayoutKind.Sequential)] public struct HmdMatrix34_t -{ - public float m; -} -[StructLayout(LayoutKind.Sequential)] public struct HmdMatrix44_t -{ - public float m; -} -[StructLayout(LayoutKind.Sequential)] public struct DistortionCoordinates_t -{ - public float rfRed; - public float rfGreen; - public float rfBlue; -} - -public class SteamVR -{ -public static IHMD Init(out HmdError peError) -{ - return new CHMD(VR_Init(out peError)); -} - -} - - - -} -