From 0145a93f2403063c22a14260e200174efb822fec Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 21 Apr 2009 23:15:18 +0000 Subject: Patch from Mitchell Stokes for KX_Light to use attrdef's Added type access to the SCA_PropertyActuator, added missing function in library docs. --- source/gameengine/Ketsji/KX_Light.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/gameengine/Ketsji/KX_Light.h') diff --git a/source/gameengine/Ketsji/KX_Light.h b/source/gameengine/Ketsji/KX_Light.h index e5d48b6f975..35f25515e3b 100644 --- a/source/gameengine/Ketsji/KX_Light.h +++ b/source/gameengine/Ketsji/KX_Light.h @@ -66,6 +66,13 @@ public: virtual PyObject* py_getattro_dict(); virtual int py_setattro(PyObject *attr, PyObject *pyvalue); + /* attributes */ + static PyObject* pyattr_get_color(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef); + static int pyattr_set_color(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef, PyObject* value); + static PyObject* pyattr_get_typeconst(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef); + static PyObject* pyattr_get_type(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef); + static int pyattr_set_type(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef, PyObject* value); + virtual bool IsLight(void) { return true; } }; -- cgit v1.2.3