MinecraftConsoles/Minecraft.Client/ReceivingLevelScreen.cpp
Riley M. c0da06e4ee
major: Switch to forward slashes(+more) to fix compilation on Linux (#1403)
Notably also adds some metadata files for NixOS 

* add support for linux clang cross compiles

* add linux clang instructions

* un-capitalize Mob.horse.*

* update the description in flake.nix

---------

Co-authored-by: Loki <lokirautio@gmail.com>
2026-04-14 16:47:37 -05:00

47 lines
986 B
C++

#include "stdafx.h"
#include "ReceivingLevelScreen.h"
#include "ClientConnection.h"
#include "../Minecraft.World/net.minecraft.locale.h"
ReceivingLevelScreen::ReceivingLevelScreen(ClientConnection *connection)
{
tickCount = 0;
this->connection = connection;
}
void ReceivingLevelScreen::keyPressed(char eventCharacter, int eventKey)
{
}
void ReceivingLevelScreen::init()
{
buttons.clear();
}
void ReceivingLevelScreen::tick()
{
tickCount++;
if (tickCount % 20 == 0)
{
connection->send(std::make_shared<KeepAlivePacket>());
}
if (connection != nullptr)
{
connection->tick();
}
}
void ReceivingLevelScreen::buttonClicked(Button *button)
{
}
void ReceivingLevelScreen::render(int xm, int ym, float a)
{
renderDirtBackground(0);
Language *language = Language::getInstance();
drawCenteredString(font, language->getElement(L"multiplayer.downloadingTerrain"), width / 2, height / 2 - 50, 0xffffff);
Screen::render(xm, ym, a);
}