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.
33 lines
744 B
33 lines
744 B
//========= Copyright Valve Corporation, All rights reserved. ============//
|
|
//
|
|
// Purpose:
|
|
//
|
|
// $NoKeywords: $
|
|
//=============================================================================//
|
|
|
|
#ifndef TRIGGER_PASSTIME_BALL_H
|
|
#define TRIGGER_PASSTIME_BALL_H
|
|
#ifdef _WIN32
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "baseentity.h"
|
|
|
|
//-----------------------------------------------------------------------------
|
|
class CTriggerPasstimeBall : public CBaseEntity
|
|
{
|
|
public:
|
|
DECLARE_CLASS( CTriggerPasstimeBall, CBaseEntity );
|
|
DECLARE_DATADESC();
|
|
virtual void Spawn() OVERRIDE;
|
|
|
|
private:
|
|
void Update();
|
|
bool BTouching( CBaseEntity *pEnt );
|
|
|
|
bool m_bPresent;
|
|
COutputEvent m_onBallEnter;
|
|
COutputEvent m_onBallExit;
|
|
};
|
|
|
|
#endif // TRIGGER_PASSTIME_BALL_H
|