Py BGE API

Python dir(ob) for game types now includes attributes names,
* Use "__dict__" rather then "__methods__" attribute to be Python 3.0 compatible
* Added _getattr_dict() for getting the method and attribute names from a PyObject, rather then building it in the macro.
* Added place holder *::Attribute array, needed for the _getattr_up macro.
This commit is contained in:
Campbell Barton
2009-02-26 09:04:06 +00:00
parent 936a6eeda8
commit c785532bec
47 changed files with 206 additions and 29 deletions

View File

@@ -129,6 +129,11 @@ PyMethodDef SCA_ORController::Methods[] = {
{NULL,NULL} //Sentinel
};
PyAttributeDef SCA_ORController::Attributes[] = {
{ NULL } //Sentinel
};
PyObject* SCA_ORController::_getattr(const char *attr) {
_getattr_up(SCA_IController);
}