diff options
| author | daoge_cmd <3523206925@qq.com> | 2026-03-01 12:16:08 +0800 |
|---|---|---|
| committer | daoge_cmd <3523206925@qq.com> | 2026-03-01 12:16:08 +0800 |
| commit | b691c43c44ff180d10e7d4a9afc83b98551ff586 (patch) | |
| tree | 3e9849222cbc6ba49f2f1fc6e5fe7179632c7390 /Minecraft.World/SharedConstants.h | |
| parent | def8cb415354ac390b7e89052a50605285f1aca9 (diff) | |
Initial commit
Diffstat (limited to 'Minecraft.World/SharedConstants.h')
| -rw-r--r-- | Minecraft.World/SharedConstants.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Minecraft.World/SharedConstants.h b/Minecraft.World/SharedConstants.h new file mode 100644 index 00000000..bd6dae89 --- /dev/null +++ b/Minecraft.World/SharedConstants.h @@ -0,0 +1,32 @@ +#pragma once +using namespace std; +#include "Class.h" + +class SharedConstants +{ + public: + static void staticCtor(); + static const wstring VERSION_STRING; + static const int NETWORK_PROTOCOL_VERSION = 39; + + // NOT texture resolution. How many sub-blocks each block face is made up of. + // 4J Added for texture packs + static const int WORLD_RESOLUTION = 16; + + static bool isAllowedChatCharacter(char ch); + + private: + static wstring readAcceptableChars(); + + public: + static const int maxChatLength = 100; + static wstring acceptableLetters; + + static const int ILLEGAL_FILE_CHARACTERS_LENGTH = 15; + static const wchar_t ILLEGAL_FILE_CHARACTERS[ILLEGAL_FILE_CHARACTERS_LENGTH]; + + static const bool TEXTURE_LIGHTING; // 4J - change brought forward from 1.8.2 + static const int TICKS_PER_SECOND = 20; + + static const int FULLBRIGHT_LIGHTVALUE = 15 << 20 | 15 << 4; +};
\ No newline at end of file |
