SpiecsEngine
 
Loading...
Searching...
No Matches
Spices::Component Class Referenceabstract

Component Class. This class defines the basic behaves of component. When we add an new Component, we need inherit from this. More...

#include <Component.h>

Inheritance diagram for Spices::Component:
Spices::CameraComponent Spices::DirectionalLightComponent Spices::EntityComponent Spices::LandscapeComponent Spices::MeshComponent Spices::NativeScriptComponent Spices::ParticleComponent Spices::PointLightComponent Spices::SpriteComponent Spices::TagComponent Spices::TransformComponent Spices::UUIDComponent

Public Member Functions

 Component ()=default
 Constructor Function.
 
virtual ~Component ()=default
 Destructor Function.
 
virtual void OnSerialize ()=0
 This interface defines how to serialize.
 
virtual void OnDeSerialize ()=0
 This interface defines how to deserialize.
 
virtual void OnComponentAdded (const entt::entity &entity)
 This interface defines the behaves on specific component added. Init with variable.
 
virtual void DrawThis ()
 This interface defines how to draw this component to property panel.
 

Protected Attributes

entt::entity m_Owner { entt::null }
 This component's Owner entity.
 

Detailed Description

Component Class. This class defines the basic behaves of component. When we add an new Component, we need inherit from this.

Definition at line 26 of file Component.h.


The documentation for this class was generated from the following files: