8 m_EntityParent = entity_parent;
11 Component GetComponent(
int comp_type,
string extended_class_name=
"")
19 if ( !IsComponentAlreadyExist(comp_type) )
21 CreateComponent(comp_type, extended_class_name);
24 return m_Components[comp_type];
27 bool DeleteComponent(
int comp_type)
29 if ( IsComponentAlreadyExist(comp_type) )
31 m_Components[comp_type] = NULL;
38 private Component CreateComponent(
int comp_type,
string extended_class_name=
"")
46 if ( IsComponentAlreadyExist(comp_type) )
49 return m_Components[comp_type];
53 string clas_name = extended_class_name;
55 if ( clas_name ==
string.
Empty )
65 m_Components[comp_type] = comp;
72 bool IsComponentAlreadyExist(
int comp_type)
74 if ( m_Components[comp_type] != NULL )