Export Entity::getId() to the Python interface.

This commit is contained in:
Jean-Paul Chaput 2020-06-06 12:13:57 +02:00
parent 7b1dab7742
commit f2a60768ca
1 changed files with 3 additions and 1 deletions

View File

@ -52,9 +52,10 @@ extern "C" {
// | "PyEntity" Attribute Methods | // | "PyEntity" Attribute Methods |
// +-------------------------------------------------------------+ // +-------------------------------------------------------------+
// Standart destroy (Attribute). DirectGetUIntAttribute(PyEntity_getId, getId, PyEntity, Entity)
DBoDestroyAttribute(PyEntity_destroy ,PyEntity) DBoDestroyAttribute(PyEntity_destroy ,PyEntity)
// --------------------------------------------------------------- // ---------------------------------------------------------------
// Attribute Method : "PyEntity_getCell ()" // Attribute Method : "PyEntity_getCell ()"
@ -77,6 +78,7 @@ extern "C" {
PyMethodDef PyEntity_Methods[] = PyMethodDef PyEntity_Methods[] =
{ { "getCell" , (PyCFunction)PyEntity_getCell , METH_NOARGS , "Returns the entity cell." } { { "getCell" , (PyCFunction)PyEntity_getCell , METH_NOARGS , "Returns the entity cell." }
, { "getId" , (PyCFunction)PyEntity_getId , METH_NOARGS , "Returns unique object (DBo) identifier." }
, { "destroy" , (PyCFunction)PyEntity_destroy , METH_NOARGS , { "destroy" , (PyCFunction)PyEntity_destroy , METH_NOARGS
, "Destroy associated hurricane object, the python object remains." } , "Destroy associated hurricane object, the python object remains." }
, {NULL, NULL, 0, NULL} /* sentinel */ , {NULL, NULL, 0, NULL} /* sentinel */