mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-11-04 14:42:02 +00:00 
			
		
		
		
	testing iteration
This commit is contained in:
		@@ -1,18 +1,5 @@
 | 
			
		||||
#include "Component.h"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Component::Component(Entity* parent) {
 | 
			
		||||
	m_Parent = parent;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Component::~Component() {
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Entity* Component::GetParent() const {
 | 
			
		||||
	return m_Parent;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Component::Update(float deltaTime) {
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -13,14 +13,15 @@ class Entity;
 | 
			
		||||
 */
 | 
			
		||||
class Component {
 | 
			
		||||
public:
 | 
			
		||||
	Component(Entity* parent);
 | 
			
		||||
	virtual ~Component();
 | 
			
		||||
	Component() = default;
 | 
			
		||||
	Component(Entity* parent) : m_Parent{ parent } {}
 | 
			
		||||
	virtual ~Component() = default;
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Gets the owner of this component
 | 
			
		||||
	 * @return the owner of this component
 | 
			
		||||
	 */
 | 
			
		||||
	Entity* GetParent() const;
 | 
			
		||||
	Entity* GetParent() const { return m_Parent; }
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Updates the component in the game loop
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user