This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
libecho:classes:people [2022/05/20 20:27] – 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 inventory.contents = [ "item id", "item id", ... ] in the Person definition. | ||
- | |||
- | * Type: GeneralInventory | ||
- | * Required | ||
- | |||
- | === .apparel === | ||
- | The person' | ||
- | |||
- | Define this in your defaults using apparel.contents = [ "item id", "item id", ... ] in the Person definition. | ||
- | |||
- | 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 | ||
- | |||
- | === .someProperty === | ||
- | FIXME add .name etc etc from PersistentObject. | ||
- | |||
- | * Type: type | ||
- | * Optional Required | ||
- | |||