2023-12-18 17:06:11 +01:00
|
|
|
#ifndef GAME_APPLICATION_H
|
|
|
|
#define GAME_APPLICATION_H
|
|
|
|
|
2023-12-31 15:04:17 +01:00
|
|
|
#include "render_core/application.h"
|
2023-12-18 17:06:11 +01:00
|
|
|
|
|
|
|
#include "game_scene.h"
|
|
|
|
|
|
|
|
class GameApplication : public Application {
|
2024-01-03 13:52:39 +01:00
|
|
|
SFW_OBJECT(GameApplication, Application);
|
|
|
|
|
2023-12-18 17:06:11 +01:00
|
|
|
public:
|
2024-01-03 14:01:29 +01:00
|
|
|
GameApplication() {
|
2024-01-03 14:04:22 +01:00
|
|
|
scene = Ref<Scene>(memnew(GameScene()));
|
2024-01-03 13:52:39 +01:00
|
|
|
}
|
2023-12-18 17:06:11 +01:00
|
|
|
|
2024-01-03 13:52:39 +01:00
|
|
|
~GameApplication() {
|
2024-01-03 14:04:22 +01:00
|
|
|
scene.unref();
|
2024-01-03 13:52:39 +01:00
|
|
|
}
|
2023-12-18 17:06:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // GAME_APPLICATION_H
|