blob: ff558a39a0458ccd924190d04e3dae02e07f78c3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
|