diff options
| author | max-001 <maxsmits21@kpnmail.nl> | 2024-11-06 10:21:39 +0100 | 
|---|---|---|
| committer | max-001 <maxsmits21@kpnmail.nl> | 2024-11-06 10:21:39 +0100 | 
| commit | cd7f08320990f1a37e2d012b7e3ae3761c5a7267 (patch) | |
| tree | 9c2af636150e51a290e2a16851ee18ee9b95adf9 /src/example/scene_manager.cpp | |
| parent | 2fce3e3985302544827f6bf4dcc3a46cae3f2fd1 (diff) | |
Renamed methods and replaced the queue with a simple string
Diffstat (limited to 'src/example/scene_manager.cpp')
| -rw-r--r-- | src/example/scene_manager.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/src/example/scene_manager.cpp b/src/example/scene_manager.cpp index f1fe86a..9d832eb 100644 --- a/src/example/scene_manager.cpp +++ b/src/example/scene_manager.cpp @@ -40,9 +40,9 @@ int main() {  	scene_mgr.add_scene<concreteScene2>("scene2");  	// Load scene1 to the queue -	scene_mgr.load_scene("scene1"); +	scene_mgr.set_next_scene("scene1");  	// Empty the queue (now scene1 is loaded) -	scene_mgr.empty_queue(); +	scene_mgr.load_next_scene();  	// Get the Metadata components of each GameObject of Scene1  	ComponentManager & component_mgr = ComponentManager::get_instance(); @@ -57,9 +57,9 @@ int main() {  	}  	// Load scene2 to the queue -	scene_mgr.load_scene("scene2"); +	scene_mgr.set_next_scene("scene2");  	// Empty the queue (now scene2 is loaded) -	scene_mgr.empty_queue(); +	scene_mgr.load_next_scene();  	// Get the Metadata components of each GameObject of Scene2  	metadata = component_mgr.get_components_by_type<Metadata>();  |