Skip to content

Actor

class Actor : Entity()
Example
on_login { player ->
player.message("Welcome back.")
val hp = player.findComponent<Hitpoints>()
if (hp != null) player.message("You have ${hp.current} of ${hp.max} hitpoints.")
if (player.inGroup("admin")) player.message("Admin tools are on.")
}
fun create(username: String): Actor
fun createBot(
name: String,
tile: Tile3
): Actor