forked from bartvdbraak/blender
6b9f3b5f5c
Remove the last of the odd C++/python wrapper code from http://www.python.org/doc/PyCPP.html (~1998) * Use python subclasses rather then having fake subclassing through get/set attributes calling parent types. * PyObject getset arrays are created while initializing the types, converted from our own attribute arrays. This way python deals with subclasses and we dont have to define getattro or setattro functions for each type. * GameObjects and Scenes no longer have attribute access to properties. only dictionary style access - ob['prop'] * remove each class's get/set/dir functions. * remove isA() methods, can use PyObject_TypeCheck() in C and issubclass() in python. * remove Parents[] array for each C++ class, was only used for isA() and wasnt correct in quite a few cases. * remove PyTypeObject that was being passed as the last argument to each class (the parent classes too). TODO - * Light and VertexProxy need to be converted to using attributes. * memory for getset arrays is never freed, not that bad since its will only allocates once. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
KX_NetworkEventManager.cpp | ||
KX_NetworkEventManager.h | ||
KX_NetworkMessageActuator.cpp | ||
KX_NetworkMessageActuator.h | ||
KX_NetworkMessageSensor.cpp | ||
KX_NetworkMessageSensor.h | ||
KX_NetworkObjectActuator.cpp | ||
KX_NetworkObjectActuator.h | ||
KX_NetworkObjectSensor.cpp | ||
KX_NetworkObjectSensor.h | ||
Makefile | ||
SConscript |