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

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

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

interface ConstraintData {
    val name:String
    var order:Int
    var skinRequired:Boolean
}

class IkConstraintData(
    override val name:String,
    override var order:Int,
    override var skinRequired:Boolean,
) : ConstraintData

class PathConstraintData(
    override val name:String,
    override var order:Int,
    override var skinRequired:Boolean,
) : ConstraintData

class PhysicConstraintData(
    override val name:String,
    override var order:Int,
    override var skinRequired:Boolean,
) : ConstraintData

class TransformConstraintData(
    override val name:String,
    override var order:Int,
    override var skinRequired:Boolean,
) : ConstraintData


class IkConstraint(val skeleton: Skeleton, val data:IkConstraintData)

class PathConstraint(val skeleton: Skeleton, val data:PathConstraintData)
class PhysicsConstraint(val skeleton: Skeleton, val data:PhysicConstraintData)
class TransformConstraint(val skeleton: Skeleton, val data:TransformConstraintData)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy