patch from Mitchell Stokes, comments only - KX_PYATTRIBUTE_TODO for missing attributes

This commit is contained in:
Campbell Barton 2009-04-23 00:47:45 +00:00
parent 6a270ecb94
commit e8f5c75005
12 changed files with 27 additions and 1 deletions

@ -1010,6 +1010,7 @@ PyAttributeDef BL_ActionActuator::Attributes[] = {
KX_PYATTRIBUTE_BOOL_RW("continue", BL_ActionActuator, m_end_reset),
KX_PYATTRIBUTE_FLOAT_RW_CHECK("blendTime", 0, MAXFRAMEF, BL_ActionActuator, m_blendframe, CheckBlendTime),
KX_PYATTRIBUTE_SHORT_RW_CHECK("type",0,100,false,BL_ActionActuator,m_playtype,CheckType),
//KX_PYATTRIBUTE_TODO("channel"),
{ NULL } //Sentinel
};

@ -249,6 +249,7 @@ PyMethodDef SCA_ILogicBrick::Methods[] = {
PyAttributeDef SCA_ILogicBrick::Attributes[] = {
KX_PYATTRIBUTE_RO_FUNCTION("owner", SCA_ILogicBrick, pyattr_get_owner),
KX_PYATTRIBUTE_INT_RW("executePriority",0,100000,false,SCA_ILogicBrick,m_Execute_Ueber_Priority),
//KX_PYATTRIBUTE_TODO("name"),
{NULL} //Sentinel
};

@ -456,6 +456,9 @@ PyAttributeDef SCA_ISensor::Attributes[] = {
KX_PYATTRIBUTE_BOOL_RW("level",SCA_ISensor,m_level),
KX_PYATTRIBUTE_RO_FUNCTION("triggered", SCA_ISensor, pyattr_get_triggered),
KX_PYATTRIBUTE_RO_FUNCTION("positive", SCA_ISensor, pyattr_get_positive),
//KX_PYATTRIBUTE_TODO("links"),
//KX_PYATTRIBUTE_TODO("posTicks"),
//KX_PYATTRIBUTE_TODO("negTicks"),
{ NULL } //Sentinel
};

@ -330,7 +330,7 @@ PyAttributeDef SCA_JoystickSensor::Attributes[] = {
KX_PYATTRIBUTE_RO_FUNCTION("numButtons", SCA_JoystickSensor, pyattr_get_num_buttons),
KX_PYATTRIBUTE_RO_FUNCTION("numHats", SCA_JoystickSensor, pyattr_get_num_hats),
KX_PYATTRIBUTE_RO_FUNCTION("connected", SCA_JoystickSensor, pyattr_get_connected),
//KX_PYATTRIBUTE_TODO("events"),
{ NULL } //Sentinel
};

@ -771,6 +771,9 @@ PyMethodDef KX_BlenderMaterial::Methods[] =
};
PyAttributeDef KX_BlenderMaterial::Attributes[] = {
//KX_PYATTRIBUTE_TODO("shader"),
//KX_PYATTRIBUTE_TODO("materialIndex"),
//KX_PYATTRIBUTE_TODO("blending"),
{ NULL } //Sentinel
};

@ -131,5 +131,6 @@ PyMethodDef KX_ConstraintWrapper::Methods[] = {
};
PyAttributeDef KX_ConstraintWrapper::Attributes[] = {
//KX_PYATTRIBUTE_TODO("constraintId"),
{ NULL } //Sentinel
};

@ -248,6 +248,7 @@ PyMethodDef KX_GameActuator::Methods[] =
PyAttributeDef KX_GameActuator::Attributes[] = {
KX_PYATTRIBUTE_STRING_RW("file",0,100,false,KX_GameActuator,m_filename),
//KX_PYATTRIBUTE_TODO("mode"),
{ NULL } //Sentinel
};

@ -330,6 +330,17 @@ PyMethodDef KX_ObjectActuator::Methods[] = {
};
PyAttributeDef KX_ObjectActuator::Attributes[] = {
//KX_PYATTRIBUTE_TODO("force"),
//KX_PYATTRIBUTE_TODO("torque"),
//KX_PYATTRIBUTE_TODO("dLoc"),
//KX_PYATTRIBUTE_TODO("dRot"),
//KX_PYATTRIBUTE_TODO("linV"),
//KX_PYATTRIBUTE_TODO("angV"),
//KX_PYATTRIBUTE_TODO("damping"),
//KX_PYATTRIBUTE_TODO("forceLimitX"),
//KX_PYATTRIBUTE_TODO("forceLimitY"),
//KX_PYATTRIBUTE_TODO("forceLimitZ"),
//KX_PYATTRIBUTE_TODO("pid"),
{ NULL } //Sentinel
};

@ -173,6 +173,7 @@ PyMethodDef KX_ParentActuator::Methods[] = {
PyAttributeDef KX_ParentActuator::Attributes[] = {
KX_PYATTRIBUTE_RW_FUNCTION("object", KX_ParentActuator, pyattr_get_object, pyattr_set_object),
//KX_PYATTRIBUTE_TODO("mode"),
{ NULL } //Sentinel
};

@ -79,6 +79,7 @@ PyMethodDef KX_PolyProxy::Methods[] = {
PyAttributeDef KX_PolyProxy::Attributes[] = {
/* All dummy's so they come up in a dir() */
//KX_PYATTRIBUTE_TODO("DummyProps"),
KX_PYATTRIBUTE_DUMMY("matname"),
KX_PYATTRIBUTE_DUMMY("texture"),
KX_PYATTRIBUTE_DUMMY("material"),

@ -270,6 +270,8 @@ PyMethodDef KX_SceneActuator::Methods[] =
PyAttributeDef KX_SceneActuator::Attributes[] = {
KX_PYATTRIBUTE_STRING_RW("scene",0,32,true,KX_SceneActuator,m_nextSceneName),
KX_PYATTRIBUTE_RW_FUNCTION("camera",KX_SceneActuator,pyattr_get_camera,pyattr_set_camera),
//KX_PYATTRIBUTE_TODO("useRestart"),
//KX_PYATTRIBUTE_TODO("mode"),
{ NULL } //Sentinel
};

@ -79,6 +79,7 @@ PyMethodDef KX_VertexProxy::Methods[] = {
};
PyAttributeDef KX_VertexProxy::Attributes[] = {
//KX_PYATTRIBUTE_TODO("DummyProps"),
KX_PYATTRIBUTE_DUMMY("x"),
KX_PYATTRIBUTE_DUMMY("y"),