2023-07-30 22:22:02 +03:00
|
|
|
/********************************************************************
|
|
|
|
Minecraft: Pocket Edition - Decompilation Project
|
|
|
|
Copyright (C) 2023 iProgramInCpp
|
2023-08-07 07:48:52 -05:00
|
|
|
|
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
|
|
|
|
{
|
2023-08-07 07:48:52 -05:00
|
|
|
protected:
|
|
|
|
App()
|
|
|
|
{
|
|
|
|
m_bWantToQuit = false;
|
|
|
|
m_pPlatform = nullptr;
|
|
|
|
}
|
2023-07-30 22:22:02 +03:00
|
|
|
|
|
|
|
public:
|
|
|
|
virtual bool handleBack(bool);
|
|
|
|
virtual void init();
|
2023-08-06 22:45:15 +03:00
|
|
|
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:
|
2023-08-07 07:48:52 -05:00
|
|
|
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;
|
|
|
|
|
2023-08-07 07:48:52 -05:00
|
|
|
AppPlatform* m_pPlatform;
|
2023-07-30 22:22:02 +03:00
|
|
|
};
|
|
|
|
|