This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
libecho:classes:people [2022/05/20 16:45] – created lee | libecho:classes:people [2022/05/20 20:27] (current) – lee | ||
---|---|---|---|
Line 18: | Line 18: | ||
The person' | The person' | ||
- | Define this in your defaults using soandso.inventory.contents = [ "item id", "item id", ... ]. The actual inventory object itself is created and initialized in the Person constructor. | + | Define this in your defaults using inventory.contents = [ "item id", "item id", ... ] in the Person definition. The actual inventory object itself is created and initialized in the Person constructor. |
* Type: GeneralInventory | * Type: GeneralInventory | ||
Line 26: | Line 26: | ||
The person' | The person' | ||
- | Define this in your defaults using soandso.apparel.contents = [ "item id", "item id", ... ]. The actual worn apparel object itself is created and initialized in the Person constructor. | + | Define this in your defaults using apparel.contents = [ "item id", "item id", ... ] in the Person definition. The actual worn apparel object itself is created and initialized in the Person constructor. |
Note that it is possible to accidentally assign multiple articles of apparel to the same ClothingSlot when initializing like this. It won't produce an error, but it may produce odd results. | Note that it is possible to accidentally assign multiple articles of apparel to the same ClothingSlot when initializing like this. It won't produce an error, but it may produce odd results. | ||
Line 32: | Line 32: | ||
* Type: WornApparel | * Type: WornApparel | ||
* Required | * Required | ||
+ | |||
+ | === .someProperty === | ||
+ | FIXME add .name etc etc from PersistentObject. | ||
+ | |||
+ | * Type: type | ||
+ | * Optional Required | ||