mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-30 17:46:40 +00:00
chore: format Minecraft.Client
This commit is contained in:
@@ -3,45 +3,36 @@
|
||||
#include "../../Network/ClientConnection.h"
|
||||
#include "../../../Minecraft.World/Headers/net.minecraft.locale.h"
|
||||
|
||||
ReceivingLevelScreen::ReceivingLevelScreen(ClientConnection *connection)
|
||||
{
|
||||
tickCount = 0;
|
||||
this->connection = connection;
|
||||
ReceivingLevelScreen::ReceivingLevelScreen(ClientConnection* connection) {
|
||||
tickCount = 0;
|
||||
this->connection = connection;
|
||||
}
|
||||
|
||||
void ReceivingLevelScreen::keyPressed(char eventCharacter, int eventKey)
|
||||
{
|
||||
}
|
||||
void ReceivingLevelScreen::keyPressed(char eventCharacter, int eventKey) {}
|
||||
|
||||
void ReceivingLevelScreen::init()
|
||||
{
|
||||
buttons.clear();
|
||||
}
|
||||
void ReceivingLevelScreen::init() { buttons.clear(); }
|
||||
|
||||
void ReceivingLevelScreen::tick()
|
||||
{
|
||||
void ReceivingLevelScreen::tick() {
|
||||
tickCount++;
|
||||
if (tickCount % 20 == 0)
|
||||
{
|
||||
connection->send( std::shared_ptr<KeepAlivePacket>( new KeepAlivePacket() ) );
|
||||
if (tickCount % 20 == 0) {
|
||||
connection->send(
|
||||
std::shared_ptr<KeepAlivePacket>(new KeepAlivePacket()));
|
||||
}
|
||||
if (connection != NULL)
|
||||
{
|
||||
if (connection != NULL) {
|
||||
connection->tick();
|
||||
}
|
||||
}
|
||||
|
||||
void ReceivingLevelScreen::buttonClicked(Button *button)
|
||||
{
|
||||
}
|
||||
void ReceivingLevelScreen::buttonClicked(Button* button) {}
|
||||
|
||||
void ReceivingLevelScreen::render(int xm, int ym, float a)
|
||||
{
|
||||
void ReceivingLevelScreen::render(int xm, int ym, float a) {
|
||||
renderDirtBackground(0);
|
||||
|
||||
Language *language = Language::getInstance();
|
||||
Language* language = Language::getInstance();
|
||||
|
||||
drawCenteredString(font, language->getElement(L"multiplayer.downloadingTerrain"), width / 2, height / 2 - 50, 0xffffff);
|
||||
drawCenteredString(font,
|
||||
language->getElement(L"multiplayer.downloadingTerrain"),
|
||||
width / 2, height / 2 - 50, 0xffffff);
|
||||
|
||||
Screen::render(xm, ym, a);
|
||||
}
|
||||
Reference in New Issue
Block a user