the whole game

This commit is contained in:
2026-03-02 22:04:18 +03:00
parent 816e9060b4
commit f0617a5d22
2069 changed files with 581500 additions and 0 deletions

34
src/SharedConstants.h Executable file
View File

@@ -0,0 +1,34 @@
#ifndef NET_MINECRAFT_SharedConstants_H__
#define NET_MINECRAFT_SharedConstants_H__
#include <string>
enum LevelGeneratorVersion
{
LGV_ORIGINAL = 0,
};
namespace Common {
std::string getGameVersionString(const std::string& versionSuffix = "");
}
namespace SharedConstants
{
// 0.5.0 uses NPv8
// 0.6.0 uses NPv9
const int NetworkProtocolVersion = 9;
const int NetworkProtocolLowestSupportedVersion = 9;
const int GameProtocolVersion = 1;
const int GameProtocolLowestSupportedVersion = 1;
const int StorageVersion = 3;
const int MaxChatLength = 100;
const int TicksPerSecond = 20;
const int GeneratorVersion = (int)LGV_ORIGINAL;
//int FULLBRIGHT_LIGHTVALUE = 15 << 20 | 15 << 4;
}
#endif /*NET_MINECRAFT_SharedConstants_H__*/