commonMain.ru.casperix.spine.SkeletonData.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.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 }
}
}