Add packages to plugins

This commit is contained in:
Major
2017-09-24 22:35:07 +01:00
parent b4e8a7136b
commit 046f373c9e
32 changed files with 398 additions and 366 deletions
+19
View File
@@ -0,0 +1,19 @@
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)
}
}