version 1.14 | | version 1.15 |
---|
| | |
static PyObject* getSharedDictionary(PyObject* self, PyObject* args); | | static PyObject* getSharedDictionary(PyObject* self, PyObject* args); |
static PyObject* getArchetypes(PyObject* self, PyObject* args); | | static PyObject* getArchetypes(PyObject* self, PyObject* args); |
static PyObject* getMaps(PyObject* self, PyObject* args); | | static PyObject* getMaps(PyObject* self, PyObject* args); |
| | static PyObject* getParties(PyObject* self, PyObject* args); |
static PyObject* registerCommand(PyObject* self, PyObject* args); | | static PyObject* registerCommand(PyObject* self, PyObject* args); |
static PyObject* registerGEvent(PyObject* self, PyObject* args); | | static PyObject* registerGEvent(PyObject* self, PyObject* args); |
static PyObject* unregisterGEvent(PyObject* self, PyObject* args); | | static PyObject* unregisterGEvent(PyObject* self, PyObject* args); |
| | |
{"GetSharedDictionary", getSharedDictionary, METH_VARARGS}, | | {"GetSharedDictionary", getSharedDictionary, METH_VARARGS}, |
{"GetArchetypes", getArchetypes, METH_VARARGS}, | | {"GetArchetypes", getArchetypes, METH_VARARGS}, |
{"GetMaps", getMaps, METH_VARARGS}, | | {"GetMaps", getMaps, METH_VARARGS}, |
| | {"GetParties", getParties, METH_VARARGS}, |
{"RegisterCommand", registerCommand, METH_VARARGS}, | | {"RegisterCommand", registerCommand, METH_VARARGS}, |
{"RegisterGlobalEvent", registerGEvent, METH_VARARGS}, | | {"RegisterGlobalEvent", registerGEvent, METH_VARARGS}, |
{"UnregisterGlobalEvent",unregisterGEvent, METH_VARARGS}, | | {"UnregisterGlobalEvent",unregisterGEvent, METH_VARARGS}, |
| | |
return list; | | return list; |
} | | } |
| | |
| | static PyObject* getParties(PyObject* self, PyObject* args) |
| | { |
| | PyObject* list; |
| | partylist* party; |
| | |
| | list = PyList_New(0); |
| | party = cf_party_get_first(); |
| | while (party) |
| | { |
| | PyList_Append(list,Crossfire_Party_wrap(party)); |
| | party = cf_party_get_next(party); |
| | } |
| | return list; |
| | } |
| | |
static PyObject* registerCommand(PyObject* self, PyObject* args) | | static PyObject* registerCommand(PyObject* self, PyObject* args) |
{ | | { |
char *cmdname; | | char *cmdname; |