added remaining module types

develop
doomchild 2010-04-15 12:55:54 -05:00
parent b11e7d4748
commit b563a9a22d
1 changed files with 14 additions and 1 deletions

@ -96,6 +96,12 @@ PyMODINIT_FUNC initpydfhack(void)
if(PyType_Ready(&DF_Construction_type) < 0) if(PyType_Ready(&DF_Construction_type) < 0)
return; return;
if(PyType_Ready(&DF_Map_type) < 0)
return;
if(PyType_Ready(&DF_GUI_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);
@ -106,6 +112,10 @@ PyMODINIT_FUNC initpydfhack(void)
Py_INCREF(&DF_CreatureManager_type); Py_INCREF(&DF_CreatureManager_type);
Py_INCREF(&DF_Translate_type); Py_INCREF(&DF_Translate_type);
Py_INCREF(&DF_Vegetation_type); Py_INCREF(&DF_Vegetation_type);
Py_INCREF(&DF_Building_type);
Py_INCREF(&DF_Construction_type);
Py_INCREF(&DF_Map_type);
Py_INCREF(&DF_GUI_type);
PyModule_AddObject(module, "API", (PyObject*)&DF_API_type); PyModule_AddObject(module, "API", (PyObject*)&DF_API_type);
PyModule_AddObject(module, "MemInfo", (PyObject*)&DF_MemInfo_type); PyModule_AddObject(module, "MemInfo", (PyObject*)&DF_MemInfo_type);
@ -116,7 +126,10 @@ PyMODINIT_FUNC initpydfhack(void)
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); PyModule_AddObject(module, "Building", (PyObject*)&DF_Building_type);
PyModule_AddObject(module, "Construction", (PyObject*)&DF_Construction_type); PyModule_AddObject(module, "ConstructionManager", (PyObject*)&DF_Construction_type);
PyModule_AddObject(module, "Map", (PyObject*)&DF_Map_type);
PyModule_AddObject(module, "GUI", (PyObject*)&DF_GUI_type);
DoImports(); DoImports();
} }