aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Scene.cpp
blob: 84da7e822eb8190951dac0d8638bb82ee699ff93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "Scene.h"

using namespace crepe;

SaveManager & Scene::get_save_manager() const { return mediator->save_manager; }

GameObject Scene::new_object(
	const std::string & name, const std::string & tag, const vec2 & position, double rotation,
	double scale
) {
	// Forward the call to ComponentManager's new_object method
	return mediator->component_manager->new_object(name, tag, position, rotation, scale);
}

void Scene::set_persistent(const Asset & asset, bool persistent) {
	mediator->resource_manager->set_persistent(asset, persistent);
}