Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
gameparams.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>
4
5#pragma once
6
7#include "irrlichttypes.h"
8#include "content/subgames.h"
9
10// Information provided from "main"
20
21enum class ELoginRegister {
22 Any = 0,
23 Login,
25};
26
27// Information processed by main menu
29{
30 GameStartData() = default;
31
32 bool isSinglePlayer() const { return address.empty() && !local_server; }
33
34 std::string name;
35 std::string password;
36 std::string address;
38
40
41 // "world_path" must be kept in sync!
43};
ELoginRegister
Definition gameparams.h:21
Definition gameparams.h:12
u16 socket_port
Definition gameparams.h:15
std::string world_path
Definition gameparams.h:16
SubgameSpec game_spec
Definition gameparams.h:17
bool is_dedicated_server
Definition gameparams.h:18
GameParams()=default
Definition gameparams.h:29
WorldSpec world_spec
Definition gameparams.h:42
std::string name
Definition gameparams.h:34
ELoginRegister allow_login_or_register
Definition gameparams.h:39
bool local_server
Definition gameparams.h:37
std::string password
Definition gameparams.h:35
GameStartData()=default
std::string address
Definition gameparams.h:36
bool isSinglePlayer() const
Definition gameparams.h:32
Definition subgames.h:15
Definition subgames.h:68