added checking of result when building demos
[urisagit/Stem.git] / Cookbook / worlds.stem
1 --- #YAML:1.0
2 # This is YAML format Stem configuration file. It load a colsole cell
3 # and all the cookbook classes and registers a number of object cells
4 #
5 # Load and initialize the console class
6 -
7  class: Stem::Console
8 # Load the World1 class. We pass no arguments as this is a class level cell.
9 -
10  class: World1
11 # Load the World2 class. We pass no arguments as this is a class level cell.
12 -
13  class: World2
14 # Load the World3 class, construct an object with an empty argument list
15 # and register is as a Cell with the name 'planet1'.
16 # This Cell will use the default value for its name attribute
17 -
18  class: World3
19  name: planet1
20  args: []
21 # Construct another World3 object with an argument list and register
22 # that as the Cell with the name 'planet2.
23 # This Cell will use the value 'venus' for its name attribute
24 -
25  class: World3
26  name: planet2
27  args:
28   planet: venus
29 # Load the World4 class, construct an object with an argument list and
30 # register that as the Cell with the name 'planet3.
31 # This Cell will use the value 'earth' for its name attribute
32 -
33  class: World4
34  name: planet3
35  args:
36   name: earth
37 # Construct another World4 object with an argument list and
38 # register that as the Cell with the name 'planet4.
39 # This Cell will use the value 'mars' for its name attribute
40 -
41  class: World4
42  name: planet4
43  args:
44   planet: mars
45 # Load the World5 class, construct an object with an argument list and
46 # register that as the Cell with the name 'system.
47 # This Cell will use the value 'jupiter' for its name attribute and be
48 # cloneable.  The value in name will be the default name for all Cells
49 # cloned from this parent
50 -
51  class: World5
52  name: planet5
53  args:
54   planet: jupiter
55   cell_attr:
56    cloneable: 1