00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef __BSPENTITY_H__
00012 #define __BSPENTITY_H__
00013
00014 #include "Bsp/BspDll.h"
00015 #include "Common/Types.h"
00016 #include "Common/Table.h"
00017
00018
00019 class BSP_API KBspEntityKey
00020 {
00021 public:
00022 char* m_pKey;
00023 char* m_pValue;
00024
00025 KBspEntityKey() { m_pKey = NULL, m_pValue = NULL; }
00026 };
00027
00028
00029 class BSP_API KBspEntity
00030 {
00031 protected:
00032 u32 m_Index;
00033 char* m_pClassName;
00034 KTable<KBspEntityKey*> m_KeyList;
00035
00036 public:
00037 KBspEntity();
00038 ~KBspEntity();
00039
00040 void SetIndex( u32 Index ) { m_Index = Index; }
00041 u32 GetIndex() { return m_Index; }
00042 void SetClassName( char* pClassName );
00043 char* GetClassName() { return m_pClassName; }
00044 char* GetKeyValue( char* pKey );
00045 void AddKey( char* pKey, char* pValue );
00046 void Dump();
00047 };
00048
00049 #endif __BSPENTITY_H__