Skip to content

Commit cf9e3ae

Browse files
committed
feat: switched to single component for stream data
1 parent c6c05f6 commit cf9e3ae

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

ecsact/runtime/async.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,13 +208,15 @@ ECSACT_ASYNC_API_FN(int32_t, ecsact_async_get_current_tick)(void);
208208
/**
209209
* Sends Ecsact stream data to the specified registry. Stream data will be
210210
* applied on the next ecsact_execute_systems call.
211+
*
212+
* @param ... if the component has indexed fields then those fields must be
213+
* supplied to the variadic arguments in declaration order.
211214
*/
212215
ECSACT_CORE_API_FN(ecsact_async_request_id, ecsact_async_stream)
213216
( //
214-
int32_t count,
215-
const ecsact_entity_id* entities,
216-
const ecsact_component_id* component_ids,
217-
const void** components_data
217+
ecsact_entity_id entity,
218+
ecsact_component_id component_id,
219+
const void* component_data
218220
);
219221

220222
#define FOR_EACH_ECSACT_ASYNC_API_FN(fn, ...) \

ecsact/runtime/core.h

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -266,15 +266,18 @@ ECSACT_CORE_API_FN(ecsact_ees, ecsact_get_entity_execution_status)
266266

267267
/**
268268
* Sends Ecsact stream data to the specified registry. Stream data will be
269-
* applied on the next ecsact_execute_systems call.
269+
* applied on the next ecsact_execute_systems call. The last set of stream data
270+
* is always used.
271+
*
272+
* @param ... if the component has indexed fields then those fields must be
273+
* supplied to the variadic arguments in declaration order.
270274
*/
271275
ECSACT_CORE_API_FN(ecsact_stream_error, ecsact_stream)
272276
( //
273-
ecsact_registry_id registry_id,
274-
int32_t count,
275-
const ecsact_entity_id* entities,
276-
const ecsact_component_id* component_ids,
277-
const void** components_data
277+
ecsact_registry_id registry_id,
278+
ecsact_entity_id entity,
279+
ecsact_component_id component_id,
280+
const void* component_data
278281
);
279282

280283
// # BEGIN FOR_EACH_ECSACT_CORE_API_FN

0 commit comments

Comments
 (0)