On 10/02/2016 at 05:38, xxxxxxxx wrote:
From inside your ObjectData-derived class, you can use either the GeListNode* node passed to the method in the class:
//*---------------------------------------------------------------------------*
Bool MyObjectData::Message(GeListNode* node, Int32 type, void* data)
//*---------------------------------------------------------------------------*
{
if (!node)
return FALSE;
BaseObject* pObject = static_cast<BaseObject*>(node);
// etc.
return SUPER::Message(node,type,data);
}
Or you can use the NodeData::Get() method:
//*---------------------------------------------------------------------------*
Bool MyObjectData::MyMethod()
//*---------------------------------------------------------------------------*
{
GeListNode* node = Get();
if (!node)
return FALSE;
BaseObject* pObject = static_cast<BaseObject*>(node);
// etc.
return TRUE;
}