From 2284fb32d22355cb067712f71fecb2d2a0efd288 Mon Sep 17 00:00:00 2001 From: doomchild Date: Wed, 14 Apr 2010 16:54:11 -0500 Subject: [PATCH] added construction type --- dfhack/python/pydfhack.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dfhack/python/pydfhack.cpp b/dfhack/python/pydfhack.cpp index b23a93b45..7b2f38f07 100644 --- a/dfhack/python/pydfhack.cpp +++ b/dfhack/python/pydfhack.cpp @@ -31,6 +31,7 @@ distribution. #include "DF_Translate.cpp" #include "DF_Vegetation.cpp" #include "DF_Buildings.cpp" +#include "DF_Constructions.cpp" #include "DF_API.cpp" #ifndef PyMODINIT_FUNC @@ -92,6 +93,9 @@ PyMODINIT_FUNC initpydfhack(void) if(PyType_Ready(&DF_Building_type) < 0) return; + if(PyType_Ready(&DF_Construction_type) < 0) + return; + module = Py_InitModule3("pydfhack", module_methods, "pydfhack extension module"); Py_INCREF(&DF_API_type); @@ -112,6 +116,7 @@ PyMODINIT_FUNC initpydfhack(void) PyModule_AddObject(module, "Translate", (PyObject*)&DF_Translate_type); PyModule_AddObject(module, "Vegetation", (PyObject*)&DF_Vegetation_type); PyModule_AddObject(module, "Building", (PyObject*)&DF_Building_type); + PyModule_AddObject(module, "Construction", (PyObject*)&DF_Construction_type); //DoImports(); } \ No newline at end of file