#include "index.hpp" #ifndef STANDALONE #include "LocalUniverse.hpp" #endif #include "DistantUniverse.hpp" #include "../../core/utils/logger.hpp" namespace world::client { std::unique_ptr Load(const std::optional& ct, server_handle *const localHandle, const Universe::options &distOpts) { if(ct.has_value()) { return std::make_unique(ct.value(), distOpts); #ifndef STANDALONE } else if(localHandle != nullptr) { LOG_D("Using local universe"); return std::make_unique(localHandle); #endif } else { FATAL("Must enable server.allow_local or define client.connection"); } } }