mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-08 17:57:02 +08:00
Support a new CLI flag that launches the app directly into the world scene. If no IP is provided, it starts a local server on the specified port and connects to 127.0.0.1; otherwise it connects to the given IP. With this flag enabled, a port must be specified via -p. Also expose SceneManager::push as public so scenes can be pushed immediately when bypassing the normal menu flow.
18 lines
538 B
C++
18 lines
538 B
C++
#pragma once
|
|
#include <optional>
|
|
#include <string>
|
|
namespace Cubed {
|
|
struct Argument {
|
|
std::optional<int> port;
|
|
std::optional<std::string> ip;
|
|
std::optional<std::string> player;
|
|
std::optional<std::string> language;
|
|
std::optional<std::string> video_driver;
|
|
std::optional<bool> enable_exclusive;
|
|
std::optional<std::string> logs_path;
|
|
std::optional<int> log_level;
|
|
std::optional<bool> enable_filelog;
|
|
std::optional<bool> enable_consolelog;
|
|
std::optional<bool> direct_enter;
|
|
};
|
|
} // namespace Cubed
|