Files
Dreierpack-Manager/src/modern/ui/view.hpp
T

22 lines
826 B
C++

// SPDX-License-Identifier: GPL-3.0-only
#pragma once
#include "launch/mods.hpp"
#include <optional>
#include <cstdint>
namespace bmh::modern_ui {
struct Config {
std::filesystem::path world, gui_assets, screenshot, commands, state, preferences, userdata, file_import, file_export, mods, mod_import;
std::filesystem::path engine_save;
bool preview_only = false;
std::optional<uint32_t> creation_seed;
std::string scene = "main", theme;
int width = 1280, height = 720;
};
// Returns before Classic initialization. The demo never starts a match; the
// opt-in career bridge loads an existing Modern OBS and binds desktop/camps.
int run(const std::filesystem::path &executable, const launch::SaveMigrator &,
const Config &);
bool is_modern_world(const std::filesystem::path &);
} // namespace bmh::modern_ui