#ifndef VERSION_H_C757E53C #define VERSION_H_C757E53C #include #include struct Version { int major = 0; int minor = 0; int revision = 0; constexpr Version(int major_arg, int minor_arg, int rev_arg) : major(major_arg), minor(minor_arg), revision(rev_arg) {} Version(const std::string& ver_str) { const std::regex version_regex("v([0-9]*)\.([0-9]*)\.([0-9]*)"); std::smatch version_match; if (std::regex_match(ver_str, version_match, version_regex)) { major = std::atoi(version_match[1].str().c_str()); minor = std::atoi(version_match[2].str().c_str()); revision = std::atoi(version_match[3].str().c_str()); } } std::string ToString() const { return fmt::format("v{}.{}.{}", major, minor, revision); } bool operator<(const Version& rhs) const { return (major < rhs.major) || (major == rhs.major && (minor < rhs.minor || (minor == rhs.minor && revision < rhs.revision))); } }; constexpr const Version kTrackerVersion = Version(0, 12, 3); #endif /* end of include guard: VERSION_H_C757E53C */ Randomizer for LINGO 2 using Archipelago Multiworld
about summary refs log tree commit diff stats
blob: 53626149ac4248658fd2ad949579846c410580fc (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: "Books Puzzles"
  type: LOCATION_ONLY
  panels { room: "Main Area" name: "DUCKS" }
  panels { room: "Main Area" name: "BREAK" }
  panels { room: "Main Area" name: "LIGHTNING" }
  panels { room: "Main Area" name: "BRAIN" }
  panels { room: "Main Area" name: "STONE" }
  panels { room: "Main Area" name: "MUTANT" }
  panels { room: "Main Area" name: "DAY" }
  panels { room: "Main Area" name: "CARNIVAL" }
  panels { room: "Main Area" name: "LARKS" }
  panels { room: "Main Area" name: "COBRAS" }
  panels { room: "Main Area" name: "STIM" }
  panels { room: "Main Area" name: "ALIVE" }
  location_room: "Main Area"
}
doors {
  name: "Games Puzzles"
  type: LOCATION_ONLY
  panels { room: "Main Area" name: "BALD" }
  panels { room: "Main Area" name: "FENCE" }
  panels { room: "Main Area" name: "LIFE" }
  panels { room: "Main Area" name: "POOL" }
  panels { room: "Main Area" name: "CARDS" }
  panels { room: "Main Area" name: "CIRCUS" }
  panels { room: "Main Area" name: "DRESS" }
  panels { room: "Main Area" name: "BLOCK" }
  panels { room: "Main Area" name: "STAB" }
  panels { room: "Main Area" name: "TADPOLES" }
  location_room: "Main Area"
}
doors {
  name: "N Entered"
  type: EVENT
  keyholders { room: "Main Area" name: "N" key: "n" }
}