Add Discord RPC back with new features, add beta splitscreen support, PR's from MCLCE used in this https://github.com/MCLCE/MinecraftConsoles/pull/1044 https://github.com/MCLCE/MinecraftConsoles/pull/1136 https://github.com/MCLCE/MinecraftConsoles/pull/1245
23 lines
351 B
C++
23 lines
351 B
C++
#pragma once
|
|
|
|
class GameProgress
|
|
{
|
|
private:
|
|
static GameProgress *instance;
|
|
|
|
public:
|
|
static const long long UPDATE_FREQUENCY = 64 * 1000;
|
|
|
|
static void Tick();
|
|
static void Flush(int iPad);
|
|
|
|
protected:
|
|
GameProgress();
|
|
|
|
int m_nextPad;
|
|
long long m_lastUpdate;
|
|
|
|
void updatePlayer(int iPad);
|
|
|
|
float calcGameProgress(int achievementsUnlocked);
|
|
}; |