This repository has been archived on 2021-04-24. You can view files and clone it, but cannot push or open issues or pull requests.
game/include/Components/TopLevel/Game.hpp
2021-04-12 18:04:25 +03:00

28 lines
No EOL
607 B
C++

#ifndef _GAME_H
#define _GAME_H
#include <Components/TopLevel/GameObject.hpp>
#include <Components/TopLevel/Game.hpp>
#include <vendor/LuaBridge3/Source/LuaBridge/LuaBridge.h> // Pain
struct Game : public GameObject {
Game() : GameObject("game") {
std::cout << "[+] Game" << '\n';
}
bool isGame() {
return true;
}
};
void registerGame(lua_State* L) {
luabridge::getGlobalNamespace (L)
.beginNamespace ("Core")
.deriveClass <Game, GameObject> ("Game")
.addFunction ("isGame", &Game::isGame)
.endClass ()
.endNamespace ();
}
#endif