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-24 20:27:04 +00:00
2009-05-02 04:53:01 +00:00
2009-04-28 13:02:49 +00:00
2009-04-05 10:03:23 +00:00
2009-04-28 13:02:49 +00:00
2009-04-28 13:02:49 +00:00
2009-04-28 13:02:49 +00:00
2009-04-05 10:03:23 +00:00
2009-04-24 20:27:04 +00:00
2009-05-06 09:12:08 +00:00
2009-04-13 19:33:22 +00:00
2009-04-28 13:02:49 +00:00
2009-04-28 13:02:49 +00:00
2009-02-19 10:34:51 +00:00
2009-04-05 10:03:23 +00:00
2009-04-24 07:45:17 +00:00
2009-04-07 17:54:56 +00:00
2009-05-02 02:40:11 +00:00
2009-05-10 01:48:14 +00:00
2009-03-26 01:42:01 +00:00
2009-04-06 13:13:25 +00:00
2009-04-28 13:02:49 +00:00
2009-04-15 13:50:56 +00:00
2009-02-28 21:00:27 +00:00
2009-03-31 19:02:01 +00:00
2009-03-31 19:02:01 +00:00
2008-08-31 19:07:10 +00:00
2009-05-02 02:40:11 +00:00
2009-04-28 13:02:49 +00:00
2005-03-25 10:33:39 +00:00
2009-04-28 13:02:49 +00:00
2009-02-28 21:00:27 +00:00
2009-03-31 19:02:01 +00:00
2009-04-06 13:13:25 +00:00
2009-04-06 13:13:25 +00:00
2004-06-02 12:43:27 +00:00
2009-04-06 13:13:25 +00:00
2009-04-28 13:02:49 +00:00
2009-05-06 09:12:08 +00:00
2009-04-24 07:45:17 +00:00
2009-04-24 07:45:17 +00:00
2009-04-07 17:54:56 +00:00
2009-04-05 10:03:23 +00:00
2009-04-28 13:02:49 +00:00
2009-05-03 20:47:29 +00:00
2009-04-13 20:08:33 +00:00
2009-04-28 13:02:49 +00:00
2009-04-24 20:27:04 +00:00
2009-04-09 12:53:56 +00:00
2009-04-06 13:13:25 +00:00
2004-05-30 11:09:46 +00:00
2004-06-02 12:43:27 +00:00
2009-02-26 04:17:23 +00:00
2004-06-02 12:43:27 +00:00
2009-05-10 01:48:14 +00:00
2009-05-02 02:40:11 +00:00
2009-04-28 13:02:49 +00:00
2009-04-28 13:02:49 +00:00
2009-04-07 06:23:45 +00:00
2009-04-09 22:15:26 +00:00
2009-04-06 13:13:25 +00:00
2009-04-13 19:33:22 +00:00
2009-04-13 19:33:22 +00:00
2004-06-02 12:43:27 +00:00
2008-12-29 16:36:58 +00:00
2008-12-29 16:36:58 +00:00
2009-05-06 09:12:08 +00:00
2008-12-29 16:36:58 +00:00
2009-04-07 11:45:48 +00:00
2009-04-13 19:33:22 +00:00
2009-04-13 19:33:22 +00:00
2009-04-19 22:02:48 +00:00
2009-04-06 13:13:25 +00:00