CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::ScriptComponent Struct Referencefinal

#include <CeresEngine/Scripting/Component.hpp>

Inheritance diagram for CeresEngine::ScriptComponent:
CeresEngine::Component< ScriptComponent > CeresEngine::AbstractComponent

Classes

struct  Accessor
 

Public Member Functions

virtual CE_DISABLE_WARNING_MISSING_OVERRIDE ::CeresEngine::ClassInfo getClassInfo () const noexcept
 
virtual ::CeresEngine::ClassInfo getClassInfo () noexcept
 
 ScriptComponent (SPtr< EntityScript > script)
 Creates a new script component.
 
- Public Member Functions inherited from CeresEngine::Component< ScriptComponent >
const ComponentTypegetComponentType () const noexcept final
 Gets the component type.
 
- Public Member Functions inherited from CeresEngine::AbstractComponent
virtual ~AbstractComponent ()=default
 Defaulted virtual destructor.
 

Public Attributes

SPtr< EntityScriptscript
 The script to be ran by the scripting system.
 

Additional Inherited Members

- Static Public Attributes inherited from CeresEngine::Component< ScriptComponent >
static const ComponentID componentID
 This component type ID.
 
static const ComponentMask mask
 The component mask.
 
static const ComponentTypecomponentType
 Gets the component type.
 

Constructor & Destructor Documentation

◆ ScriptComponent()

CeresEngine::ScriptComponent::ScriptComponent ( SPtr< EntityScript script)
inlineexplicit

Creates a new script component.

Parameters
scriptThe script instance associated with the entity.

Member Function Documentation

◆ getClassInfo() [1/2]

virtual CE_DISABLE_WARNING_MISSING_OVERRIDE ::CeresEngine::ClassInfo CeresEngine::ScriptComponent::getClassInfo ( ) const
virtualnoexcept

Reimplemented from CeresEngine::AbstractComponent.

◆ getClassInfo() [2/2]

virtual ::CeresEngine::ClassInfo CeresEngine::ScriptComponent::getClassInfo ( )
virtualnoexcept

Reimplemented from CeresEngine::AbstractComponent.

Member Data Documentation

◆ script

SPtr<EntityScript> CeresEngine::ScriptComponent::script

The script to be ran by the scripting system.


The documentation for this struct was generated from the following file: