mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-01-04 00:23:25 +08:00
32 lines
1.0 KiB
C++
32 lines
1.0 KiB
C++
//====== Copyright © 1996-2004, Valve Corporation, All rights reserved. =======
|
|
//
|
|
// Purpose: interface to utility functions in Steam
|
|
//
|
|
//=============================================================================
|
|
|
|
#ifndef ISTEAMUTILS_H
|
|
#define ISTEAMUTILS_H
|
|
#ifdef _WIN32
|
|
#pragma once
|
|
#endif
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Purpose: interface to user independent utility functions
|
|
//-----------------------------------------------------------------------------
|
|
class ISteamUtils
|
|
{
|
|
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;
|
|
|
|
// server time - in PST, number of seconds since January 1, 1970 (i.e unix time)
|
|
virtual uint32 GetServerRealTime() = 0;
|
|
};
|
|
|
|
#define STEAMUTILS_INTERFACE_VERSION "SteamUtils001"
|
|
#endif // ISTEAMUTILS_H
|