Files
SteamworksSDK/SteamworksExample/RemoteStorage.h
T
Riley Labrecque 84141487ef v1.03
2016-07-07 05:54:50 -06:00

60 lines
1.1 KiB
C++

//========= Copyright © 1996-2008, Valve LLC, All rights reserved. ============
//
// Purpose: Class for tracking stats and achievements
//
// $NoKeywords: $
//=============================================================================
#ifndef REMOTE_STORAGE_H
#define REMOTE_STORAGE_H
#include "SpaceWar.h"
#include "GameEngine.h"
#include "steam/isteamremotestorage.h"
class ISteamUser;
class CSpaceWarClient;
class CRemoteStorage
{
public:
// Constructor
CRemoteStorage( CGameEngine *pGameEngine );
// Display the remote storage screen
void Render();
// Done showing this page?
bool BFinished() { return m_bFinished; }
private:
void GetFileStats();
// Engine
CGameEngine *m_pGameEngine;
// Display font
HGAMEFONT m_hDisplayFont;
// Steam User interface
ISteamUser *m_pSteamUser;
// Steam RemoteStorage interface
ISteamRemoteStorage *m_pSteamRemoteStorage;
// Greeting message
char m_rgchGreeting[40];
char m_rgchGreetingNext[40];
bool m_bFinished;
int32 m_nNumFilesInCloud;
int32 m_nBytesQuota;
int32 m_nAvailableBytes;
};
#endif