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 [2024/06/19 20:21] (current) – removed lee | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== LibEcho.People ====== | ||
- | |||
- | People comprise major and minor characters -- anyone who might need an inventory, be able to change apparel, or be transformed through the library' | ||
- | |||
- | Supporting characters, that is anyone who doesn' | ||
- | |||
- | FIXME At the moment only GenericPerson is implemented. | ||
- | |||
- | ===== LibEcho.People.GenericPerson ===== | ||
- | |||
- | Inherits from: PersistentObject | ||
- | |||
- | The base class from which all other People are derived. | ||
- | |||
- | ==== Properties ==== | ||
- | |||
- | === .inventory === | ||
- | 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. | ||
- | |||
- | * Type: GeneralInventory | ||
- | * Required | ||
- | |||
- | === .apparel === | ||
- | 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. | ||
- | |||
- | 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. | ||
- | |||
- | * Type: WornApparel | ||
- | * Required | ||
- | |||