CRAW now runs on Windows 7 too - the problem was that Windows 7 has moved some functi...
[craw.git] / craw / python_item.cpp
bloba921e281b72b7d9ed9d58b4a850bcc3b1161d135
1 #include <Python.h>
2 #include <structmember.h>
3 #include "python.hpp"
5 namespace python
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"},
17 {0}