|
|
|
@ -140,6 +140,11 @@ PYTHON_METHOD_DEFINITION_NOARGS(ptPlayer, getPlayerName)
|
|
|
|
|
return PyString_FromPlString(self->fThis->GetPlayerName()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
PYTHON_METHOD_DEFINITION_NOARGS(ptPlayer, getPlayerNameW) |
|
|
|
|
{ |
|
|
|
|
return PyUnicode_FromPlString(self->fThis->GetPlayerName()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
PYTHON_METHOD_DEFINITION_NOARGS(ptPlayer, getPlayerID) |
|
|
|
|
{ |
|
|
|
|
return PyLong_FromUnsignedLong(self->fThis->GetPlayerID()); |
|
|
|
@ -213,4 +218,4 @@ void pyPlayer::AddPlasmaClasses(PyObject *m)
|
|
|
|
|
PYTHON_CLASS_IMPORT_START(m); |
|
|
|
|
PYTHON_CLASS_IMPORT(m, ptPlayer); |
|
|
|
|
PYTHON_CLASS_IMPORT_END(m); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|