mcpe/source/App.hpp

47 lines
892 B
C++
Raw Normal View History

2023-07-30 22:22:02 +03:00
/********************************************************************
Minecraft: Pocket Edition - Decompilation Project
Copyright (C) 2023 iProgramInCpp
2023-07-30 22:41:09 +03:00
The following code is licensed under the BSD 1 clause license.
SPDX-License-Identifier: BSD-1-Clause
2023-07-30 22:22:02 +03:00
********************************************************************/
#pragma once
#include "AppPlatform.hpp"
class App
{
protected:
App()
{
m_bWantToQuit = false;
m_pPlatform = nullptr;
}
2023-07-30 22:22:02 +03:00
public:
virtual bool handleBack(bool);
virtual void init();
virtual void update();
virtual void sizeUpdate(int newWidth, int newHeight);
void destroy();
void draw();
2023-07-30 22:22:02 +03:00
void loadState(void*, int);
AppPlatform* platform();
void quit();
void saveState(void**, int);
bool wantToQuit();
public:
bool m_bWantToQuit;
2023-07-30 22:22:02 +03:00
// don't know what these are ...
int field_8;
int field_C;
int field_10;
AppPlatform* m_pPlatform;
2023-07-30 22:22:02 +03:00
};