Campbell Barton
136d4c34ba
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.
2009-05-10 01:48:14 +00:00
..
2009-04-17 10:24:44 +00:00
2008-04-16 22:40:48 +00:00
2008-09-06 14:13:31 +00:00
2009-04-29 16:54:45 +00:00
2009-04-20 23:17:52 +00:00
2008-07-30 17:41:47 +00:00
2008-07-30 17:41:47 +00:00
2009-04-29 16:54:45 +00:00
2009-04-20 23:17:52 +00:00
2008-07-30 17:41:47 +00:00
2008-07-30 17:41:47 +00:00
2009-04-29 16:54:45 +00:00
2009-04-20 23:17:52 +00:00
2009-05-04 22:21:02 +00:00
2009-04-20 23:17:52 +00:00
2009-04-29 16:54:45 +00:00
2009-04-20 23:17:52 +00:00
2008-07-30 17:41:47 +00:00
2008-07-30 17:41:47 +00:00
2009-05-04 22:21:02 +00:00
2009-04-20 23:17:52 +00:00
2009-05-03 21:51:57 +00:00
2009-05-03 21:51:57 +00:00
2009-05-10 01:48:14 +00:00
2009-05-06 09:12:08 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2009-05-03 21:51:57 +00:00
2009-05-03 21:51:57 +00:00
2009-05-03 21:51:57 +00:00
2009-05-03 21:51:57 +00:00
2008-04-19 21:15:37 +00:00
2008-04-19 21:15:37 +00:00
2009-05-04 22:21:02 +00:00
2009-05-04 22:21:02 +00:00
2008-10-11 00:56:49 +00:00
2008-08-31 18:42:58 +00:00
2009-04-29 16:54:45 +00:00
2009-04-20 23:17:52 +00:00
2008-07-30 17:41:47 +00:00
2008-07-30 17:41:47 +00:00
2009-05-04 22:21:02 +00:00
2009-04-20 23:17:52 +00:00
2009-05-03 21:42:39 +00:00
2009-05-01 20:34:23 +00:00
2008-07-30 17:41:47 +00:00
2008-07-30 17:41:47 +00:00
2009-04-29 16:54:45 +00:00
2009-04-20 23:17:52 +00:00
2009-05-04 22:21:02 +00:00
2009-04-20 23:17:52 +00:00
2009-05-04 22:21:02 +00:00
2009-04-20 23:17:52 +00:00
2009-05-04 22:21:02 +00:00
2009-04-20 23:17:52 +00:00
2009-04-29 16:54:45 +00:00
2009-04-20 23:17:52 +00:00
2008-07-30 17:41:47 +00:00
2008-07-30 17:41:47 +00:00
2009-05-03 09:21:58 +00:00
2009-04-20 23:17:52 +00:00
2009-05-06 09:12:08 +00:00
2009-05-06 09:12:08 +00:00
2009-04-29 16:54:45 +00:00
2009-04-20 23:17:52 +00:00
2008-07-30 17:41:47 +00:00
2008-07-30 17:41:47 +00:00
2005-03-09 19:45:59 +00:00
2008-04-16 22:40:48 +00:00
2009-04-29 16:54:45 +00:00
2009-04-20 23:17:52 +00:00
2008-07-30 17:41:47 +00:00
2008-07-30 17:41:47 +00:00
2009-05-04 22:21:02 +00:00
2009-04-20 23:17:52 +00:00
2009-05-04 22:21:02 +00:00
2009-04-20 23:17:52 +00:00
2009-02-15 23:26:00 +00:00