aboutsummaryrefslogtreecommitdiff
path: root/src/crepe
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe')
-rw-r--r--src/crepe/ComponentManager.cpp10
-rw-r--r--src/crepe/ComponentManager.h6
-rw-r--r--src/crepe/api/Scene.cpp4
3 files changed, 11 insertions, 9 deletions
diff --git a/src/crepe/ComponentManager.cpp b/src/crepe/ComponentManager.cpp
index 1e23609..7af0380 100644
--- a/src/crepe/ComponentManager.cpp
+++ b/src/crepe/ComponentManager.cpp
@@ -25,11 +25,11 @@ void ComponentManager::delete_all_components() {
ComponentManager::ComponentManager() { dbg_trace(); }
ComponentManager::~ComponentManager() { dbg_trace(); }
-GameObject ComponentManager::new_object(const string & name,
- const string & tag,
- const Vector2 & position,
- double rotation, double scale) {
- GameObject object{*this, this->next_id, name, tag, position, rotation, scale};
+GameObject ComponentManager::new_object(const string & name, const string & tag,
+ const Vector2 & position,
+ double rotation, double scale) {
+ GameObject object{*this, this->next_id, name, tag,
+ position, rotation, scale};
this->next_id++;
return object;
}
diff --git a/src/crepe/ComponentManager.h b/src/crepe/ComponentManager.h
index 31a8bfa..51c84a4 100644
--- a/src/crepe/ComponentManager.h
+++ b/src/crepe/ComponentManager.h
@@ -102,9 +102,9 @@ public:
// TODO: doxygen
GameObject new_object(const std::string & name,
- const std::string & tag = "",
- const Vector2 & position = {0, 0},
- double rotation = 0, double scale = 0);
+ const std::string & tag = "",
+ const Vector2 & position = {0, 0},
+ double rotation = 0, double scale = 0);
private:
/**
diff --git a/src/crepe/api/Scene.cpp b/src/crepe/api/Scene.cpp
index 008d689..88aa82d 100644
--- a/src/crepe/api/Scene.cpp
+++ b/src/crepe/api/Scene.cpp
@@ -2,4 +2,6 @@
using namespace crepe;
-Scene::Scene(ComponentManager & mgr, const std::string & name) : component_manager(mgr), name(name) {}
+Scene::Scene(ComponentManager & mgr, const std::string & name)
+ : component_manager(mgr),
+ name(name) {}