amethyst/apps/example_game/lib/example/game.ex
Kodi Craft 450ca4d53a
Some checks failed
Build & Test / nix-build (push) Failing after 41s
Implement tests for GameRegistry
2024-08-19 00:00:03 +02:00

16 lines
302 B
Elixir

defmodule Example.Game do
require Logger
use Amethyst.API.Game, meta: [default: true]
@impl true
def instantiate() do
{:ok, [:hello]}
end
@impl true
def login(from, cfg, state) do
Logger.info("Player logged in from #{inspect(from)}: #{inspect(cfg)}")
{:ok, state}
end
end