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:
@@ -141,6 +141,10 @@ PyMethodDef SCA_XORController::Methods[] = {
|
||||
{NULL,NULL} //Sentinel
|
||||
};
|
||||
|
||||
PyAttributeDef SCA_XORController::Attributes[] = {
|
||||
{ NULL } //Sentinel
|
||||
};
|
||||
|
||||
PyObject* SCA_XORController::_getattr(const char *attr) {
|
||||
_getattr_up(SCA_IController);
|
||||
}
|
||||
|
Reference in New Issue
Block a user