Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-05-10 05:48:14 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-05-10 05:48:14 +0400
commit136d4c34badc12b72f5c3541fcdaf2b1459af408 (patch)
tree2fc2952fb508234c74f9b1f1151dfea6dc242303 /source/gameengine/GameLogic/SCA_ORController.cpp
parentf155da0039104af88379bb354674e32ef2595960 (diff)
deprecate controller.getActuator(name) and controller.getSensor(name) for
controller.actuators[name] and controller.sensors[name] Made a read-only sequence type for logic brick sensors and actuators which can access single items or be used like a list or dictionary. We could use a python dictionary or CValueList but that would be slower to create. So you can do... for s in controller.sensors: print s print controller.sensors["Sensor"] print controller.sensors[0] sensors = list(controller.sensors) This sequence type keeps a reference to the proxy it came from and will raise an error on access if the proxy has been removed.
Diffstat (limited to 'source/gameengine/GameLogic/SCA_ORController.cpp')
0 files changed, 0 insertions, 0 deletions