diff options
| author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-13 19:22:23 +0100 | 
|---|---|---|
| committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-13 19:22:23 +0100 | 
| commit | d69f1642cb397d68d591718f83028e14620ab340 (patch) | |
| tree | 8f4294169949420710bb3c77f759ea7c0731a806 /src/crepe | |
| parent | 6c35bd16f254f687f2b415234e36b13f0f8897a8 (diff) | |
`make format`
Diffstat (limited to 'src/crepe')
| -rw-r--r-- | src/crepe/ComponentManager.cpp | 10 | ||||
| -rw-r--r-- | src/crepe/ComponentManager.h | 6 | ||||
| -rw-r--r-- | src/crepe/api/Scene.cpp | 4 | 
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) {} |