You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
/******************************************************************************
|
|
|
|
|
* File - coreAPI.h
|
|
|
|
|
* Author - Joey Pollack
|
|
|
|
|
* Date - 2021/09/23 (y/m/d)
|
|
|
|
|
* Mod Date - 2021/09/23 (y/m/d)
|
|
|
|
|
* Description - class with all static methods that expose core functionality to LUA
|
|
|
|
|
* Need an init function that takes a reference to a LUA state so that it
|
|
|
|
|
* can expose the static functions to LUA.
|
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
|
|
#ifndef CORE_API_H_
|
|
|
|
|
#define CORE_API_H_
|
|
|
|
|
|
|
|
|
|
#include <utils/opRes.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace lunarium
|
|
|
|
|
{
|
|
|
|
|
class ScriptManager;
|
|
|
|
|
|
|
|
|
|
class CoreAPI
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
static CoreAPI& GetInstance();
|
|
|
|
|
static void FreeInstance();
|
|
|
|
|
|
|
|
|
|
OpRes Initialize(ScriptManager& sman);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
static CoreAPI* mpInstance;
|
|
|
|
|
uint32_t mCat;
|
|
|
|
|
|
|
|
|
|
public: // API
|
|
|
|
|
|
|
|
|
|
static void SetWindowSize(int w, int h);
|
|
|
|
|
static void Log(int level, const char* msg);
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif // CORE_API_H_
|