summary refs log tree commit diff stats
path: root/Source/RandomizerCore.h
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2018-11-06 09:59:34 -0800
committerjbzdarkid <jbzdarkid@gmail.com>2018-11-06 09:59:34 -0800
commitfaf617739f53c67f663887de34342f92056ba45d (patch)
treeea7b4d50b00de8d16fa7f76257972faf143d79e1 /Source/RandomizerCore.h
parentb54945cf95fa7e4ccc87525d2896901a8f11fe12 (diff)
downloadwitness-tutorializer-faf617739f53c67f663887de34342f92056ba45d.tar.gz
witness-tutorializer-faf617739f53c67f663887de34342f92056ba45d.tar.bz2
witness-tutorializer-faf617739f53c67f663887de34342f92056ba45d.zip
Assorted.
Diffstat (limited to 'Source/RandomizerCore.h')
-rw-r--r--Source/RandomizerCore.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/RandomizerCore.h b/Source/RandomizerCore.h index 4cd4b42..7555de2 100644 --- a/Source/RandomizerCore.h +++ b/Source/RandomizerCore.h
@@ -1,5 +1,6 @@
1#pragma once 1#pragma once
2#include "Memory.h" 2#include "Memory.h"
3#include <memory>
3 4
4__declspec(selectany) int SWAP_NONE = 0x0; 5__declspec(selectany) int SWAP_NONE = 0x0;
5__declspec(selectany) int SWAP_TARGETS = 0x1; 6__declspec(selectany) int SWAP_TARGETS = 0x1;
@@ -9,8 +10,6 @@ __declspec(selectany) int SWAP_AUDIO_NAMES = 0x4;
9class RandomizerCore 10class RandomizerCore
10{ 11{
11public: 12public:
12 RandomizerCore();
13
14 void Randomize(std::vector<int>& panels, int flags); 13 void Randomize(std::vector<int>& panels, int flags);
15 void RandomizeRange(std::vector<int> &panels, int flags, size_t startIndex, size_t endIndex); 14 void RandomizeRange(std::vector<int> &panels, int flags, size_t startIndex, size_t endIndex);
16 void SwapPanels(int panel1, int panel2, int flags); 15 void SwapPanels(int panel1, int panel2, int flags);
@@ -19,9 +18,12 @@ public:
19 18
20 short ReadMetadata(); 19 short ReadMetadata();
21 void WriteMetadata(short metadata); 20 void WriteMetadata(short metadata);
21 int GetCurrentFrame();
22
23 void ClearOffsets() {_memory->ClearOffsets();}
22 24
23// private: 25// private:
24 Memory _memory = Memory("witness64_d3d11.exe"); 26 std::shared_ptr<Memory> _memory = std::make_shared<Memory>("witness64_d3d11.exe");
25}; 27};
26 28
27#if GLOBALS == 0x5B28C0 29#if GLOBALS == 0x5B28C0