View Source Ecspanse.Event.StateTransition (ECSpanse v0.10.0)

Special library event emitted upon a state change.

Examples

  %Ecspanse.Event.StateTransition{
    module: Demo.States.Game,
    previous_state: :running,
    current_state: :paused
  }

Summary

Types

@type t() :: %Ecspanse.Event.StateTransition{
  current_state: atom(),
  inserted_at: term(),
  module: module(),
  previous_state: atom()
}