2 #include <structmember.h>
7 PyMemberDef item_data_members
[] =
9 {"id", T_UINT
, offsetof(python_item_data
, id
), 0, "Item ID"},
10 {"type", T_OBJECT
, offsetof(python_item_data
, type
), 0, "Type name"},
11 {"code", T_OBJECT
, offsetof(python_item_data
, code
), 0, "Three letter item code"},
12 {"quality", T_UBYTE
, offsetof(python_item_data
, quality
), 0, "Quality"},
13 {"level", T_UBYTE
, offsetof(python_item_data
, level
), 0, "Item level"},
14 {"sockets", T_UBYTE
, offsetof(python_item_data
, sockets
), 0, "Number of sockets"},
15 {"ethereal", T_OBJECT
, offsetof(python_item_data
, ethereal
), 0, "Ethereal flag"},