#include "godot_processor.h"
#include "human_processor.h"
#include "structs.h"
#include "validator.h"
namespace com::fourisland::lingo2_archipelago {
namespace {
void Run(const std::string& mapdir, const std::string& repodir) {
CollectedInfo info;
ProcessHumanData(mapdir, info);
ProcessGodotData(repodir, info);
ValidateCollectedInfo(info);
}
} // namespace
} // namespace com::fourisland::lingo2_archipelago
int main(int argc, char** argv) {
if (argc != 3) {
std::cout << "Incorrect argument count." << std::endl;
std::cout << "Usage: validator [path to map directory] [path to Lingo 2 repository]" << std::endl;
return 1;
}
std::string mapdir = argv[1];
std::string repodir = argv[2];
com::fourisland::lingo2_archipelago::Run(mapdir, repodir);
return 0;
}
1ac21d4a67ddd211fda841aa6e368bc2cf52a3d6'/>
blob: e27d531bf973e753b3ec5209343c57ef2b3aeb9b (
plain) (
blame)
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
|
doors {
name: "Front Door"
type: STANDARD
receivers: "Components/Doors/entry_1"
panels { room: "Lobby" name: "RIGHT" }
location_room: "Lobby"
}
doors {
name: "Side Door"
type: ITEM_ONLY
receivers: "Components/Doors/entry_3"
panels { room: "Lobby" name: "RIGHT" answer: "wrong" }
}
doors {
name: "Big W"
type: EVENT
panels { room: "WM Room" name: "LEFT" }
panels { room: "WM Room" name: "RIGHT" answer: "right" }
}
doors {
name: "Big M"
type: EVENT
panels { room: "WM Room" name: "LEFT" }
panels { room: "WM Room" name: "RIGHT" answer: "left" }
}
doors {
name: "M2 Divider"
type: EVENT
panels { room: "Green Eye" name: "RETURN" }
panels { room: "Green Eye" name: "LEFT" }
}
doors {
name: "Control Center Green Door"
type: CONTROL_CENTER_COLOR
receivers: "Components/Doors/entry_2"
control_center_color: "green"
}
|