mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Add server/client annotations to settingtypes.txt and make use of them (#15756)
This commit is contained in:
parent
6724068659
commit
c30c94dfaa
12 changed files with 231 additions and 96 deletions
|
@ -16,10 +16,13 @@ struct MainMenuDataForScript {
|
|||
std::string errormessage = "";
|
||||
};
|
||||
|
||||
// TODO: unify with GameStartData
|
||||
struct MainMenuData {
|
||||
// Client options
|
||||
std::string servername;
|
||||
std::string serverdescription;
|
||||
// If empty, we're hosting a server.
|
||||
// This may or may not be in "simple singleplayer mode".
|
||||
std::string address;
|
||||
std::string port;
|
||||
std::string name;
|
||||
|
@ -29,6 +32,7 @@ struct MainMenuData {
|
|||
|
||||
// Server options
|
||||
int selected_world = 0;
|
||||
// If true, we're hosting a server and *are* in "simple singleplayer mode".
|
||||
bool simple_singleplayer_mode = false;
|
||||
|
||||
// Data to be passed to the script
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue