added translate type

develop
doomchild 2010-04-13 16:12:54 -05:00
parent f047f96eef
commit f6b2abca5b
1 changed files with 6 additions and 0 deletions

@ -28,6 +28,7 @@ distribution.
#include "DF_Material.cpp"
#include "DF_CreatureType.cpp"
#include "DF_CreatureManager.cpp"
#include "DF_Translate.cpp"
#include "DF_API.cpp"
#ifndef PyMODINIT_FUNC
@ -80,6 +81,9 @@ PyMODINIT_FUNC initpydfhack(void)
if(PyType_Ready(&DF_CreatureManager_type) < 0)
return;
if(PyType_Ready(&DF_Translate_type) < 0)
return;
module = Py_InitModule3("pydfhack", module_methods, "pydfhack extension module");
Py_INCREF(&DF_API_type);
@ -88,6 +92,7 @@ PyMODINIT_FUNC initpydfhack(void)
Py_INCREF(&DF_Material_type);
Py_INCREF(&DF_Creature_Base_type);
Py_INCREF(&DF_CreatureManager_type);
Py_INCREF(&DF_Translate_type);
PyModule_AddObject(module, "API", (PyObject*)&DF_API_type);
PyModule_AddObject(module, "MemInfo", (PyObject*)&DF_MemInfo_type);
@ -95,6 +100,7 @@ PyMODINIT_FUNC initpydfhack(void)
PyModule_AddObject(module, "Materials", (PyObject*)&DF_Material_type);
PyModule_AddObject(module, "Creature_Base", (PyObject*)&DF_Creature_Base_type);
PyModule_AddObject(module, "CreatureManager", (PyObject*)&DF_CreatureManager_type);
PyModule_AddObject(module, "Translate", (PyObject*)&DF_Translate_type);
//DoImports();
}