the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2#include "ReceivingLevelScreen.h"
3#include "ClientConnection.h"
4#include "..\Minecraft.World\net.minecraft.locale.h"
5
6ReceivingLevelScreen::ReceivingLevelScreen(ClientConnection *connection)
7{
8 tickCount = 0;
9 this->connection = connection;
10}
11
12void ReceivingLevelScreen::keyPressed(char eventCharacter, int eventKey)
13{
14}
15
16void ReceivingLevelScreen::init()
17{
18 buttons.clear();
19}
20
21void ReceivingLevelScreen::tick()
22{
23 tickCount++;
24 if (tickCount % 20 == 0)
25 {
26 connection->send( shared_ptr<KeepAlivePacket>( new KeepAlivePacket() ) );
27 }
28 if (connection != NULL)
29 {
30 connection->tick();
31 }
32}
33
34void ReceivingLevelScreen::buttonClicked(Button *button)
35{
36}
37
38void ReceivingLevelScreen::render(int xm, int ym, float a)
39{
40 renderDirtBackground(0);
41
42 Language *language = Language::getInstance();
43
44 drawCenteredString(font, language->getElement(L"multiplayer.downloadingTerrain"), width / 2, height / 2 - 50, 0xffffff);
45
46 Screen::render(xm, ym, a);
47}