forked from HarbourMasters/Ghostship
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRando.cpp
More file actions
37 lines (32 loc) · 1.07 KB
/
Copy pathRando.cpp
File metadata and controls
37 lines (32 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include "Rando.h"
#include <ship/Context.h>
#include "ObjectBehavior/ObjectBehavior.h"
#include "MiscBehavior/MiscBehavior.h"
#include "port/Rando/CheckTracker/CheckTracker.h"
#include "port/Rando/Spoiler/Spoiler.h"
#include "port/ShipInit.hpp"
#include <fstream>
#include <filesystem>
namespace fs = std::filesystem;
int16_t selectedFileNum = 0;
// Entry point for the module, run once on game boot
void Rando::Init() {
fs::path dir("randomizer");
if (!fs::exists(dir)) {
fs::create_directory(dir);
}
Rando::Spoiler::RefreshSpoilerLogs();
Rando::MiscBehavior::Init();
Rando::ObjectBehavior::Init();
Rando::CheckTracker::Init();
// Ship::Context::GetInstance()->GetFileDropMgr()->RegisterDropHandler(Rando::Spoiler::HandleFileDropped);
}
// RandoCheckId Rando::FindItemPlacement(RandoItemId randoItemId) {
// for (auto& [randoCheckId, check] : Rando::StaticData::Checks) {
// if (RANDO_SAVE_CHECKS[randoCheckId].randoItemId == randoItemId) {
// return randoCheckId;
// }
// }
//
// return RC_UNKNOWN;
// }