diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-14 11:51:13 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-14 11:51:13 +0100 |
commit | d6b11fadd9e64aecbe96e5f73f85be3c0d790dcf (patch) | |
tree | 2a1465e219d14ff02c2b293b76b54b74a37ade92 /src/crepe/api/Scene.cpp | |
parent | d3a77a80fbda1f40d1f46552c1e3c2f6cd767668 (diff) | |
parent | b9fc66f6922b1f40f2dbe14e8dfc4caa469654bc (diff) |
Merge branch 'master' of github.com:lonkaars/crepe into jaro/particle-system-improvement
Diffstat (limited to 'src/crepe/api/Scene.cpp')
-rw-r--r-- | src/crepe/api/Scene.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/crepe/api/Scene.cpp b/src/crepe/api/Scene.cpp new file mode 100644 index 0000000..ad729d2 --- /dev/null +++ b/src/crepe/api/Scene.cpp @@ -0,0 +1,15 @@ +#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); +} |