CSEngine
Loading...
Searching...
No Matches
CSE::MoreComponentFunc Class Reference

Static Public Member Functions

static SComponentCreateComponent (SGameObject *obj, std::string component_type)
 
static void BindComponentToSQInstance (SComponent *component, std::string name, sqext::SQIClassInstance *instance)
 

Detailed Description

Definition at line 11 of file MoreComponentFunc.h.

Member Function Documentation

◆ BindComponentToSQInstance()

void MoreComponentFunc::BindComponentToSQInstance ( SComponent component,
std::string  name,
sqext::SQIClassInstance *  instance 
)
static

Definition at line 43 of file MoreComponentFunc.cpp.

44 {
45 std::string component_type = component->GetClassType();
46
47 BIND_COMPONENT_MACRO(AnimatorComponent);
48 BIND_COMPONENT_MACRO(JointComponent);
49 BIND_COMPONENT_MACRO(CameraComponent);
50 BIND_COMPONENT_MACRO(CustomComponent);
51 BIND_COMPONENT_MACRO(DrawableSkinnedMeshComponent);
52 BIND_COMPONENT_MACRO(DrawableStaticMeshComponent);
53 BIND_COMPONENT_MACRO(LightComponent);
54 BIND_COMPONENT_MACRO(RenderComponent);
55 BIND_COMPONENT_MACRO(TransformComponent);
56}

◆ CreateComponent()

SComponent * MoreComponentFunc::CreateComponent ( SGameObject obj,
std::string  component_type 
)
static

Definition at line 27 of file MoreComponentFunc.cpp.

27 {
28
29 CREATE_COMPONENT_MACRO(AnimatorComponent);
30 CREATE_COMPONENT_MACRO(JointComponent);
31 CREATE_COMPONENT_MACRO(CameraComponent);
32 CREATE_COMPONENT_MACRO(CustomComponent);
33 CREATE_COMPONENT_MACRO(DrawableSkinnedMeshComponent);
34 CREATE_COMPONENT_MACRO(DrawableStaticMeshComponent);
35 CREATE_COMPONENT_MACRO(LightComponent);
36 CREATE_COMPONENT_MACRO(RenderComponent);
37 CREATE_COMPONENT_MACRO(TransformComponent);
38
39 return nullptr;
40
41}

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