summaryrefslogtreecommitdiffstats
path: root/source/packets/cPacket_Login.h
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-01-20 18:39:16 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-01-20 18:39:16 +0100
commit7b840aa5d8c925f8ced6289a5ed3dde4a6f8e77b (patch)
treecde505c4726c53f67b168e7e4ce22007cc72ef1a /source/packets/cPacket_Login.h
parentTerrain generation is synchronous again, async generation has bugs. (diff)
downloadcuberite-7b840aa5d8c925f8ced6289a5ed3dde4a6f8e77b.tar
cuberite-7b840aa5d8c925f8ced6289a5ed3dde4a6f8e77b.tar.gz
cuberite-7b840aa5d8c925f8ced6289a5ed3dde4a6f8e77b.tar.bz2
cuberite-7b840aa5d8c925f8ced6289a5ed3dde4a6f8e77b.tar.lz
cuberite-7b840aa5d8c925f8ced6289a5ed3dde4a6f8e77b.tar.xz
cuberite-7b840aa5d8c925f8ced6289a5ed3dde4a6f8e77b.tar.zst
cuberite-7b840aa5d8c925f8ced6289a5ed3dde4a6f8e77b.zip
Diffstat (limited to 'source/packets/cPacket_Login.h')
-rw-r--r--source/packets/cPacket_Login.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/packets/cPacket_Login.h b/source/packets/cPacket_Login.h
index 91919a799..71fa6e9c1 100644
--- a/source/packets/cPacket_Login.h
+++ b/source/packets/cPacket_Login.h
@@ -15,6 +15,7 @@ public:
, m_Difficulty( 0 )
, m_WorldHeight( 0 )
, m_MaxPlayers( 0 )
+ , m_LevelType( LEVEL_TYPE_DEFAULT )
{ m_PacketID = E_LOGIN; }
virtual cPacket* Clone() const { return new cPacket_Login(*this); }
@@ -24,10 +25,15 @@ public:
int m_ProtocolVersion; //tolua_export
std::string m_Username; //tolua_export
long long m_MapSeed; //tolua_export
+ std::string m_LevelType; //tolua_export
int m_ServerMode; //tolua_export
char m_Dimension; //tolua_export
char m_Difficulty; //tolua_export
unsigned char m_WorldHeight; //tolua_export
unsigned char m_MaxPlayers; //tolua_export
- static const unsigned int c_Size = 1 + 4 + 2 + 8 + 4 + 1 + 1 + 1 + 1; // Minimal size
+ static const unsigned int c_Size = 1 + 4 + 2 + 8 + 2 + 4 + 1 + 1 + 1 + 1; // Minimal size
+
+
+ static const std::string LEVEL_TYPE_DEFAULT;
+ static const std::string LEVEL_TYPE_SUPERFLAT;
}; //tolua_export