| 2200 | } |
| 2201 | |
| 2202 | Result GetComponentId(HInstance instance, uint16_t component_index, dmhash_t* component_id) |
| 2203 | { |
| 2204 | assert(instance != 0x0); |
| 2205 | if (component_index < instance->m_Prototype->m_ComponentCount) |
| 2206 | { |
| 2207 | *component_id = instance->m_Prototype->m_Components[component_index].m_Id; |
| 2208 | return RESULT_OK; |
| 2209 | } |
| 2210 | return RESULT_COMPONENT_NOT_FOUND; |
| 2211 | } |
| 2212 | |
| 2213 | Result GetComponent(HInstance instance, dmhash_t component_id, uint32_t* component_type, HComponent* out_component, HComponentWorld* out_world) |
| 2214 | { |