gleeps
Types
TBD
pub type Action
pub type Runtime(state) {
Runtime(
init: fn() -> state,
loop: fn(state, WorldState) -> #(state, List(Action)),
)
}
Constructors
-
Runtime( init: fn() -> state, loop: fn(state, WorldState) -> #(state, List(Action)), )
TBD
pub type WorldState {
WorldState
}
Constructors
-
WorldStateTBD
Values
pub fn new(
init init: fn() -> state,
loop loop: fn(state, WorldState) -> #(state, List(Action)),
) -> Runtime(state)
creates a new runtime