diff options
author | jbzdarkid <jbzdarkid@gmail.com> | 2018-11-06 09:59:34 -0800 |
---|---|---|
committer | jbzdarkid <jbzdarkid@gmail.com> | 2018-11-06 09:59:34 -0800 |
commit | faf617739f53c67f663887de34342f92056ba45d (patch) | |
tree | ea7b4d50b00de8d16fa7f76257972faf143d79e1 /Source/RandomizerCore.h | |
parent | b54945cf95fa7e4ccc87525d2896901a8f11fe12 (diff) | |
download | witness-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.h | 8 |
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; | |||
9 | class RandomizerCore | 10 | class RandomizerCore |
10 | { | 11 | { |
11 | public: | 12 | public: |
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 |