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

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

There is a newer version: 1.1.1
Show newest version
package ru.casperix.spine

import ru.casperix.math.axis_aligned.float32.Box2f
import ru.casperix.spine.animation.Animation

class SkeletonData(
    val animations: List,
    val audioPath: String,
    val bones: List,
    val defaultSkin: Skin?,
    val events: List,
    val fps: Float,
    val hash: String,
    val ikConstraints: List,
    val imagesPath: String,
    val name: String,
    val pathConstraints: List,
    val physicConstraints: List,
    val referenceScale: Float,
    val skins: List,
    val slots: List,
    val transformConstraints: List,
    val version: String,
    val area: Box2f,
) {

    fun getAnimation(animationName: String): Animation? {
        return animations.firstOrNull { it.name == animationName }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy