Counter Strike : Global Offensive Source Code
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.
|
|
//========= Copyright � 1996-2008, Valve Corporation, All rights reserved. ============//
//
// Purpose: Definition of the info_remarkable entity.
// This entity is a quick and dirty hack to provide writers
// with some kind of object that characters can remark upon.
// It is not performant, because it relies upon each character
// polling over each of these for visibility. A better approach
// will be an object that is notified by the engine when it is within
// a character's view.
//
// $NoKeywords: $
//=============================================================================//
#ifndef INFOREMARKABLE_H
#define INFOREMARKABLE_H
#ifdef _WIN32
#pragma once
#endif
#include "baseentity.h"
#include "utllinkedlist.h"
class CInfoRemarkable : public CPointEntity { public: DECLARE_CLASS( CInfoRemarkable, CPointEntity ); DECLARE_DATADESC(); typedef CUtlLinkedList< CInfoRemarkable * > tRemarkableList; static tRemarkableList *GetListOfAllThatIsRemarkable( void );
~CInfoRemarkable(); void Spawn( void ); inline void ResetCount( void ) { m_iTimesRemarkedUpon = 0; } // reset the number of times commented upon (eg at map restart)
inline const char *GetRemarkContext( void ) const { return m_szRemarkContext.ToCStr(); }
int m_iTimesRemarkedUpon;
//FIX protected:
string_t m_szRemarkContext; };
#endif
|