Kalevala.Character.Command (kalevala v0.1.0) View Source

Commands handle player actions

Link to this section Summary

Functions

Sets up a module to be a command

Link to this section Functions

Link to this macro

__using__(opts)

View Source (macro)

Sets up a module to be a command

To create a dynamic command, which parses player text to determine if it matches:

defmodule MyCommand do
  use Kalevala.Character.Command, dynamic: true
end