Echo Hollow

Gender-Bending Interactive Stories! :D

User Tools

Site Tools


libtf:documentation:api:apparel:generics

This is an old revision of the document!


<-- Back

Unless you are actually extending the library, you probably don't need to use any of these generic apparel classes. If you are just using the library in your game, you're probably better off using the built-in apparel classes for your apparel types instead.

LibTF.Apparel.Generics.GenericApparel

Inherits From: LibTF.PersistentObject

This is the generic apparel type from which all other apparel is derived. Persistent objects that specify this type in their defaults must also explicitly provide a slots section.

Fields

Inherited from LibTF.PersistentObject: id, parentId, parent, name, aName, nameIsProper, nameIrregularArticle

(GenericApparel).slots

  • Access: Read-Write.
  • Type: Array of enum ClothingSlot.

The ClothingSlots that this article of apparel occupies.

(GenericApparel).defaultSlots

  • Access: Read-Only.
  • Type: Array of enum ClothingSlot.

The default ClothingSlots that this article of apparel occupies. This is returned if there is no entry for the particular article of Apparel's slots in the persistence system. For GenericApparel, this returns [].

This getter is meant to be overridden in subclasses of Apparel, to make them occupy certain slots by default.

Methods

Inherited from LibTF.PersistentObject: hasPersistent(), getPersistent(), setPersistent(), resetPersistent()


LibTF.Apparel.Generics.GenericMenswear

Inherits From: LibTF.PersistentObject, LibTF.GenericApparel

This is a generic apparel type that (will at some point) provide default minimum and maximum femininity requirements, to make the article of Apparel by default only suitable for male-appearing Persons.

Fields

Inherited from LibTF.PersistentObject: id, parentId, parent, name, aName, nameIsProper, nameIrregularArticle

Inherited from LibTF.GenericApparel: slots, defaultSlots

Methods

Inherited from LibTF.PersistentObject: hasPersistent(), getPersistent(), setPersistent(), resetPersistent()


LibTF.Apparel.Generics.GenericWomenswear

Inherits From: LibTF.PersistentObject, LibTF.GenericApparel

This is a generic apparel type that (will at some point) provide default minimum and maximum femininity requirements, to make the article of Apparel by default only suitable for female-appearing Persons.

Fields

Inherited from LibTF.PersistentObject: id, parentId, parent, name, aName, nameIsProper, nameIrregularArticle

Inherited from LibTF.GenericApparel: slots, defaultSlots

Methods

Inherited from LibTF.PersistentObject: hasPersistent(), getPersistent(), setPersistent(), resetPersistent()

<-- Back

libtf/documentation/api/apparel/generics.1519582119.txt.gz ยท Last modified: 2018/02/25 10:08 by lee