Skip to content

API to dump entities from async runtime #162

Open
@zaucy

Description

@zaucy

The current dump entities function takes in a registry ID which is not exposed in the async API. Most async implementations have a registry under the hood and could utilise that for easy implementation.

Here's the proposed API:

void ecsact_async_dump_entities(
	ecsact_dump_entities_callback callback,
	void*                         callback_user_data
);

It's unclear to me if this should be part of the serialize or async module. I'm leaning towards the async module.

It's also worth mentioning that this function may need to block, but if we can reasonbly document it being non-blocking or implementation defined that would be okay too. If we're doing non-blocking maybe we shoudl return an ecsact_async_request_id and if we're non-blocking then it should almost certainly be part of the async module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions