blob: 4adc8bb5469030cb45a3b805e2838c9a09f9e7a8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
//========= Copyright 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
|