amethyst/apps/example_game/lib/example/game.ex
Kodi Craft 78442a94af
All checks were successful
Build & Test / nix-build (push) Successful in 1m9s
Begin implementing logging player into a game
2024-08-18 13:44:09 +02:00

16 lines
303 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.debug("Player logged in from #{inspect(from)}: #{inspect(cfg)}")
{:ok, state}
end
end