mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-14 20:56:56 +00:00
1
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose:
|
||||
//
|
||||
// $NoKeywords: $
|
||||
//
|
||||
//=============================================================================//
|
||||
#ifndef C_SLIDESHOW_DISPLAY_H
|
||||
#define C_SLIDESHOW_DISPLAY_H
|
||||
|
||||
#include "cbase.h"
|
||||
#include "utlvector.h"
|
||||
|
||||
|
||||
struct SlideMaterialList_t
|
||||
{
|
||||
char szSlideKeyword[64];
|
||||
CUtlVector<int> iSlideMaterials;
|
||||
CUtlVector<int> iSlideIndex;
|
||||
};
|
||||
|
||||
|
||||
class C_SlideshowDisplay : public C_BaseEntity
|
||||
{
|
||||
public:
|
||||
DECLARE_CLASS( C_SlideshowDisplay, CBaseEntity );
|
||||
DECLARE_CLIENTCLASS();
|
||||
|
||||
C_SlideshowDisplay();
|
||||
virtual ~C_SlideshowDisplay();
|
||||
|
||||
void Spawn( void );
|
||||
|
||||
virtual void OnDataChanged( DataUpdateType_t updateType );
|
||||
|
||||
void ClientThink( void );
|
||||
|
||||
bool IsEnabled( void ) { return m_bEnabled; }
|
||||
|
||||
void GetDisplayText( char *pchText ) { Q_strcpy( pchText, m_szDisplayText ); }
|
||||
int CurrentMaterialIndex( void ) { return m_iCurrentMaterialIndex; }
|
||||
int GetMaterialIndex( int iSlideIndex );
|
||||
int NumMaterials( void );
|
||||
int CurrentSlideIndex( void ) { return m_iCurrentSlideIndex; }
|
||||
|
||||
private:
|
||||
|
||||
void BuildSlideShowImagesList( void );
|
||||
|
||||
private:
|
||||
|
||||
bool m_bEnabled;
|
||||
|
||||
char m_szDisplayText[ 128 ];
|
||||
|
||||
char m_szSlideshowDirectory[ 128 ];
|
||||
|
||||
CUtlVector<SlideMaterialList_t*> m_SlideMaterialLists;
|
||||
unsigned char m_chCurrentSlideLists[ 16 ];
|
||||
int m_iCurrentMaterialIndex;
|
||||
int m_iCurrentSlideIndex;
|
||||
|
||||
float m_fMinSlideTime;
|
||||
float m_fMaxSlideTime;
|
||||
|
||||
float m_NextSlideTime;
|
||||
|
||||
int m_iCycleType;
|
||||
bool m_bNoListRepeats;
|
||||
int m_iCurrentSlideList;
|
||||
int m_iCurrentSlide;
|
||||
};
|
||||
|
||||
extern CUtlVector< C_SlideshowDisplay* > g_SlideshowDisplays;
|
||||
|
||||
#endif //C_SLIDESHOW_STATS_DISPLAY_H
|
||||
Reference in New Issue
Block a user