summary refs log tree commit diff stats
path: root/Source/RandomizerCore.h
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2018-10-28 20:51:35 -0700
committerjbzdarkid <jbzdarkid@gmail.com>2018-10-28 20:51:35 -0700
commit5f99f9e87ef23f342e89bab029cc4fc8c5ad6663 (patch)
tree992ec1c10f001a365f4fb943a50ca6a5fc436648 /Source/RandomizerCore.h
parent8b88d76b96cd0c2a4dcd9c777c651b204214c63b (diff)
downloadwitness-tutorializer-5f99f9e87ef23f342e89bab029cc4fc8c5ad6663.tar.gz
witness-tutorializer-5f99f9e87ef23f342e89bab029cc4fc8c5ad6663.tar.bz2
witness-tutorializer-5f99f9e87ef23f342e89bab029cc4fc8c5ad6663.zip
Better UI + tried audio logs
Diffstat (limited to 'Source/RandomizerCore.h')
-rw-r--r--Source/RandomizerCore.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/RandomizerCore.h b/Source/RandomizerCore.h index 746306b..da88e92 100644 --- a/Source/RandomizerCore.h +++ b/Source/RandomizerCore.h
@@ -1,12 +1,13 @@
1#pragma once 1#pragma once
2#include "Memory.h" 2#include "Memory.h"
3 3
4// #define GLOBALS 0x5B28C0 4#define GLOBALS 0x5B28C0
5#define GLOBALS 0x62A080 5// #define GLOBALS 0x62A080
6 6
7__declspec(selectany) int SWAP_NONE = 0x0; 7__declspec(selectany) int SWAP_NONE = 0x0;
8__declspec(selectany) int SWAP_TARGETS = 0x1; 8__declspec(selectany) int SWAP_TARGETS = 0x1;
9__declspec(selectany) int SWAP_LINES = 0x2; 9__declspec(selectany) int SWAP_LINES = 0x2;
10__declspec(selectany) int SWAP_AUDIO_NAMES = 0x4;
10 11
11class RandomizerCore 12class RandomizerCore
12{ 13{
@@ -15,6 +16,7 @@ public:
15 void RandomizeRange(std::vector<int> &panels, int flags, size_t startIndex, size_t endIndex); 16 void RandomizeRange(std::vector<int> &panels, int flags, size_t startIndex, size_t endIndex);
16 void SwapPanels(int panel1, int panel2, int flags); 17 void SwapPanels(int panel1, int panel2, int flags);
17 void ReassignTargets(const std::vector<int>& panels, const std::vector<int>& order); 18 void ReassignTargets(const std::vector<int>& panels, const std::vector<int>& order);
19 void ReassignNames(const std::vector<int>& panels, const std::vector<int>& order);
18 20
19 template <class T> 21 template <class T>
20 std::vector<T> ReadPanelData(int panel, int offset, size_t size) { 22 std::vector<T> ReadPanelData(int panel, int offset, size_t size) {
@@ -92,6 +94,7 @@ private:
92#define PANEL_TARGET 0x4B0 94#define PANEL_TARGET 0x4B0
93#define SPECULAR_TEXTURE 0x4D8 95#define SPECULAR_TEXTURE 0x4D8
94#define CABLE_TARGET_2 0xD8 96#define CABLE_TARGET_2 0xD8
97#define AUDIO_LOG_NAME 0xC8
95#elif GLOBALS == 0x62A080 98#elif GLOBALS == 0x62A080
96#define PATH_COLOR 0xC0 99#define PATH_COLOR 0xC0
97#define REFLECTION_PATH_COLOR 0xD0 100#define REFLECTION_PATH_COLOR 0xD0