hara.runtime.godot

+init+

all-godot-ports

added in 4.1

(all-godot-ports)

Returns all active Godot server ports.

bench-start

added in 4.1

(bench-start {:keys [port], :as godot} type)

Starts the bench.

bench-stop

added in 4.1

(bench-stop {:keys [port bench], :as godot} _)

Stops the bench.

client:create

added in 4.1

(client:create {:keys [host port], :as m})

creates a Godot client connected to host:port

godot

added in 4.1

(godot m)

Creates and starts a Godot runtime client.

godot-shared:create

added in 4.1

(godot-shared:create m)

Creates a shared Godot runtime client.

godot:create

added in 4.1

(godot:create {:keys [id host port bench], :as m})

Creates a Godot runtime client.

invoke-ptr-godot

added in 4.1

(invoke-ptr-godot rt ptr args)

Invokes a pointer in the Godot runtime.

raw-eval-godot

added in 4.1

(raw-eval-godot {:keys [reader output], :as rt} code)

Sends GDScript source to the Godot server and returns the decoded value.

start-godot-server

added in 4.1

(start-godot-server {:keys [port]} type root-dir)

Starts a headless Godot TCP server in a given directory.

stop-godot-server

added in 4.1

(stop-godot-server port stop-type)

Stops the Godot server for a given port and type.