View Source Kalevala.Event.Movement (kalevala v0.1.0)

An event to move from one room to another

Link to this section Summary

Types

t()

A movement event

Link to this section Types

@type t() :: %Kalevala.Event.Movement{
  character: term(),
  direction: term(),
  reason: term(),
  room_id: term()
}

A movement event

  • character is the character performing the movement
  • direction is one of two options, :to or :from, depending if the character is moving :to the room, or moving :from the room
  • reason is what will be sent to other characters in the room and displayed (to players)
  • room_id is the room the event is intended for