diff options
Diffstat (limited to 'source/gameengine/Ketsji/KX_ClientObjectInfo.h')
-rw-r--r-- | source/gameengine/Ketsji/KX_ClientObjectInfo.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/KX_ClientObjectInfo.h b/source/gameengine/Ketsji/KX_ClientObjectInfo.h index 0981463ed44..51cb19e8935 100644 --- a/source/gameengine/Ketsji/KX_ClientObjectInfo.h +++ b/source/gameengine/Ketsji/KX_ClientObjectInfo.h @@ -35,12 +35,21 @@ /** * Client Type and Additional Info. This structure can be use instead of a bare void* pointer, for safeness, and additional info for callbacks */ - struct KX_ClientObjectInfo { - int m_type; + enum { + STATIC, + ACTOR, + RESERVED1, + RADAR, + NEAR + } m_type; void* m_clientobject; void* m_auxilary_info; +public: + KX_ClientObjectInfo(void *clientobject) : + m_clientobject(clientobject) + {} }; #endif //__KX_CLIENTOBJECT_INFO_H |