StatSlots
object StatSlotson_login { player -> for (skill in player.allComponents().filterIsInstance<Skill>()) { val slot = StatSlots.slotOf(skill.javaClass) ?: continue Logger.info("${skill.name} is shown in stat slot $slot") }}const val COUNT: Int = 24val bound: Map<Class<out Skill>, Int>fun bind( skill: Class<out Skill>, slot: Int)
inline fun <reified T : Skill> bind(slot: Int): Unitunbind
Section titled “unbind”fun unbind(skill: Class<out Skill>): BooleanslotOf
Section titled “slotOf”fun slotOf(skill: Class<out Skill>): Int?skillAt
Section titled “skillAt”fun skillAt(slot: Int): Class<out Skill>?