Current section
Files
Jump to
Current section
Files
lib/future_butcher_engine/application.ex
defmodule FutureButcherEngine.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
{Registry, keys: :unique, name: Registry.Game},
FutureButcherEngine.GameSupervisor
]
:ets.new(:game_state, [:public, :named_table])
opts = [strategy: :one_for_one, name: FutureButcherEngine.Supervisor]
Supervisor.start_link(children, opts)
end
end