Files
kiss-vscode/projects/nat-godot-playground/scripts/RootNode.kiss

9 lines
429 B
Plaintext

(method &override &public :Void _Ready []
// TODO find a better way to pass the archiveDir to a Godot game
(let [archiveDir
(or (Sys.getEnv "NAT_DIR") (throw "NAT_DIR environment variable must be set"))
archive
(new Archive archiveDir)
ui (new GodotUI archive this)
controller (new ArchiveController archive ui)]
(set ui.controller controller)))