diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/tf2/hud_technologytreedoc.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/tf2/hud_technologytreedoc.h')
| -rw-r--r-- | game/client/tf2/hud_technologytreedoc.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/game/client/tf2/hud_technologytreedoc.h b/game/client/tf2/hud_technologytreedoc.h new file mode 100644 index 0000000..c9d74a4 --- /dev/null +++ b/game/client/tf2/hud_technologytreedoc.h @@ -0,0 +1,49 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// +#if !defined( TF_TECHNOLOGYTREEDOC_H ) +#define TF_TECHNOLOGYTREEDOC_H +#ifdef _WIN32 +#pragma once +#endif + +// Forward declarations +class CTechnologyTree; + +//----------------------------------------------------------------------------- +// Purpose: Container for views into technology tree +//----------------------------------------------------------------------------- +class CTechnologyTreeDoc +{ +public: + // Construction + CTechnologyTreeDoc( void ); + virtual ~CTechnologyTreeDoc( void ); + + virtual void Init( void ); + virtual void ReloadTechTree( void ); + + virtual void LevelInit( void ); + virtual void LevelShutdown( void ); + + inline CTechnologyTree *GetTechnologyTree() {return m_pTree;} + + void AddTechnologyFile( char *sFilename ); + + // Network input + int MsgFunc_Technology( bf_read &msg ); + int MsgFunc_Resource( bf_read &msg ); + +private: + // The underlying technology data tree + CTechnologyTree *m_pTree; +}; + +// Expose Document to rest of dll +extern CTechnologyTreeDoc& GetTechnologyTreeDoc(); + + +#endif // TF_TECHNOLOGYTREEDOC_H
\ No newline at end of file |