## Application entry point. Picks the mode from the command line: ## ## tools/godot.sh -- --server [options] headless dedicated server (see ServerConfig) ## ## Client startup is added by later milestones. extends Node func _ready() -> void: var args: PackedStringArray = OS.get_cmdline_user_args() if not args.has("--server"): # Also accept --server before the "--" separator. args = OS.get_cmdline_args() var config: ServerConfig = ServerConfig.parse(args) if config.server: add_child(HeadlessServer.new(config)) return print("Tidewall")