mirror of
https://github.com/0TheSpy/Seaside.git
synced 2025-01-11 11:33:01 +08:00
24 lines
555 B
C
24 lines
555 B
C
|
#ifndef ICLASSMAP_H
|
||
|
#define ICLASSMAP_H
|
||
|
#ifdef _WIN32
|
||
|
#pragma once
|
||
|
#endif
|
||
|
|
||
|
class C_BaseEntity;
|
||
|
typedef C_BaseEntity* (*DISPATCHFUNCTION)(void);
|
||
|
|
||
|
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
|