@@ -135,29 +135,34 @@ ECSACT_CORE_API_FN(ecsact_add_error, ecsact_add_component)
135135
136136/**
137137 * Checks if a given entity has component with id @p component_id
138- * @param ... if the component has indexed fields then those fields must be
139- * supplied to the variadic arguments in declaration order.
138+ *
139+ * @param indexed_field_values if the component has indexed fields then those
140+ * fields must be supplied as a sequential array in declaration order,
141+ * otherwise may be NULL.
140142 */
141143ECSACT_CORE_API_FN (bool , ecsact_has_component )
142144( //
143145 ecsact_registry_id registry_id ,
144146 ecsact_entity_id entity_id ,
145147 ecsact_component_id component_id ,
146- ...
148+ const void * indexed_field_values
147149);
148150
149151/**
150- * @param ... if the component has indexed fields then those fields must be
151- * supplied to the variadic arguments in declaration order.
152+ * @param indexed_field_values if the component has indexed fields then those
153+ * fields must be supplied as a sequential array in declaration order,
154+ * otherwise may be NULL.
155+ *
152156 * @returns non-owning pointer of the component data
157+ *
153158 * NOTE: This method should be avoided if possible.
154159 */
155160ECSACT_CORE_API_FN (const void * , ecsact_get_component )
156161( //
157162 ecsact_registry_id registry_id ,
158163 ecsact_entity_id entity_id ,
159164 ecsact_component_id component_id ,
160- ...
165+ const void * indexed_field_values
161166);
162167
163168/**
@@ -199,8 +204,9 @@ ECSACT_CORE_API_FN(void, ecsact_each_component)
199204/**
200205 * Update a component for the specified entity.
201206 *
202- * @param ... if the component has indexed fields then those fields must be
203- * supplied to the variadic arguments in declaration order.
207+ * @param indexed_field_values if the component has indexed fields then those
208+ * fields must be supplied as a sequential array in declaration order,
209+ * otherwise may be NULL.
204210 *
205211 * NOTE: This method should be avoided if possible. Updating a component in a
206212 * system or system execution options is preferred.
@@ -212,14 +218,15 @@ ECSACT_CORE_API_FN(ecsact_update_error, ecsact_update_component)
212218 ecsact_entity_id entity_id ,
213219 ecsact_component_id component_id ,
214220 const void * component_data ,
215- ...
221+ const void * indexed_field_values
216222);
217223
218224/**
219225 * Removes a component from the specified entity.
220226 *
221- * @param ... if the component has indexed fields then those fields must be
222- * supplied to the variadic arguments in declaration order.
227+ * @param indexed_field_values if the component has indexed fields then those
228+ * fields must be supplied as a sequential array in declaration order,
229+ * otherwise may be NULL.
223230 *
224231 * NOTE: This method should be avoided if possible. Removing a component in a
225232 * system or system execution options is preferred.
@@ -230,7 +237,7 @@ ECSACT_CORE_API_FN(void, ecsact_remove_component)
230237 ecsact_registry_id registry_id ,
231238 ecsact_entity_id entity_id ,
232239 ecsact_component_id component_id ,
233- ...
240+ const void * indexed_field_values
234241);
235242
236243/**
@@ -269,16 +276,17 @@ ECSACT_CORE_API_FN(ecsact_ees, ecsact_get_entity_execution_status)
269276 * applied on the next ecsact_execute_systems call. The last set of stream data
270277 * is always used.
271278 *
272- * @param ... if the component has indexed fields then those fields must be
273- * supplied to the variadic arguments in declaration order.
279+ * @param indexed_field_values if the component has indexed fields then those
280+ * fields must be supplied as a sequential array in declaration order,
281+ * otherwise may be NULL.
274282 */
275283ECSACT_CORE_API_FN (ecsact_stream_error , ecsact_stream )
276284( //
277285 ecsact_registry_id registry_id ,
278286 ecsact_entity_id entity ,
279287 ecsact_component_id component_id ,
280288 const void * component_data ,
281- ...
289+ const void * indexed_field_values
282290);
283291
284292// # BEGIN FOR_EACH_ECSACT_CORE_API_FN
0 commit comments