Compare commits
No commits in common. "e17764dc8835192211b1f3b72cf050a909b3967b" and "618dad7df1942ae29b14ed59957610c901870626" have entirely different histories.
e17764dc88
...
618dad7df1
3 changed files with 5 additions and 7 deletions
|
@ -97,8 +97,6 @@ option(SPDLOG_NO_ATOMIC_LEVELS "prevent spdlog from using of std::atomic log lev
|
|||
add_subdirectory(external/spdlog)
|
||||
|
||||
set(JSON_BuildTests OFF CACHE INTERNAL "")
|
||||
option(JSON_ImplicitConversions "Enable implicit conversions." OFF)
|
||||
option(JSON_SystemInclude "Include as system headers (skip for clang-tidy)." ON)
|
||||
add_subdirectory(external/json)
|
||||
|
||||
option(CATCH_INSTALL_DOCS "Install documentation alongside library" OFF)
|
||||
|
|
|
@ -41,10 +41,10 @@ namespace character::characteristic {
|
|||
[[nodiscard]] std::uint32_t get_additional() const { return additional; }
|
||||
|
||||
friend void from_json(const json &j, Characteristic &charac) {
|
||||
const_cast<std::uint32_t &>(charac.base) = j.at("base").get<std::uint32_t>();
|
||||
charac.carac = j.at("carac").get<std::uint32_t>();
|
||||
charac.materiel = j.at("materiel").get<std::uint32_t>();
|
||||
charac.additional = j.at("additional").get<std::uint32_t>();
|
||||
const_cast<std::uint32_t &>(charac.base) = j.at("base");
|
||||
charac.carac = j.at("carac");
|
||||
charac.materiel = j.at("materiel");
|
||||
charac.additional = j.at("additional");
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
int main() {
|
||||
std::ios::sync_with_stdio(false);
|
||||
spdlog::set_default_logger(spdlog::stdout_color_st("BillySheet"));
|
||||
spdlog::set_default_logger(spdlog::stdout_color_st("console"));
|
||||
|
||||
try {
|
||||
gui::Window window;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue