diff options
author | jbzdarkid <jbzdarkid@gmail.com> | 2019-11-24 12:28:53 -0800 |
---|---|---|
committer | jbzdarkid <jbzdarkid@gmail.com> | 2019-11-24 12:28:53 -0800 |
commit | 92084d06a5c87338cc988b5bc5868e617213e6b9 (patch) | |
tree | 314cbf8ee06821b9569a7b279bc39e2bf04abc87 /Source/Randomizer2.cpp | |
parent | 6059a1d1b99186a28bcd3c60822bc8310724bfd4 (diff) | |
download | witness-tutorializer-92084d06a5c87338cc988b5bc5868e617213e6b9.tar.gz witness-tutorializer-92084d06a5c87338cc988b5bc5868e617213e6b9.tar.bz2 witness-tutorializer-92084d06a5c87338cc988b5bc5868e617213e6b9.zip |
Try/catch, and select seed
Diffstat (limited to 'Source/Randomizer2.cpp')
-rw-r--r-- | Source/Randomizer2.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Randomizer2.cpp b/Source/Randomizer2.cpp index c823567..782e248 100644 --- a/Source/Randomizer2.cpp +++ b/Source/Randomizer2.cpp | |||
@@ -1,5 +1,5 @@ | |||
1 | #include "Memory.h" | ||
2 | #include "Randomizer2.h" | 1 | #include "Randomizer2.h" |
2 | #include "PuzzleSerializer.h" | ||
3 | #include "Randomizer2Core.h" | 3 | #include "Randomizer2Core.h" |
4 | #include "Puzzle.h" | 4 | #include "Puzzle.h" |
5 | #include "Random.h" | 5 | #include "Random.h" |
@@ -10,7 +10,7 @@ | |||
10 | 10 | ||
11 | #pragma warning (disable: 26451) | 11 | #pragma warning (disable: 26451) |
12 | 12 | ||
13 | Randomizer2::Randomizer2(const std::shared_ptr<Memory>& memory) : _memory(memory), _serializer(PuzzleSerializer(_memory)) {} | 13 | Randomizer2::Randomizer2(const PuzzleSerializer& serializer) : _serializer(serializer) {} |
14 | 14 | ||
15 | void Randomizer2::Randomize() { | 15 | void Randomizer2::Randomize() { |
16 | RandomizeTutorial(); | 16 | RandomizeTutorial(); |
@@ -361,9 +361,9 @@ void Randomizer2::SetGate(int panel, int X, int Y) { | |||
361 | } | 361 | } |
362 | 362 | ||
363 | SetPos(panel, x, y, 19.2f); | 363 | SetPos(panel, x, y, 19.2f); |
364 | _memory->WriteEntityData<float>(panel, ORIENTATION, {0.0f, 0.0f, z, w}); | 364 | // _memory->WriteEntityData<float>(panel, ORIENTATION, {0.0f, 0.0f, z, w}); |
365 | } | 365 | } |
366 | 366 | ||
367 | void Randomizer2::SetPos(int panel, float x, float y, float z) { | 367 | void Randomizer2::SetPos(int panel, float x, float y, float z) { |
368 | _memory->WriteEntityData<float>(panel, POSITION, {x, y, z}); | 368 | // _memory->WriteEntityData<float>(panel, POSITION, {x, y, z}); |
369 | } \ No newline at end of file | 369 | } \ No newline at end of file |