diff options
Diffstat (limited to 'game/server/dod/dod_location.h')
| -rw-r--r-- | game/server/dod/dod_location.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/game/server/dod/dod_location.h b/game/server/dod/dod_location.h new file mode 100644 index 0000000..7795e90 --- /dev/null +++ b/game/server/dod/dod_location.h @@ -0,0 +1,38 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//============================================================================= + +#ifndef DOD_LOCATION_H +#define DOD_LOCATION_H +#ifdef _WIN32 +#pragma once +#endif + +#include "baseentity.h" + +//a location on the map that players can refernce in their say messages +//with the %l escape sequence +class CDODLocation : public CBaseEntity +{ +public: + DECLARE_CLASS( CDODLocation, CBaseEntity ); + CDODLocation() + { + m_szLocationName[0] = '\0'; + } + + virtual void Spawn( void ); + virtual bool KeyValue( const char *szKeyName, const char *szValue ); + + inline const char *GetName( void ) { return m_szLocationName; } + +private: + char m_szLocationName[64]; + +private: + CDODLocation( const CDODLocation & ); +}; + +#endif //DOD_LOCATION_H
\ No newline at end of file |