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

com.lop.devtools.monstera.files.beh.entitiy.components.ComponentSleep.kt Maven / Gradle / Ivy

package com.lop.devtools.monstera.files.beh.entitiy.components

class ComponentSleep {
    val general = mutableMapOf()

    var priority: Int? = null
    var cooldownTime: Float? = null
    var goalRadius: Float? = null
    var speedMultiplier: Float? = null
    var sleepColliderHeight: Float? = null
    var sleepColliderWidth: Float? = null
    var sleepYOffset: Float? = null
    var timeoutCooldown: Float? = null

    fun getData(): MutableMap {
        priority?.let { general["priority"] = it }
        cooldownTime?.let { general["cooldown_time"] = it }
        goalRadius?.let { general["goal_radius"] = it }
        speedMultiplier?.let { general["speed_multiplier"] = it }
        sleepColliderHeight?.let { general["sleep_collider_height"] = it }
        sleepColliderWidth?.let { general["sleep_collider_width"] = it }
        sleepYOffset?.let { general["sleep_y_offset"] = it }
        timeoutCooldown?.let { general["timeout_cooldown"] = it }
        return general
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy