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.
41 lines
1.0 KiB
41 lines
1.0 KiB
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
|
|
//
|
|
// Purpose:
|
|
//
|
|
// $NoKeywords: $
|
|
//=============================================================================//
|
|
|
|
#ifndef ICLIENTTHINKABLE_H
|
|
#define ICLIENTTHINKABLE_H
|
|
#ifdef _WIN32
|
|
#pragma once
|
|
#endif
|
|
|
|
|
|
#include "iclientunknown.h"
|
|
|
|
|
|
class CClientThinkHandlePtr;
|
|
typedef CClientThinkHandlePtr* ClientThinkHandle_t;
|
|
|
|
|
|
// Entities that implement this interface can be put into the client think list.
|
|
abstract_class IClientThinkable
|
|
{
|
|
public:
|
|
// Gets at the containing class...
|
|
virtual IClientUnknown* GetIClientUnknown() = 0;
|
|
|
|
virtual void ClientThink() = 0;
|
|
|
|
// Called when you're added to the think list.
|
|
// GetThinkHandle's return value must be initialized to INVALID_THINK_HANDLE.
|
|
virtual ClientThinkHandle_t GetThinkHandle() = 0;
|
|
virtual void SetThinkHandle( ClientThinkHandle_t hThink ) = 0;
|
|
|
|
// Called by the client when it deletes the entity.
|
|
virtual void Release() = 0;
|
|
};
|
|
|
|
|
|
#endif // ICLIENTTHINKABLE_H
|