All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.ru.casperix.spine.Skin.kt Maven / Gradle / Ivy

The newest version!
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)]
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy