00001 // ----------------------------------------------------------------------- // 00002 // 00003 // MODULE : event_data_obj_created.h 00004 // 00005 // PURPOSE : IEventData class - Definition 00006 // 00007 // CREATED : 04/07/01 00008 // 00009 // (c) 2001 LithTech, Inc. All Rights Reserved 00010 // 00011 // ----------------------------------------------------------------------- // 00012 00013 #ifndef __EVENT_DATA_OBJ_CREATED_H_ 00014 #define __EVENT_DATA_OBJ_CREATED_H_ 00015 00016 #include "i_event_data.h" 00017 00018 #include "baseobjectsrvr.h" 00019 00020 class CEventDataObjCreated : public IEventData 00021 { 00022 public: 00023 CEventDataObjCreated(HOBJECT hObj, CBaseObjectSrvr *pBO) : 00024 m_hObjectCreated(hObj), m_pBaseObjectCreated(pBO) {}; 00025 00026 CEventDataObjCreated(const CEventDataObjCreated &s) : 00027 m_hObjectCreated(s.m_hObjectCreated), 00028 m_pBaseObjectCreated(s.m_pBaseObjectCreated) {}; 00029 00030 HOBJECT GetHObjectCreated() const { return m_hObjectCreated;}; 00031 CBaseObjectSrvr *GetBaseObjectCreated() const 00032 {return m_pBaseObjectCreated; }; 00033 00034 00035 private: 00036 HOBJECT m_hObjectCreated; 00037 CBaseObjectSrvr *m_pBaseObjectCreated; 00038 }; 00039 00040 inline CEventDataObjCreated *ConverToObjCreated(IEventData *pIEventData) 00041 { 00042 return (CEventDataObjCreated *)pIEventData; 00043 } 00044 00045 #endif // __EVENT_DATA_OBJ_CREATED_H_