on_command
on_command
Section titled “on_command”
fun on_command( name: String, command: (subject: Entity) -> DeveloperCommandDefinition)class Where(subject: Entity) : DeveloperCommandDefinition(subject) { override val commandHelp = "Say which tile you stand on" override fun run() = subject.message("You are at ${subject.tile4}.")}
on_command("where", ::Where, groups = Everyone)name: Stringcommand
Section titled “command”command: (subject: Entity) -> DeveloperCommandDefinitionon_command
Section titled “on_command”
fun on_command( name: String, command: (subject: Entity) -> DeveloperCommandDefinition, groups: Everyone)name: Stringcommand
Section titled “command”command: (subject: Entity) -> DeveloperCommandDefinitiongroups
Section titled “groups”groups: Everyoneon_command
Section titled “on_command”
fun on_command( name: String, command: (subject: Entity) -> DeveloperCommandDefinition, groups: List<String>)name: Stringcommand
Section titled “command”command: (subject: Entity) -> DeveloperCommandDefinitiongroups
Section titled “groups”groups: List<String>