summaryrefslogtreecommitdiffstats
path: root/src/Defines.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-09-17 21:30:11 +0200
committerMattes D <github@xoft.cz>2014-09-17 21:30:11 +0200
commit0625556c372462f48f13482866c0c12a6dcb51e2 (patch)
treed77b0dc3845b99911a8924449ef38d4cc47fcddf /src/Defines.h
parentAdded an explicit setting for allowing BungeeCord handshake. (diff)
parentImplementing Spectator Mode (diff)
downloadcuberite-0625556c372462f48f13482866c0c12a6dcb51e2.tar
cuberite-0625556c372462f48f13482866c0c12a6dcb51e2.tar.gz
cuberite-0625556c372462f48f13482866c0c12a6dcb51e2.tar.bz2
cuberite-0625556c372462f48f13482866c0c12a6dcb51e2.tar.lz
cuberite-0625556c372462f48f13482866c0c12a6dcb51e2.tar.xz
cuberite-0625556c372462f48f13482866c0c12a6dcb51e2.tar.zst
cuberite-0625556c372462f48f13482866c0c12a6dcb51e2.zip
Diffstat (limited to '')
-rw-r--r--src/Defines.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Defines.h b/src/Defines.h
index 78c58034e..6355b75b4 100644
--- a/src/Defines.h
+++ b/src/Defines.h
@@ -115,12 +115,14 @@ enum eGameMode
eGameMode_Survival = 0,
eGameMode_Creative = 1,
eGameMode_Adventure = 2,
+ eGameMode_Spectator = 3,
// Easier-to-use synonyms:
gmNotSet = eGameMode_NotSet,
gmSurvival = eGameMode_Survival,
gmCreative = eGameMode_Creative,
gmAdventure = eGameMode_Adventure,
+ gmSpectator = eGameMode_Spectator,
// These two are used to check GameMode for validity when converting from integers.
gmMax, // Gets automatically assigned