SimpleLeaf

class SimpleLeaf<S : AbstractScript>(script: S, name: String, action: () -> Unit) : Leaf<S>

Allows Scripters to create a very basic leaf that will execute a lambda Unit.

Constructors

SimpleLeaf
Link copied to clipboard
fun <S : AbstractScript> SimpleLeaf(script: S, name: String, action: () -> Unit)

Functions

execute
Link copied to clipboard
open override fun execute()

Leave this be, used in the TreeScript to update the logic

toString
Link copied to clipboard
open override fun toString(): String

Properties

action
Link copied to clipboard
val action: () -> Unit
name
Link copied to clipboard
val name: String
script
Link copied to clipboard
val script: S