4jcraft/Minecraft.Client/Platform/Xbox/Network/extra.h
2026-03-13 15:12:25 +11:00

9 lines
265 B
C++

#pragma once
#include <cstdint>
#include <limits>
constexpr int MINECRAFT_NET_MAX_PLAYERS = 8;
static_assert(MINECRAFT_NET_MAX_PLAYERS <= std::numeric_limits<std::uint8_t>::max(),
"MINECRAFT_NET_MAX_PLAYERS must fit in the 8-bit network protocol");