about summary refs log tree commit diff stats
path: root/Source/RandomizerCore.h
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2018-10-30 21:58:46 -0700
committerjbzdarkid <jbzdarkid@gmail.com>2018-10-30 21:58:46 -0700
commit3557f0ba80942397a9d963208695b4fa80290cb0 (patch)
treed754d0f1b56ca10c133804639882d12d6686f7ec /Source/RandomizerCore.h
parente66a408e38849107a3d35a317ff6f2b23dcaeead (diff)
downloadwitness-tutorializer-3557f0ba80942397a9d963208695b4fa80290cb0.tar.gz
witness-tutorializer-3557f0ba80942397a9d963208695b4fa80290cb0.tar.bz2
witness-tutorializer-3557f0ba80942397a9d963208695b4fa80290cb0.zip
Infinite amounts of cleanup
Diffstat (limited to 'Source/RandomizerCore.h')
-rw-r--r--Source/RandomizerCore.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/RandomizerCore.h b/Source/RandomizerCore.h index e8d3661..7ec8e33 100644 --- a/Source/RandomizerCore.h +++ b/Source/RandomizerCore.h
@@ -12,6 +12,8 @@ __declspec(selectany) int SWAP_AUDIO_NAMES = 0x4;
12class RandomizerCore 12class RandomizerCore
13{ 13{
14public: 14public:
15 RandomizerCore();
16
15 void Randomize(std::vector<int>& panels, int flags); 17 void Randomize(std::vector<int>& panels, int flags);
16 void RandomizeRange(std::vector<int> &panels, int flags, size_t startIndex, size_t endIndex); 18 void RandomizeRange(std::vector<int> &panels, int flags, size_t startIndex, size_t endIndex);
17 void SwapPanels(int panel1, int panel2, int flags); 19 void SwapPanels(int panel1, int panel2, int flags);
@@ -28,6 +30,9 @@ public:
28 _memory.WriteData<T>({GLOBALS, 0x18, panel*8, offset}, data); 30 _memory.WriteData<T>({GLOBALS, 0x18, panel*8, offset}, data);
29 } 31 }
30 32
33 short ReadMetadata();
34 void WriteMetadata(short metadata);
35
31private: 36private:
32 Memory _memory = Memory("witness64_d3d11.exe"); 37 Memory _memory = Memory("witness64_d3d11.exe");
33}; 38};
@@ -95,6 +100,8 @@ private:
95#define CABLE_TARGET_2 0xD8 100#define CABLE_TARGET_2 0xD8
96#define AUDIO_LOG_NAME 0xC8 101#define AUDIO_LOG_NAME 0xC8
97#define OPEN_RATE 0xE8 102#define OPEN_RATE 0xE8
103#define METADATA 0xF2 // sizeof(short)
104#define SCRIPT_FRAMES 0x5BE3B0
98#elif GLOBALS == 0x62A080 105#elif GLOBALS == 0x62A080
99#define PATH_COLOR 0xC0 106#define PATH_COLOR 0xC0
100#define REFLECTION_PATH_COLOR 0xD0 107#define REFLECTION_PATH_COLOR 0xD0
@@ -158,4 +165,6 @@ private:
158#define CABLE_TARGET_2 0xD0 165#define CABLE_TARGET_2 0xD0
159#define AUDIO_LOG_NAME 0x0 166#define AUDIO_LOG_NAME 0x0
160#define OPEN_RATE 0xE0 167#define OPEN_RATE 0xE0
168#define METADATA 0x13A // sizeof(short)
169#define SCRIPT_FRAMES 0x63651C
161#endif \ No newline at end of file 170#endif \ No newline at end of file