sqwarmed/sdk_src/game/server/swarm/asw_marker.h

43 lines
1006 B
C++

#ifndef ASW_MARKER_H
#define ASW_MARKER_H
#ifdef _WIN32
#pragma once
#endif
#include "baseentity.h"
// This class is used for marking world positions of objectives
class CASW_Marker : public CBaseEntity
{
public:
DECLARE_CLASS( CASW_Marker, CBaseEntity );
DECLARE_SERVERCLASS();
DECLARE_DATADESC();
virtual void Spawn( void );
virtual int ShouldTransmit( const CCheckTransmitInfo *pInfo );
virtual bool KeyValue( const char *szKeyName, const char *szValue );
virtual void SetComplete( bool bComplete );
virtual bool IsObjectiveComplete() { return m_bComplete; }
void InputSetComplete( inputdata_t &inputdata );
void InputEnable( inputdata_t &inputdata );
void InputDisable( inputdata_t &inputdata );
private:
CNetworkString( m_ObjectiveName, 256 );
CNetworkVar( int, m_nMapWidth );
CNetworkVar( int, m_nMapHeight );
CNetworkVar( bool, m_bComplete );
CNetworkVar( bool, m_bEnabled );
bool m_bStartDisabled;
};
#endif /* ASW_MARKER_H */