about summary refs log tree commit diff stats
path: root/Source/Randomizer2.cpp
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2019-11-24 12:28:53 -0800
committerjbzdarkid <jbzdarkid@gmail.com>2019-11-24 12:28:53 -0800
commit92084d06a5c87338cc988b5bc5868e617213e6b9 (patch)
tree314cbf8ee06821b9569a7b279bc39e2bf04abc87 /Source/Randomizer2.cpp
parent6059a1d1b99186a28bcd3c60822bc8310724bfd4 (diff)
downloadwitness-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.cpp8
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
13Randomizer2::Randomizer2(const std::shared_ptr<Memory>& memory) : _memory(memory), _serializer(PuzzleSerializer(_memory)) {} 13Randomizer2::Randomizer2(const PuzzleSerializer& serializer) : _serializer(serializer) {}
14 14
15void Randomizer2::Randomize() { 15void 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
367void Randomizer2::SetPos(int panel, float x, float y, float z) { 367void 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