From f0555579cd462b27c71c486bd7456265cc827937 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 9 Dec 2023 13:14:25 -0500 Subject: Starting to work --- randomizer/randomizer.gd | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 randomizer/randomizer.gd (limited to 'randomizer/randomizer.gd') diff --git a/randomizer/randomizer.gd b/randomizer/randomizer.gd new file mode 100644 index 0000000..ff558a3 --- /dev/null +++ b/randomizer/randomizer.gd @@ -0,0 +1,26 @@ +extends Node + +const my_version = "0.1.0" + +var SCRIPT_generator + +var generator + +signal finished_randomizing +signal randomizer_status + + +func start(gen_seed = ""): + generator = SCRIPT_generator.new($GeneratedPuzzles) + generator.connect("generator_status", self, "statusUpdate") + generator.generate(gen_seed) + + emit_signal("finished_randomizing") + + +func statusUpdate(text): + emit_signal("randomizer_status", text) + + +func getSaveFileName(): + return "zzRN_%d" % generator.gen_seed -- cgit 1.4.1