The registered worlds, one record each, in an ETS table this process owns.
Cauldron2D.Worlds.Table.put(:pit, %{id: :pit, opts: [game: MyGame], listing: %{name: "The Pit"}})
Cauldron2D.Worlds.Table.all()
Cauldron2D.Worlds.Table.listings()A record's listing is kept beside it so listings/0 reads the listings alone,
leaving the records — a game's options can be large — where they are.
Summary
Functions
Every world's record.
Returns a specification to start this module under a supervisor.
Forget world id.
The record of world id, or nil.
Every world's id with its listing, copying nothing else of the records.
Record world id; record.listing, when there is one, is what listings/0 returns for it.
Functions
@spec all() :: [map()]
Every world's record.
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec delete(term()) :: :ok
Forget world id.
The record of world id, or nil.
Every world's id with its listing, copying nothing else of the records.
Record world id; record.listing, when there is one, is what listings/0 returns for it.