mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 01:44:00 +00:00
36 lines
1 KiB
C++
36 lines
1 KiB
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include "java/Class.h"
|
|
|
|
class SharedConstants {
|
|
public:
|
|
static void staticCtor();
|
|
static const std::string VERSION_STRING;
|
|
static inline constexpr int NETWORK_PROTOCOL_VERSION = 78;
|
|
static const bool INGAME_DEBUG_OUTPUT = false;
|
|
|
|
// NOT texture resolution. How many sub-blocks each block face is made up
|
|
// of. 4J Added for texture packs
|
|
static inline constexpr int WORLD_RESOLUTION = 16;
|
|
|
|
static bool isAllowedChatCharacter(char ch);
|
|
|
|
private:
|
|
static std::string readAcceptableChars();
|
|
|
|
public:
|
|
static inline constexpr int maxChatLength = 100;
|
|
static std::string acceptableLetters;
|
|
|
|
static inline constexpr int ILLEGAL_FILE_CHARACTERS_LENGTH = 15;
|
|
static const char
|
|
ILLEGAL_FILE_CHARACTERS[ILLEGAL_FILE_CHARACTERS_LENGTH];
|
|
|
|
static const bool
|
|
TEXTURE_LIGHTING; // 4J - change brought forward from 1.8.2
|
|
static inline constexpr int TICKS_PER_SECOND = 20;
|
|
|
|
static inline constexpr int FULLBRIGHT_LIGHTVALUE = 15 << 20 | 15 << 4;
|
|
}; |