ElixirDoom.Seen (elixir_doom v0.1.0)

Copy Markdown View Source

The lines each player has seen on each level, for their automap. The view that draws a player's picture records what it drew; the automap reads it back.

ElixirDoom.Seen.add({"alice", "E1M1"}, lines)
ElixirDoom.Seen.get({"alice", "E1M1"})

Kept in a public ETS table created by ElixirDoom.Application.

Summary

Functions

Add lines to what key has seen.

Create the table. Called once by the application.

What key has seen.

Functions

add(key, lines)

@spec add(term(), MapSet.t()) :: :ok

Add lines to what key has seen.

create()

@spec create() :: :ok

Create the table. Called once by the application.

get(key)

@spec get(term()) :: MapSet.t()

What key has seen.