blob: 437a97daf1fa707e540f94c933349810243b48d3 (
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
42
43
44
45
46
47
48
49
50
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================
#ifndef ISERVERENGINETOOLS_H
#define ISERVERENGINETOOLS_H
#ifdef _WIN32
#pragma once
#endif
#include "interface.h"
//-----------------------------------------------------------------------------
// Purpose: exposed from engine to game .dll
//-----------------------------------------------------------------------------
class IServerEngineTools : public IBaseInterface
{
public:
// Level init, shutdown
virtual void LevelInitPreEntityAllTools() = 0;
// entities are created / spawned / precached here
virtual void LevelInitPostEntityAllTools() = 0;
virtual void LevelShutdownPreEntityAllTools() = 0;
// Entities are deleted / released here...
virtual void LevelShutdownPostEntityAllTools() = 0;
// end of level shutdown
// Called each frame before entities think
virtual void FrameUpdatePreEntityThinkAllTools() = 0;
// called after entities think
virtual void FrameUpdatePostEntityThinkAllTools() = 0;
virtual void PreClientUpdateAllTools() = 0;
// FIXME: PostClientUpdateAllTools()???
// The server uses this to call into the tools to get the actual
// entities to spawn on startup
virtual const char* GetEntityData( const char *pActualEntityData ) = 0;
virtual void PreSetupVisibilityAllTools() = 0;
virtual bool InToolMode() = 0;
};
#define VSERVERENGINETOOLS_INTERFACE_VERSION "VSERVERENGINETOOLS001"
#endif // ISERVERENGINETOOLS_H
|