1 |
static PyObject* Crossfire_Archetype_GetName( Crossfire_Archetype* whoptr, void* closure); |
2 |
|
3 |
static PyObject* Crossfire_Archetype_GetNext( Crossfire_Archetype* who, PyObject* args ); |
4 |
static PyObject* Crossfire_Archetype_GetMore( Crossfire_Archetype* who, PyObject* args ); |
5 |
static PyObject* Crossfire_Archetype_GetHead( Crossfire_Archetype* who, PyObject* args ); |
6 |
static PyObject* Crossfire_Archetype_GetClone( Crossfire_Archetype* who, PyObject* args ); |
7 |
static PyObject* Crossfire_Archetype_GetNewObject( Crossfire_Archetype* who, PyObject* args ); |
8 |
|
9 |
static int Crossfire_Archetype_InternalCompare(Crossfire_Archetype* left, Crossfire_Archetype* right); |
10 |
|
11 |
static PyGetSetDef Archetype_getseters[] = { |
12 |
{ "Name", (getter)Crossfire_Archetype_GetName, NULL, NULL, NULL }, |
13 |
{ NULL, NULL, NULL, NULL, NULL } |
14 |
}; |
15 |
|
16 |
static PyMethodDef ArchetypeMethods[] = { |
17 |
{ "Next", (PyCFunction)Crossfire_Archetype_GetNext, METH_VARARGS}, |
18 |
{ "More", (PyCFunction)Crossfire_Archetype_GetMore, METH_VARARGS}, |
19 |
{ "Head", (PyCFunction)Crossfire_Archetype_GetHead, METH_VARARGS}, |
20 |
{ "Clone", (PyCFunction)Crossfire_Archetype_GetClone, METH_VARARGS}, |
21 |
{ "NewObject", (PyCFunction)Crossfire_Archetype_GetNewObject, METH_VARARGS}, |
22 |
{NULL, NULL, 0} |
23 |
}; |
24 |
|
25 |
/* Our actual Python ArchetypeType */ |
26 |
PyTypeObject Crossfire_ArchetypeType = { |
27 |
PyObject_HEAD_INIT(NULL) |
28 |
0, /* ob_size*/ |
29 |
"Crossfire.Archetype", /* tp_name*/ |
30 |
sizeof(Crossfire_Archetype), /* tp_basicsize*/ |
31 |
0, /* tp_itemsize*/ |
32 |
0, /* tp_dealloc*/ |
33 |
0, /* tp_print*/ |
34 |
0, /* tp_getattr*/ |
35 |
0, /* tp_setattr*/ |
36 |
(cmpfunc)Crossfire_Archetype_InternalCompare, /* tp_compare*/ |
37 |
0, /* tp_repr*/ |
38 |
0, /* tp_as_number*/ |
39 |
0, /* tp_as_sequence*/ |
40 |
0, /* tp_as_mapping*/ |
41 |
0, /* tp_hash */ |
42 |
0, /* tp_call*/ |
43 |
0, /* tp_str*/ |
44 |
PyObject_GenericGetAttr, /* tp_getattro*/ |
45 |
PyObject_GenericSetAttr, /* tp_setattro*/ |
46 |
0, /* tp_as_buffer*/ |
47 |
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags*/ |
48 |
"Crossfire archetypes", /* tp_doc */ |
49 |
0, /* tp_traverse */ |
50 |
0, /* tp_clear */ |
51 |
0, /* tp_richcompare */ |
52 |
0, /* tp_weaklistoffset */ |
53 |
0, /* tp_iter */ |
54 |
0, /* tp_iternext */ |
55 |
ArchetypeMethods, /* tp_methods */ |
56 |
0, /* tp_members */ |
57 |
Archetype_getseters, /* tp_getset */ |
58 |
}; |