Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

76 lines
1.6 KiB

//========= 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