aboutsummaryrefslogtreecommitdiff
path: root/src/gameparams.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gameparams.h')
-rw-r--r--src/gameparams.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/gameparams.h b/src/gameparams.h
index 70b0ffcde..b138f8771 100644
--- a/src/gameparams.h
+++ b/src/gameparams.h
@@ -20,8 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#pragma once
#include "irrlichttypes.h"
-
-struct SubgameSpec;
+#include "content/subgames.h"
// Information provided from "main"
struct GameParams
@@ -34,6 +33,12 @@ struct GameParams
bool is_dedicated_server;
};
+enum class ELoginRegister {
+ Any = 0,
+ Login,
+ Register
+};
+
// Information processed by main menu
struct GameStartData : GameParams
{
@@ -46,6 +51,8 @@ struct GameStartData : GameParams
std::string address;
bool local_server;
+ ELoginRegister allow_login_or_register = ELoginRegister::Any;
+
// "world_path" must be kept in sync!
WorldSpec world_spec;
};