mogs v0.1.1 Mogs.Board.Command behaviour

This module defines a behaviour for module-based commands that define a command as a struct and callbacks to handle such commands with a board.

Adopting the behaviour with use Mogs.Board.Command imports the helpers to define a command result.

Link to this section Summary

Link to this section Types

Link to this type

command_result()

command_result() :: Mogs.Board.Command.Result.t()
Link to this type

t()

t() :: struct() | {module(), data :: any()}

Link to this section Functions

Link to this function

run_command(command, board)

Link to this section Callbacks