AttachmentData

Stores the various attachment data which are required to work with attachments for horses.

Require: require("HorseMod/attachments/AttachmentData")

HorseMod.attachments.AttachmentData.items: table<string, HorseMod.ItemDefinition>

Maps items’ fulltype to their associated attachment definition.

HorseMod.attachments.AttachmentData.containerItems: table<string, true>

Holds the unique full types of world items for container behaviors. Automatically generated from HorseMod.ContainerBehavior.worldItem.

HorseMod.attachments.AttachmentData.DEFAULT_ATTACHMENT_DEFS: table<string, HorseMod.ItemDefinition>

Default attachment definitions.

HorseMod.attachments.AttachmentData.slotsDefinitions

Sets attachment model points and mane properties for attachment slots.

HorseMod.attachments.AttachmentData.slots: HorseMod.AttachmentSlot[]

Every available attachment slots. Automatically generated from HorseMod.attachments.AttachmentData.slotsDefinitions.

HorseMod.attachments.AttachmentData.maneSlots: table<HorseMod.AttachmentSlot, string>

Mane slots associated to their default mane items. Automatically generated from HorseMod.attachments.AttachmentData.slotsDefinitions.

HorseMod.attachments.AttachmentData.MANE_HEX_BY_BREED: table<string, HorseMod.HexColor[]>

Breeds associated to their mane colors.

HorseMod.attachments.AttachmentData.MANE_DEFAULT: HorseMod.ManeDefinition

Default mane items configuration.

HorseMod.attachments.AttachmentData.maneByBreed: table<string, HorseMod.ManeDefinition>

Mane definitions by horse breed. Automatically generated from HorseMod.attachments.AttachmentData.MANE_HEX_BY_BREED.

HorseMod.attachments.AttachmentData.REIN_STATES: table<string, string>

Suffix for rein model swapping during horse riding.

HorseMod.attachments.AttachmentData.preLoadAttachments: HorseMod.Event

Triggered before attachment data is loaded. This is the last possible opportunity to add new attachment data.

HorseMod.attachments.AttachmentData.postLoadAttachments: HorseMod.Event

Triggered after attachment data is loaded.