View Source Islands.Island.Offsets (Islands Island v0.1.35)

Returns a list of offset tuples for each island type.

Summary

Types

Column offset

Row offset

t()

A list of offset tuples

Functions

Returns a list of offset tuples for the given island_type.

Types

col_offset()

@type col_offset() :: 0..2

Column offset

row_offset()

@type row_offset() :: 0..2

Row offset

t()

@type t() :: [{row_offset(), col_offset()}]

A list of offset tuples

Functions

new(island_type)

@spec new(Islands.Island.type()) :: t() | {:error, atom()}

Returns a list of offset tuples for the given island_type.