-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModuleSceneIntro.h
More file actions
37 lines (27 loc) · 823 Bytes
/
ModuleSceneIntro.h
File metadata and controls
37 lines (27 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
#include "Module.h"
#include <vector>
#include <string>
class ComponentMaterial;
class GameObject;
class ModuleSceneIntro : public Module
{
public:
ModuleSceneIntro(Application* app, bool start_enabled = true);
~ModuleSceneIntro();
bool Start();
update_status Update(float dt);
bool CleanUp();
void Save(JSON_file& config);
void Load(JSON_file& config);
void DrawScene();
void AddRootObject(GameObject* game_obj); // utility to add objects to both root_objects and all_objects vector
GameObject* GetSelectedObj();
public:
std::vector<GameObject*> all_game_objects;
std::vector<GameObject*> root_game_objects; // for recursive functions
std::string selected_game_obj_uid;
std::vector<ComponentMaterial*> materials;
// config saved variables
std::string name = "main_scene.json";
};