1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-01-04 00:23:25 +08:00
hl2sdk/game/client/iloadingdisc.h
2010-07-22 01:46:14 -05:00

42 lines
964 B
C++

//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $Workfile: $
// $Date: $
// $NoKeywords: $
//=============================================================================//
#ifndef ILOADINGDISC_H
#define ILOADINGDISC_H
#ifdef _WIN32
#pragma once
#endif
#include <vgui/VGUI.h>
namespace vgui
{
class Panel;
}
abstract_class ILoadingDisc
{
public:
virtual void Create( vgui::VPANEL parent ) = 0;
virtual void Destroy( void ) = 0;
// loading disc
virtual void SetLoadingVisible( bool bVisible ) = 0;
// paused disc
virtual void SetPausedVisible( bool bVisible ) = 0;
// level loading progress, returns true if the screen needs updating
virtual bool UpdateProgressBar( float progress, const char *statusText ) = 0;
virtual unsigned int GetLoadingVPANEL( void ) = 0;
};
extern ILoadingDisc *loadingdisc;
#endif // ILOADINGDISC_H