mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-04-23 07:27:20 +00:00
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>
43 lines
1,018 B
C++
43 lines
1,018 B
C++
#pragma once
|
|
#include "../Minecraft.World/ProgressListener.h"
|
|
|
|
class ProgressRenderer : public ProgressListener
|
|
{
|
|
public:
|
|
enum eProgressStringType
|
|
{
|
|
eProgressStringType_ID,
|
|
eProgressStringType_String, // 4J-PB added for updating the bytes read on a save transfer
|
|
};
|
|
|
|
static CRITICAL_SECTION s_progress;
|
|
|
|
int getCurrentPercent();
|
|
int getCurrentTitle();
|
|
int getCurrentStatus();
|
|
wstring& getProgressString(void);
|
|
ProgressRenderer::eProgressStringType getType();
|
|
|
|
private:
|
|
int lastPercent;
|
|
|
|
private:
|
|
int status;
|
|
Minecraft *minecraft;
|
|
int title;
|
|
int64_t lastTime;
|
|
bool noAbort;
|
|
wstring m_wstrText;
|
|
eProgressStringType m_eType;
|
|
|
|
void setType(eProgressStringType eType);
|
|
|
|
public:
|
|
ProgressRenderer(Minecraft *minecraft);
|
|
virtual void progressStart(int title);
|
|
virtual void progressStartNoAbort(int string);
|
|
void _progressStart(int title);
|
|
virtual void progressStage(int status);
|
|
virtual void progressStage(wstring &wstrText);
|
|
virtual void progressStagePercentage(int i);
|
|
}; |