|
|
|
|
/******************************************************************************
|
|
|
|
|
* File - core.h
|
|
|
|
|
* Author - Joey Pollack
|
|
|
|
|
* Date - 2021/08/30 (y/m/d)
|
|
|
|
|
* Mod Date - 2021/08/30 (y/m/d)
|
|
|
|
|
* Description - The Core Engine Class. Manages the engine components.
|
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
|
|
#ifndef CORE_H_
|
|
|
|
|
#define CORE_H_
|
|
|
|
|
|
|
|
|
|
#include "state.h"
|
|
|
|
|
#include <utils/Logger.h>
|
|
|
|
|
#include <utils/args.h>
|
|
|
|
|
|
|
|
|
|
namespace lunarium
|
|
|
|
|
{
|
|
|
|
|
class Core
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
static Core& GetInstance();
|
|
|
|
|
static void Shutdown();
|
|
|
|
|
|
|
|
|
|
void Initialize(int argc, char** argv, std::vector<LogListener*>& listeners);
|
|
|
|
|
|
|
|
|
|
bool IsInit() const;
|
|
|
|
|
const State& GetState() const;
|
|
|
|
|
|
|
|
|
|
private: // DATA
|
|
|
|
|
static Core* mpInstance;
|
|
|
|
|
bool mbIsInit;
|
|
|
|
|
State mState;
|
|
|
|
|
Logger* mpLog;
|
|
|
|
|
|
|
|
|
|
private: // HIDDEN METHODS
|
|
|
|
|
|
|
|
|
|
Core();
|
|
|
|
|
Core(const Core&) = delete;
|
|
|
|
|
Core& operator=(const Core&) = delete;
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif // CORE_H_
|