From 92084d06a5c87338cc988b5bc5868e617213e6b9 Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Sun, 24 Nov 2019 12:28:53 -0800 Subject: Try/catch, and select seed --- Source/Randomizer2.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/Randomizer2.cpp') 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 @@ -#include "Memory.h" #include "Randomizer2.h" +#include "PuzzleSerializer.h" #include "Randomizer2Core.h" #include "Puzzle.h" #include "Random.h" @@ -10,7 +10,7 @@ #pragma warning (disable: 26451) -Randomizer2::Randomizer2(const std::shared_ptr& memory) : _memory(memory), _serializer(PuzzleSerializer(_memory)) {} +Randomizer2::Randomizer2(const PuzzleSerializer& serializer) : _serializer(serializer) {} void Randomizer2::Randomize() { RandomizeTutorial(); @@ -361,9 +361,9 @@ void Randomizer2::SetGate(int panel, int X, int Y) { } SetPos(panel, x, y, 19.2f); - _memory->WriteEntityData(panel, ORIENTATION, {0.0f, 0.0f, z, w}); + // _memory->WriteEntityData(panel, ORIENTATION, {0.0f, 0.0f, z, w}); } void Randomizer2::SetPos(int panel, float x, float y, float z) { - _memory->WriteEntityData(panel, POSITION, {x, y, z}); + // _memory->WriteEntityData(panel, POSITION, {x, y, z}); } \ No newline at end of file -- cgit 1.4.1