Added a new iterator type to the scene - scene.objects should eventualy be used in place of scene.getChildren() and linking objects to the scene.

This commit is contained in:
2006-08-26 09:53:26 +00:00
parent ee302f8693
commit 66bc55e8a6
3 changed files with 270 additions and 9 deletions

View File

@@ -101,6 +101,9 @@ class Scene:
scene.layers = [3] # set layer 3
scene.layers = scene.layers.append(1)
print scene.layers # will print: [1, 3]
@type objects: list of integers
@ivar objects: An iterator for the scenes objects with set like functionality,
.add() and .remove() to add and remove objects.
"""
def getName():