|
|
@ -30,6 +30,7 @@ distribution.
|
|
|
|
#include "DF_CreatureManager.cpp"
|
|
|
|
#include "DF_CreatureManager.cpp"
|
|
|
|
#include "DF_Translate.cpp"
|
|
|
|
#include "DF_Translate.cpp"
|
|
|
|
#include "DF_Vegetation.cpp"
|
|
|
|
#include "DF_Vegetation.cpp"
|
|
|
|
|
|
|
|
#include "DF_Buildings.cpp"
|
|
|
|
#include "DF_API.cpp"
|
|
|
|
#include "DF_API.cpp"
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef PyMODINIT_FUNC
|
|
|
|
#ifndef PyMODINIT_FUNC
|
|
|
@ -88,6 +89,9 @@ PyMODINIT_FUNC initpydfhack(void)
|
|
|
|
if(PyType_Ready(&DF_Vegetation_type) < 0)
|
|
|
|
if(PyType_Ready(&DF_Vegetation_type) < 0)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(PyType_Ready(&DF_Building_type) < 0)
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
module = Py_InitModule3("pydfhack", module_methods, "pydfhack extension module");
|
|
|
|
module = Py_InitModule3("pydfhack", module_methods, "pydfhack extension module");
|
|
|
|
|
|
|
|
|
|
|
|
Py_INCREF(&DF_API_type);
|
|
|
|
Py_INCREF(&DF_API_type);
|
|
|
@ -107,6 +111,7 @@ PyMODINIT_FUNC initpydfhack(void)
|
|
|
|
PyModule_AddObject(module, "CreatureManager", (PyObject*)&DF_CreatureManager_type);
|
|
|
|
PyModule_AddObject(module, "CreatureManager", (PyObject*)&DF_CreatureManager_type);
|
|
|
|
PyModule_AddObject(module, "Translate", (PyObject*)&DF_Translate_type);
|
|
|
|
PyModule_AddObject(module, "Translate", (PyObject*)&DF_Translate_type);
|
|
|
|
PyModule_AddObject(module, "Vegetation", (PyObject*)&DF_Vegetation_type);
|
|
|
|
PyModule_AddObject(module, "Vegetation", (PyObject*)&DF_Vegetation_type);
|
|
|
|
|
|
|
|
PyModule_AddObject(module, "Building", (PyObject*)&DF_Building_type);
|
|
|
|
|
|
|
|
|
|
|
|
//DoImports();
|
|
|
|
//DoImports();
|
|
|
|
}
|
|
|
|
}
|