2.50: svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r19323...
[blender.git] / source / gameengine / Ketsji / KX_SceneActuator.h
index af11af9..803c510 100644 (file)
@@ -92,24 +92,28 @@ class KX_SceneActuator : public SCA_IActuator
        /* Python interface ---------------------------------------------------- */
        /* --------------------------------------------------------------------- */
 
-       virtual PyObject* _getattr(const char *attr);
+       virtual PyObject* py_getattro(PyObject *attr);
+       virtual int py_setattro(PyObject *attr, PyObject *value);
 
        /* 1. set                                                                */
        /* Removed */
          
        /* 2. setUseRestart:                                                     */
-       KX_PYMETHOD_DOC(KX_SceneActuator,SetUseRestart);
+       KX_PYMETHOD_DOC_VARARGS(KX_SceneActuator,SetUseRestart);
        /* 3. getUseRestart:                                                     */
-       KX_PYMETHOD_DOC(KX_SceneActuator,GetUseRestart);
+       KX_PYMETHOD_DOC_NOARGS(KX_SceneActuator,GetUseRestart);
        /* 4. setScene:                                                          */
-       KX_PYMETHOD_DOC(KX_SceneActuator,SetScene);
+       KX_PYMETHOD_DOC_VARARGS(KX_SceneActuator,SetScene);
        /* 5. getScene:                                                          */
-       KX_PYMETHOD_DOC(KX_SceneActuator,GetScene);
+       KX_PYMETHOD_DOC_NOARGS(KX_SceneActuator,GetScene);
        /* 6. setCamera:                                                          */
-       KX_PYMETHOD_DOC(KX_SceneActuator,SetCamera);
+       KX_PYMETHOD_DOC_VARARGS(KX_SceneActuator,SetCamera);
        /* 7. getCamera:                                                          */
-       KX_PYMETHOD_DOC(KX_SceneActuator,GetCamera);
+       KX_PYMETHOD_DOC_NOARGS(KX_SceneActuator,GetCamera);
        
+       static PyObject* pyattr_get_camera(void *self, const struct KX_PYATTRIBUTE_DEF *attrdef);
+       static int pyattr_set_camera(void *self, const struct KX_PYATTRIBUTE_DEF *attrdef, PyObject *value);
+
 }; /* end of class KXSceneActuator */
 
 #endif