23#ifndef FLECS_SNAPSHOT_H
24#define FLECS_SNAPSHOT_H
FLECS_API void ecs_snapshot_free(ecs_snapshot_t *snapshot)
Free snapshot resources.
FLECS_API ecs_iter_t ecs_snapshot_iter(ecs_snapshot_t *snapshot)
Obtain iterator to snapshot data.
FLECS_API void ecs_snapshot_restore(ecs_world_t *world, ecs_snapshot_t *snapshot)
Restore a snapshot.
FLECS_API ecs_snapshot_t * ecs_snapshot_take_w_iter(ecs_iter_t *iter)
Create a filtered snapshot.
FLECS_API bool ecs_snapshot_next(ecs_iter_t *iter)
Progress snapshot iterator.
FLECS_API ecs_snapshot_t * ecs_snapshot_take(ecs_world_t *world)
Create a snapshot.
struct ecs_snapshot_t ecs_snapshot_t
A snapshot stores the state of a world in a particular point in time.
struct ecs_world_t ecs_world_t
A world is the container for all ECS data and supporting features.