C# 클래스 Steamworks.SteamApps

파일 보기 프로젝트 열기: rlabrecque/Steamworks.NET 1 사용 예제들

공개 메소드들

메소드 설명
BGetDLCDataByIndex ( int iDLC, AppId_t &pAppID, bool &pbAvailable, string &pchName, int cchNameBufferSize ) : bool

Returns metadata for DLC by index, of range [0, GetDLCCount()]

BIsAppInstalled ( AppId_t appID ) : bool

returns true if that app is installed (not necessarily owned)

BIsCybercafe ( ) : bool
BIsDlcInstalled ( AppId_t appID ) : bool

Takes AppID of DLC and checks if the user owns the DLC & if the DLC is installed

BIsLowViolence ( ) : bool
BIsSubscribed ( ) : bool
BIsSubscribedApp ( AppId_t appID ) : bool

only use this member if you need to check ownership of another game related to yours, a demo for example

BIsSubscribedFromFreeWeekend ( ) : bool

Checks if the user is subscribed to the current app through a free weekend

This function will return false for users who have a retail or other type of license

Before using, please ask your Valve technical contact how to package and secure your free weekened

BIsVACBanned ( ) : bool
GetAppBuildId ( ) : int

return the buildid of this app, may change at any time based on backend updates to the game

GetAppInstallDir ( AppId_t appID, string &pchFolder, uint cchFolderBufferSize ) : uint

returns current app install folder for AppID, returns folder name length

GetAppOwner ( ) : CSteamID

returns the SteamID of the original owner. If different from current user, it's borrowed

GetAvailableGameLanguages ( ) : string
GetCurrentBetaName ( string &pchName, int cchNameBufferSize ) : bool

returns current beta branch name, 'public' is the default branch

GetCurrentGameLanguage ( ) : string
GetDLCCount ( ) : int

Returns the number of DLC pieces for the running app

GetDlcDownloadProgress ( AppId_t nAppID, ulong &punBytesDownloaded, ulong &punBytesTotal ) : bool

get download progress for optional DLC

GetEarliestPurchaseUnixTime ( AppId_t nAppID ) : uint

returns the Unix time of the purchase of the app

GetFileDetails ( string pszFileName ) : SteamAPICall_t
GetInstalledDepots ( AppId_t appID, DepotId_t pvecDepots, uint cMaxDepots ) : uint

return installed depots in mount order

GetLaunchQueryParam ( string pchKey ) : string

Returns the associated launch param if the game is run via steam://run/<appid>//?param1=value1;param2=value2;param3=value3 etc.

Parameter names starting with the character '@' are reserved for internal use and will always return and empty string.

Parameter names starting with an underscore '_' are reserved for steam features -- they can be queried by the game,

but it is advised that you not param names beginning with an underscore for your own features.

InstallDLC ( AppId_t nAppID ) : void

Install/Uninstall control for optional DLC

MarkContentCorrupt ( bool bMissingFilesOnly ) : bool

signal Steam that game files seems corrupt or missing

RequestAllProofOfPurchaseKeys ( ) : void

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).

RequestAppProofOfPurchaseKey ( AppId_t nAppID ) : void

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

the key is available (which may be immediately).

UninstallDLC ( AppId_t nAppID ) : void

메소드 상세

BGetDLCDataByIndex() 공개 정적인 메소드

Returns metadata for DLC by index, of range [0, GetDLCCount()]

public static BGetDLCDataByIndex ( int iDLC, AppId_t &pAppID, bool &pbAvailable, string &pchName, int cchNameBufferSize ) : bool
iDLC int
pAppID AppId_t
pbAvailable bool
pchName string
cchNameBufferSize int
리턴 bool

BIsAppInstalled() 공개 정적인 메소드

returns true if that app is installed (not necessarily owned)

public static BIsAppInstalled ( AppId_t appID ) : bool
appID AppId_t
리턴 bool

BIsCybercafe() 공개 정적인 메소드

public static BIsCybercafe ( ) : bool
리턴 bool

BIsDlcInstalled() 공개 정적인 메소드

Takes AppID of DLC and checks if the user owns the DLC & if the DLC is installed

public static BIsDlcInstalled ( AppId_t appID ) : bool
appID AppId_t
리턴 bool

BIsLowViolence() 공개 정적인 메소드

public static BIsLowViolence ( ) : bool
리턴 bool

BIsSubscribed() 공개 정적인 메소드

public static BIsSubscribed ( ) : bool
리턴 bool

BIsSubscribedApp() 공개 정적인 메소드

only use this member if you need to check ownership of another game related to yours, a demo for example

public static BIsSubscribedApp ( AppId_t appID ) : bool
appID AppId_t
리턴 bool

BIsSubscribedFromFreeWeekend() 공개 정적인 메소드

Checks if the user is subscribed to the current app through a free weekend

This function will return false for users who have a retail or other type of license

Before using, please ask your Valve technical contact how to package and secure your free weekened

public static BIsSubscribedFromFreeWeekend ( ) : bool
리턴 bool

BIsVACBanned() 공개 정적인 메소드

public static BIsVACBanned ( ) : bool
리턴 bool

GetAppBuildId() 공개 정적인 메소드

return the buildid of this app, may change at any time based on backend updates to the game

public static GetAppBuildId ( ) : int
리턴 int

GetAppInstallDir() 공개 정적인 메소드

returns current app install folder for AppID, returns folder name length

public static GetAppInstallDir ( AppId_t appID, string &pchFolder, uint cchFolderBufferSize ) : uint
appID AppId_t
pchFolder string
cchFolderBufferSize uint
리턴 uint

GetAppOwner() 공개 정적인 메소드

returns the SteamID of the original owner. If different from current user, it's borrowed

public static GetAppOwner ( ) : CSteamID
리턴 CSteamID

GetAvailableGameLanguages() 공개 정적인 메소드

public static GetAvailableGameLanguages ( ) : string
리턴 string

GetCurrentBetaName() 공개 정적인 메소드

returns current beta branch name, 'public' is the default branch

public static GetCurrentBetaName ( string &pchName, int cchNameBufferSize ) : bool
pchName string
cchNameBufferSize int
리턴 bool

GetCurrentGameLanguage() 공개 정적인 메소드

public static GetCurrentGameLanguage ( ) : string
리턴 string

GetDLCCount() 공개 정적인 메소드

Returns the number of DLC pieces for the running app

public static GetDLCCount ( ) : int
리턴 int

GetDlcDownloadProgress() 공개 정적인 메소드

get download progress for optional DLC

public static GetDlcDownloadProgress ( AppId_t nAppID, ulong &punBytesDownloaded, ulong &punBytesTotal ) : bool
nAppID AppId_t
punBytesDownloaded ulong
punBytesTotal ulong
리턴 bool

GetEarliestPurchaseUnixTime() 공개 정적인 메소드

returns the Unix time of the purchase of the app

public static GetEarliestPurchaseUnixTime ( AppId_t nAppID ) : uint
nAppID AppId_t
리턴 uint

GetFileDetails() 공개 정적인 메소드

public static GetFileDetails ( string pszFileName ) : SteamAPICall_t
pszFileName string
리턴 SteamAPICall_t

GetInstalledDepots() 공개 정적인 메소드

return installed depots in mount order

public static GetInstalledDepots ( AppId_t appID, DepotId_t pvecDepots, uint cMaxDepots ) : uint
appID AppId_t
pvecDepots DepotId_t
cMaxDepots uint
리턴 uint

GetLaunchQueryParam() 공개 정적인 메소드

Returns the associated launch param if the game is run via steam://run/<appid>//?param1=value1;param2=value2;param3=value3 etc.

Parameter names starting with the character '@' are reserved for internal use and will always return and empty string.

Parameter names starting with an underscore '_' are reserved for steam features -- they can be queried by the game,

but it is advised that you not param names beginning with an underscore for your own features.

public static GetLaunchQueryParam ( string pchKey ) : string
pchKey string
리턴 string

InstallDLC() 공개 정적인 메소드

Install/Uninstall control for optional DLC

public static InstallDLC ( AppId_t nAppID ) : void
nAppID AppId_t
리턴 void

MarkContentCorrupt() 공개 정적인 메소드

signal Steam that game files seems corrupt or missing

public static MarkContentCorrupt ( bool bMissingFilesOnly ) : bool
bMissingFilesOnly bool
리턴 bool

RequestAllProofOfPurchaseKeys() 공개 정적인 메소드

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).

public static RequestAllProofOfPurchaseKeys ( ) : void
리턴 void

RequestAppProofOfPurchaseKey() 공개 정적인 메소드

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

the key is available (which may be immediately).

public static RequestAppProofOfPurchaseKey ( AppId_t nAppID ) : void
nAppID AppId_t
리턴 void

UninstallDLC() 공개 정적인 메소드

public static UninstallDLC ( AppId_t nAppID ) : void
nAppID AppId_t
리턴 void