Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
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.
 
 
 
 
 
 

31 lines
776 B

//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef ICLASSMAP_H
#define ICLASSMAP_H
#ifdef _WIN32
#pragma once
#endif
class C_BaseEntity;
typedef C_BaseEntity* (*DISPATCHFUNCTION)( void );
abstract_class IClassMap
{
public:
virtual ~IClassMap() {}
virtual void Add( const char *mapname, const char *classname, int size, DISPATCHFUNCTION factory = 0 ) = 0;
virtual char const *Lookup( const char *classname ) = 0;
virtual C_BaseEntity *CreateEntity( const char *mapname ) = 0;
virtual int GetClassSize( const char *classname ) = 0;
};
extern IClassMap& GetClassMap();
#endif // ICLASSMAP_H