summary refs log tree commit diff stats
path: root/randomizer/randomizer.gd
diff options
context:
space:
mode:
Diffstat (limited to 'randomizer/randomizer.gd')
-rw-r--r--randomizer/randomizer.gd8
1 files changed, 8 insertions, 0 deletions
diff --git a/randomizer/randomizer.gd b/randomizer/randomizer.gd index 0738cb6..681567d 100644 --- a/randomizer/randomizer.gd +++ b/randomizer/randomizer.gd
@@ -3,8 +3,10 @@ extends Node
3const my_version = "0.1.0" 3const my_version = "0.1.0"
4 4
5var SCRIPT_generator 5var SCRIPT_generator
6var SCRIPT_steady
6 7
7var generator 8var generator
9var steady
8var thread = Thread.new() 10var thread = Thread.new()
9 11
10signal finished_randomizing 12signal finished_randomizing
@@ -21,6 +23,12 @@ func _thread_func(gen_seed):
21 generator.connect("generator_status", self, "statusUpdate") 23 generator.connect("generator_status", self, "statusUpdate")
22 generator.generate(gen_seed) 24 generator.generate(gen_seed)
23 25
26 var rng = RandomNumberGenerator.new()
27 rng.seed = generator.gen_seed
28
29 steady = SCRIPT_steady.new()
30 steady.generate(rng)
31
24 emit_signal("finished_randomizing") 32 emit_signal("finished_randomizing")
25 33
26 34