blob: da92651787aa838278ed86b16833d7599a4be0a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
-- Creates entities from commited messages
world = require("world")
log = require("log")
maker = {}
maker.start_peer = () ->
-- All modes now use client interface (including host)
if world.network
-- Receive suggestions from hub
world.network\register_router("suggest", (from_id, data) ->
-- Handle suggestion
)
maker.start_elected = () ->
if world.network_mode == "host"
-- Hub can handle incoming suggestions from clients
-- (Handled inline when clients send messages)
log.info("Entity maker started in host mode", {"net"})
maker
|