SpiecsEngine
 
Loading...
Searching...
No Matches
Spices::NativeScriptComponent Class Reference

NativeScriptComponent Class. This class defines the specific behaves of NativeScriptComponent. When we add an new NativeScriptComponent, we need inherit from this. More...

#include <NativeScriptComponent.h>

Inheritance diagram for Spices::NativeScriptComponent:
Spices::Component Spices::CameraController Spices::MeshController

Public Member Functions

 NativeScriptComponent ()=default
 Constructor Function.
 
 NativeScriptComponent (std::shared_ptr< NativeScriptComponent > realComp)
 Constructor Function. Init class variable. Usually call it.
 
virtual ~NativeScriptComponent () override=default
 Destructor Function.
 
virtual void OnSerialize () override
 This interface defines how to serialize.
 
virtual void OnDeSerialize () override
 This interface defines how to deserialize.
 
virtual void OnComponentAdded (const entt::entity &entity) override final
 This interface defines the behaves on specific component added. Init with variable.
 
virtual void OnConstruction ()
 This interface defines the behaves on specific component added.
 
virtual void OnTick (TimeStep &ts)
 This interface defines the behaves on specific component tick every frame.
 
virtual void OnEvent (Event &e)
 This interface defines the behaves on specific component event happened.
 
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.
 

Private Attributes

std::shared_ptr< NativeScriptComponentm_RealNScriptComp
 Real component.
 

Detailed Description

NativeScriptComponent Class. This class defines the specific behaves of NativeScriptComponent. When we add an new NativeScriptComponent, we need inherit from this.

Definition at line 23 of file NativeScriptComponent.h.


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