Blender Git Commit Log
Git Commits -> Revision cc56950
Revision cc56950 by Benoit Bolsee (master) January 2, 2009, 17:43 (GMT) |
BGE API Cleanup: update the python attribute definition framework. * Value clamping to min/max is now supported as an option for integer, float and string attribute (for string clamping=trim to max length) * Post check function now take PyAttributeDef parameter so that more generic function can be written. * Definition of SCA_ILogicBrick::CheckProperty() function to check that a string attribute contains a valid property name of the parent game object. * Definition of enum attribute vi KX_PYATTRIBUTE_ENUM... macros. Enum are handled just like integer but to be totally paranoid, the sizeof() of the enum member is check at run time to match integer size. * More bricks updated to use the framework. |
Commit Details:
Full Hash: cc569504d0468ec19a1018ea804aa418c134cb0f
SVN Revision: 18267
Parent Commit: abd4934
Lines Changed: +325, -311
18 Modified Paths:
/source/gameengine/Expressions/PyObjectPlus.cpp (+115, -27) (Diff)
/source/gameengine/Expressions/PyObjectPlus.h (+53, -39) (Diff)
/source/gameengine/GameLogic/SCA_ActuatorSensor.cpp (+23, -16) (Diff)
/source/gameengine/GameLogic/SCA_ActuatorSensor.h (+1, -0) (Diff)
/source/gameengine/GameLogic/SCA_DelaySensor.cpp (+13, -32) (Diff)
/source/gameengine/GameLogic/SCA_ILogicBrick.cpp (+17, -1) (Diff)
/source/gameengine/GameLogic/SCA_ILogicBrick.h (+3, -0) (Diff)
/source/gameengine/GameLogic/SCA_ISensor.cpp (+19, -54) (Diff)
/source/gameengine/GameLogic/SCA_JoystickSensor.cpp (+5, -5) (Diff)
/source/gameengine/GameLogic/SCA_JoystickSensor.h (+10, -12) (Diff)
/source/gameengine/GameLogic/SCA_KeyboardSensor.cpp (+5, -5) (Diff)
/source/gameengine/GameLogic/SCA_MouseSensor.cpp (+3, -3) (Diff)
/source/gameengine/GameLogic/SCA_MouseSensor.h (+1, -1) (Diff)
/source/gameengine/GameLogic/SCA_PropertyActuator.cpp (+12, -25) (Diff)
/source/gameengine/GameLogic/SCA_PropertySensor.cpp (+20, -45) (Diff)
/source/gameengine/GameLogic/SCA_PropertySensor.h (+4, -5) (Diff)
/source/gameengine/GameLogic/SCA_RandomActuator.cpp (+21, -40) (Diff)
/source/gameengine/GameLogic/SCA_RandomActuator.h (+0, -1) (Diff)
/source/gameengine/Expressions/PyObjectPlus.h (+53, -39) (Diff)
/source/gameengine/GameLogic/SCA_ActuatorSensor.cpp (+23, -16) (Diff)
/source/gameengine/GameLogic/SCA_ActuatorSensor.h (+1, -0) (Diff)
/source/gameengine/GameLogic/SCA_DelaySensor.cpp (+13, -32) (Diff)
/source/gameengine/GameLogic/SCA_ILogicBrick.cpp (+17, -1) (Diff)
/source/gameengine/GameLogic/SCA_ILogicBrick.h (+3, -0) (Diff)
/source/gameengine/GameLogic/SCA_ISensor.cpp (+19, -54) (Diff)
/source/gameengine/GameLogic/SCA_JoystickSensor.cpp (+5, -5) (Diff)
/source/gameengine/GameLogic/SCA_JoystickSensor.h (+10, -12) (Diff)
/source/gameengine/GameLogic/SCA_KeyboardSensor.cpp (+5, -5) (Diff)
/source/gameengine/GameLogic/SCA_MouseSensor.cpp (+3, -3) (Diff)
/source/gameengine/GameLogic/SCA_MouseSensor.h (+1, -1) (Diff)
/source/gameengine/GameLogic/SCA_PropertyActuator.cpp (+12, -25) (Diff)
/source/gameengine/GameLogic/SCA_PropertySensor.cpp (+20, -45) (Diff)
/source/gameengine/GameLogic/SCA_PropertySensor.h (+4, -5) (Diff)
/source/gameengine/GameLogic/SCA_RandomActuator.cpp (+21, -40) (Diff)
/source/gameengine/GameLogic/SCA_RandomActuator.h (+0, -1) (Diff)