Slot class

Class for slot related methods and properties.

Slots are helper-objects which allow you to attach items to. Attached items move with the slot and are treated as child of the item they are attached to.

By default, all items have a "Top" and "Bottom" slot.

Methods

attach_to(self, target: Slot) -> None

Attaches this Slot to another one. The owner of this Slot assumes rotation of the target and is parented.

Properties

readonly name str
readonly owner BaseItem