forked from Detanup01/gbe_fork
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Detanup01#66 from Detanup01/steamutils001
steamutils001 imp
- Loading branch information
Showing
4 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
#ifndef ISTEAMUTILS001_H | ||
#define ISTEAMUTILS001_H | ||
#ifdef STEAM_WIN32 | ||
#pragma once | ||
#endif | ||
|
||
class ISteamUtils001 | ||
{ | ||
public: | ||
// return the number of seconds since the user | ||
virtual uint32 GetSecondsSinceAppActive() = 0; | ||
virtual uint32 GetSecondsSinceComputerActive() = 0; | ||
|
||
// 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) | ||
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) | ||
// e.g "US" or "UK". | ||
virtual const char *GetIPCountry() = 0; | ||
|
||
// returns true if the image exists, and valid sizes were filled out | ||
virtual bool GetImageSize( int iImage, uint32 *pnWidth, uint32 *pnHeight ) = 0; | ||
|
||
// returns true if the image exists, and the buffer was successfully filled out | ||
// results are returned in RGBA format | ||
// the destination buffer size should be 4 * height * width * sizeof(char) | ||
virtual bool GetImageRGBA( int iImage, uint8 *pubDest, int nDestBufferSize ) = 0; | ||
}; | ||
|
||
#endif // ISTEAMUTILS001_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters