Packages

A M.U.D. engine implemented in Elixir.

Retired package: Focus of project has shifted. No longer a library.

Current section

Files

Jump to
exmud lib exmud.ex
Raw

lib/exmud.ex

defmodule Exmud do
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
supervisor(Task.Supervisor, [[name: Eden.TaskSupervisor]]),
supervisor(Exmud.PlayerSup, [])
]
env = Application.get_env(:eden, :system_env, %{})
systems = Application.get_env(:eden, :systems, [])
|> Enum.map(&(worker(&1, [env])))
opts = [strategy: :one_for_one, name: Exmud.Supervisor]
Supervisor.start_link(children ++ systems, opts)
end
end