diff options
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 |
