Skip to content

Commit

Permalink
feat: switched to single component for stream data
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy committed Sep 18, 2024
1 parent c6c05f6 commit cf9e3ae
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
10 changes: 6 additions & 4 deletions ecsact/runtime/async.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,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, ...) \
Expand Down
15 changes: 9 additions & 6 deletions ecsact/runtime/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,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
Expand Down

0 comments on commit cf9e3ae

Please sign in to comment.