Start repo, claude & kimi still vibing tho
This commit is contained in:
37
lib/odinsea/world/supervisor.ex
Normal file
37
lib/odinsea/world/supervisor.ex
Normal file
@@ -0,0 +1,37 @@
|
||||
defmodule Odinsea.World.Supervisor do
|
||||
@moduledoc """
|
||||
Supervisor for the game world services.
|
||||
Manages parties, guilds, families, and global state.
|
||||
"""
|
||||
|
||||
use Supervisor
|
||||
|
||||
def start_link(init_arg) do
|
||||
Supervisor.start_link(__MODULE__, init_arg, name: __MODULE__)
|
||||
end
|
||||
|
||||
@impl true
|
||||
def init(_init_arg) do
|
||||
children = [
|
||||
# World state
|
||||
Odinsea.World,
|
||||
|
||||
# Party management
|
||||
Odinsea.World.Party,
|
||||
|
||||
# Guild management
|
||||
Odinsea.World.Guild,
|
||||
|
||||
# Family management
|
||||
Odinsea.World.Family,
|
||||
|
||||
# Expedition management
|
||||
Odinsea.World.Expedition,
|
||||
|
||||
# Messenger system
|
||||
Odinsea.World.Messenger
|
||||
]
|
||||
|
||||
Supervisor.init(children, strategy: :one_for_one)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user