summaryrefslogtreecommitdiffstats
path: root/source/packets/cPacket_Login.h
diff options
context:
space:
mode:
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