mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-23 06:35:33 -07:00
it's still looking for randomizer/main.hpp
This commit is contained in:
parent
7ee05646eb
commit
73e989569d
3 changed files with 28 additions and 5 deletions
|
@ -41,8 +41,10 @@ IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPAR
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
// #include "../../soh/include/randomizer/main.cpp"
|
// #include "../../soh/include/randomizer/main.cpp"
|
||||||
#include "../../soh/include/randomizer/menu.hpp"
|
// #include "../../soh/include/randomizer/main.hpp"
|
||||||
#include "../../soh/soh/OTRGlobals.h"
|
#include "../../soh/include/randomizer/rando_main.hpp"
|
||||||
|
#include "../../soh/include/randomizer/spoiler_log.hpp"
|
||||||
|
// #include "../../soh/soh/OTRGlobals.h"
|
||||||
|
|
||||||
using namespace Ship;
|
using namespace Ship;
|
||||||
bool oldCursorState = true;
|
bool oldCursorState = true;
|
||||||
|
@ -1034,9 +1036,9 @@ namespace SohImGui {
|
||||||
EnhancementCheckbox("Enable Randomizer", "gRandomizer");
|
EnhancementCheckbox("Enable Randomizer", "gRandomizer");
|
||||||
|
|
||||||
if (ImGui::Button("Generate Seed") && CVar_GetS32("gRandomizer", 0) != 0) {
|
if (ImGui::Button("Generate Seed") && CVar_GetS32("gRandomizer", 0) != 0) {
|
||||||
GenerateRandomizer();
|
RandoMain::GenerateRando();
|
||||||
gSpoilerData = GetSpoilerData();
|
// gSpoilerData = GetSpoilerData();
|
||||||
ParseItemLocations(gSpoilerData);
|
// ParseItemLocations(gSpoilerData);
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::EndMenu();
|
ImGui::EndMenu();
|
||||||
|
|
16
soh/include/randomizer/rando_main.cpp
Normal file
16
soh/include/randomizer/rando_main.cpp
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
#include "menu.hpp"
|
||||||
|
#include "hint_list.hpp"
|
||||||
|
#include "item_list.hpp"
|
||||||
|
#include "item_location.hpp"
|
||||||
|
#include "location_access.hpp"
|
||||||
|
#include "rando_main.hpp"
|
||||||
|
|
||||||
|
#define TICKS_PER_SEC 268123480.0
|
||||||
|
|
||||||
|
int RandoMain::GenerateRando() {
|
||||||
|
HintTable_Init();
|
||||||
|
ItemTable_Init();
|
||||||
|
LocationTable_Init();
|
||||||
|
GenerateRandomizer();
|
||||||
|
return 0;
|
||||||
|
}
|
5
soh/include/randomizer/rando_main.hpp
Normal file
5
soh/include/randomizer/rando_main.hpp
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
namespace RandoMain {
|
||||||
|
int GenerateRando();
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue