SpiecsEngine
 
Loading...
Searching...
No Matches
Component.cpp
Go to the documentation of this file.
1/**
2* @file Component.cpp.
3* @brief The Component Class Implementation.
4* @author Spices.
5*/
6
7#include "Pchheader.h"
8#include "Component.h"
9#include "World/Entity.h"
10#include "Resources/ResourcePool/ResourcePool.h"
11#include "Resources/Texture/Texture2D.h"
12#include "Render/Vulkan/VulkanImage.h"
13#include "Slate/Imgui/ImguiHelper.h"
14
15namespace Spices {
16
17 void Component::OnComponentAdded(const entt::entity& entity)
18 {
20
21 /**
22 * @brief Set m_Owner Variable.
23 */
24 m_Owner = entity;
25 }
26}
#define SPICES_PROFILE_ZONE
virtual void OnComponentAdded(const entt::entity &entity)
This interface defines the behaves on specific component added. Init with variable.
Definition Component.cpp:17
Component Class. This class defines the basic behaves of component. When we add an new Component,...
Definition Component.h:27