Flecs v3.2
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
snapshot.h
Go to the documentation of this file.
1
13#ifdef FLECS_SNAPSHOT
14
23#ifndef FLECS_SNAPSHOT_H
24#define FLECS_SNAPSHOT_H
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
32
39FLECS_API
41 ecs_world_t *world);
42
50FLECS_API
52 ecs_iter_t *iter);
53
68FLECS_API
70 ecs_world_t *world,
71 ecs_snapshot_t *snapshot);
72
77FLECS_API
79 ecs_snapshot_t *snapshot);
80
86FLECS_API
88 ecs_iter_t *iter);
89
95FLECS_API
97 ecs_snapshot_t *snapshot);
98
99#ifdef __cplusplus
100}
101#endif
102
103#endif
104
107#endif
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.
Definition snapshot.h:31
struct ecs_world_t ecs_world_t
A world is the container for all ECS data and supporting features.
Definition flecs.h:362