MCPcopy Create free account
hub / github.com/GodotECS/godex / new_component

Method new_component

ecs.cpp:1140–1143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1138}
1139
1140void *ECS::new_component(godex::component_id p_component_id) {
1141 ERR_FAIL_COND_V_MSG(ECS::verify_component_id(p_component_id) == false, nullptr, "This component id " + itos(p_component_id) + " is not valid. Are you passing a Component ID?");
1142 return components_info[p_component_id].new_component();
1143}
1144
1145void ECS::free_component(godex::component_id p_component_id, void *p_component) {
1146 ERR_FAIL_COND_MSG(ECS::verify_component_id(p_component_id) == false, "This component id " + itos(p_component_id) + " is not valid. Are you passing a Component ID?");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected