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

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()

// Example code.

<-- Back

libtf/documentation/api/apparel/generics.1519580472.txt.gz ยท Last modified: 2018/02/25 09:41 by lee