libtf:documentation:api:apparel:start
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision |
libtf:documentation:api:apparel:start [2018/02/25 09:12] – created lee | libtf:documentation:api:apparel:start [2018/09/23 17:24] (current) – removed lee |
---|
Apparel in LibTF is defined as anything that a Person can wear. This includes clothing, jewelry, and perhaps even naughty toys in some cases. | |
| |
An article of Apparel may occupy one or more ClothingSlots. This prevents a character from wearing a dozen coats at the same time, for example. A shirt would occupy ClothingSlot.TORSO and a pair of pants would occupy ClothingSlot.TRUNK. A dress would occupy //both// ClothingSlot.TORSO and ClothingSlot.TRUNK. | |
| |
When a Person wears a particular article of Apparel, any currently worn articles that occupy the same ClothingSlots are removed. | |
| |
A couple of generic apparel types are provided. GenericApparel provides a bare-bones Apparel implementation from which which all other apparel types are subclassed. GenericMenswear and GenericWomenswear provide implementations which reference the potential wearer's femininity stat to determine whether or not they can be worn, and provide some default adjustments to that stat. | |
| |
Additionally, several specific apparel types are provided, which ought to cover most use-cases, simplifying the structure of the defaults files. | |
| |
The apparel system also provides the WornApparel class, which is a special subclass of Inventory that only deals with apparel. It is used by the Person class to track what a Person is wearing, and provides the auto-removal functionality mentioned above. | |
| |
* [[libtf:documentation:api:apparel:generics|Generic Apparel Classes]] | |
* [[libtf:documentation:api:apparel:builtin|Built-In Apparel Classes]] | |
| |
* [[libtf:documentation:api:apparel:clothingslot|LibTF.Apparel.ClothingSlot]] | |
* [[libtf:documentation:api:apparel:wornapparel|LibTF.Apparel.WornApparel]] | |
| |
libtf/documentation/api/apparel/start.1519578749.txt.gz · Last modified: 2018/02/25 09:12 by lee