diff --git a/ecsact/runtime/async.h b/ecsact/runtime/async.h index 9f7d502c..c9684280 100644 --- a/ecsact/runtime/async.h +++ b/ecsact/runtime/async.h @@ -202,13 +202,15 @@ ECSACT_ASYNC_API_FN(int32_t, ecsact_async_get_current_tick)(void); /** * Sends Ecsact stream data to the specified registry. Stream data will be * applied on the next ecsact_execute_systems call. + * + * @param ... if the component has indexed fields then those fields must be + * supplied to the variadic arguments in declaration order. */ ECSACT_CORE_API_FN(ecsact_async_request_id, ecsact_async_stream) ( // - int32_t count, - const ecsact_entity_id* entities, - const ecsact_component_id* component_ids, - const void** components_data + ecsact_entity_id entity, + ecsact_component_id component_id, + const void* component_data ); #define FOR_EACH_ECSACT_ASYNC_API_FN(fn, ...) \ diff --git a/ecsact/runtime/core.h b/ecsact/runtime/core.h index c9e43477..d4c08f63 100644 --- a/ecsact/runtime/core.h +++ b/ecsact/runtime/core.h @@ -260,15 +260,18 @@ ECSACT_CORE_API_FN(ecsact_ees, ecsact_get_entity_execution_status) /** * Sends Ecsact stream data to the specified registry. Stream data will be - * applied on the next ecsact_execute_systems call. + * applied on the next ecsact_execute_systems call. The last set of stream data + * is always used. + * + * @param ... if the component has indexed fields then those fields must be + * supplied to the variadic arguments in declaration order. */ ECSACT_CORE_API_FN(ecsact_stream_error, ecsact_stream) ( // - ecsact_registry_id registry_id, - int32_t count, - const ecsact_entity_id* entities, - const ecsact_component_id* component_ids, - const void** components_data + ecsact_registry_id registry_id, + ecsact_entity_id entity, + ecsact_component_id component_id, + const void* component_data ); // # BEGIN FOR_EACH_ECSACT_CORE_API_FN