Kalevala.Brain (kalevala v0.1.0) View Source

A struct for holding a character's brain and state

Link to this section Summary

Functions

Get a value from the brain's state

Put a value in the brain's state

Process a new event based on the character's brain data

Link to this section Functions

Link to this function

get(brain, key, compare_time \\ Time.utc_now())

View Source

Get a value from the brain's state

Link to this function

put(brain, key, value, expires_at \\ nil)

View Source

Put a value in the brain's state

Process a new event based on the character's brain data