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.Client/ReceivingLevelScreen.cpp | |
| parent | def8cb415354ac390b7e89052a50605285f1aca9 (diff) | |
Initial commit
Diffstat (limited to 'Minecraft.Client/ReceivingLevelScreen.cpp')
| -rw-r--r-- | Minecraft.Client/ReceivingLevelScreen.cpp | 47 |
1 files changed, 47 insertions, 0 deletions
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<KeepAlivePacket>( 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 |
