diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-13 12:19:56 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-13 12:19:56 +0100 |
commit | 87c74782e486647c46f9ca4d2f857094006e563c (patch) | |
tree | c8e0b893610cb90d7bd7578c3d076b7e905c822a /src/crepe/ComponentManager.cpp | |
parent | ec3601fbc17a38a44608a04f53d4e36c1bff8c96 (diff) |
`make format`
Diffstat (limited to 'src/crepe/ComponentManager.cpp')
-rw-r--r-- | src/crepe/ComponentManager.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/crepe/ComponentManager.cpp b/src/crepe/ComponentManager.cpp index f6acc1a..8f8437b 100644 --- a/src/crepe/ComponentManager.cpp +++ b/src/crepe/ComponentManager.cpp @@ -25,10 +25,13 @@ 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 = new GameObject(*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 = new GameObject(*this, this->next_id, name, tag, + position, rotation, scale); this->objects.push_front(unique_ptr<GameObject>(object)); this->next_id++; return *object; } - |