Files
apollo/game/plugin/api/src/definitions.kt
T
2017-09-24 22:35:07 +01:00

19 lines
455 B
Kotlin

package org.apollo.game.plugin.api
import org.apollo.cache.def.ItemDefinition
import org.apollo.cache.def.NpcDefinition
import org.apollo.cache.def.ObjectDefinition
object Definitions {
fun item(id: Int): ItemDefinition? {
return ItemDefinition.lookup(id)
}
fun obj(id: Int): ObjectDefinition? {
return ObjectDefinition.lookup(id)
}
fun npc(id: Int): NpcDefinition? {
return NpcDefinition.lookup(id)
}
}