From b691c43c44ff180d10e7d4a9afc83b98551ff586 Mon Sep 17 00:00:00 2001 From: daoge_cmd <3523206925@qq.com> Date: Sun, 1 Mar 2026 12:16:08 +0800 Subject: Initial commit --- Minecraft.Client/ReceivingLevelScreen.cpp | 47 +++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Minecraft.Client/ReceivingLevelScreen.cpp (limited to 'Minecraft.Client/ReceivingLevelScreen.cpp') diff --git a/Minecraft.Client/ReceivingLevelScreen.cpp b/Minecraft.Client/ReceivingLevelScreen.cpp new file mode 100644 index 00000000..0e9fe3ec --- /dev/null +++ b/Minecraft.Client/ReceivingLevelScreen.cpp @@ -0,0 +1,47 @@ +#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( shared_ptr( new KeepAlivePacket() ) ); + } + if (connection != NULL) + { + 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); +} \ No newline at end of file -- cgit v1.2.3