commonMain.ru.casperix.spine.Skin.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spine-jvm Show documentation
Show all versions of spine-jvm Show documentation
Signals for all occasions
package ru.casperix.spine
import ru.casperix.math.color.Color
data class SkinAttachmentKey(val name: String, val slotIndex: Int)
class Skin(
val name:String,
val color: Color,
val attachments: Map,
val bones:List,
val constraints:List
) {
fun getAttachment(slotIndex: Int, attachmentName: String): Attachment? {
return attachments[SkinAttachmentKey(attachmentName, slotIndex)]
}
}