DescribePropsFunc

Webs: Faemalia -:- Greatprawn -:- Playground -:- Technical -:- Tweak
Technical Web Sections: Register -:- Users -:- Changes -:- Index -:- Search -:- Statistics

This function is called to return a list of property descriptions the object supports. The list should be NULL terminated.

The easiest way to implement this function is to call prop_desc_list_calculate_quarks(), if the quarks aren't already defined:

static PropDescription *
myobject_describe_props(MyObject *obj)
{
  if (myobject_props[0].quark == 0)
    prop_desc_list_calculate_quarks(myobject_props);
  return myobject_props;
}

typedef const PropDescription *(* DescribePropsFunc) (Object *obj);

-- LarsClausen - 04 Sep 2002


Edit -:- Attach -:- Ref-By -:- Printable -:- More