Raised This Month: $ Target: $400
 0% 

[FRAMEWORK] CEntity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
StaX36
Junior Member
Join Date: Aug 2011
Old 04-09-2015 , 15:57   Re: [FRAMEWORK] CEntity
Reply With Quote #39

I also noticed that when you override an entity DataDesc e.g. to add new inputs or outputs to an existing entity all standard IO gets removed. The problem can be fixed if we pass our DataDesc from the CEntity BaseClass to the baseMap variable.

So DO NOT use the definition of BEGIN_DATADESC from the SDK use this definition instead:

PHP Code:
#define BEGIN_DATADESC_CENTITY( className ) \
datamap_t className::m_DataMap = { 00#className, NULL }; \
datamap_t *className::GetDataDescMap(void) { \
    
m_DataMap.baseMap BaseClass::GetDataDescMap(); \
    return &
m_DataMap; \
} \
datamap_t *className::GetBaseMap() { datamap_t *pResultDataMapAccess((BaseClass *)NULL, &pResult); return pResult; } \
BEGIN_DATADESC_GUTS(className
StaX36 is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode