forked from SanderMertens/flecs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstage.h
115 lines (91 loc) · 2.19 KB
/
stage.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/**
* @file stage.h
* @brief Stage functions.
*/
#ifndef FLECS_STAGE_H
#define FLECS_STAGE_H
/* Post-frame merge actions */
void flecs_stage_merge_post_frame(
ecs_world_t *world,
ecs_stage_t *stage);
bool flecs_defer_cmd(
ecs_stage_t *stage);
bool flecs_defer_begin(
ecs_world_t *world,
ecs_stage_t *stage);
bool flecs_defer_modified(
ecs_stage_t *stage,
ecs_entity_t entity,
ecs_entity_t component);
bool flecs_defer_clone(
ecs_stage_t *stage,
ecs_entity_t entity,
ecs_entity_t src,
bool clone_value);
bool flecs_defer_bulk_new(
ecs_world_t *world,
ecs_stage_t *stage,
int32_t count,
ecs_id_t id,
const ecs_entity_t **ids_out);
bool flecs_defer_path(
ecs_stage_t *stage,
ecs_entity_t parent,
ecs_entity_t entity,
const char *name);
bool flecs_defer_delete(
ecs_stage_t *stage,
ecs_entity_t entity);
bool flecs_defer_clear(
ecs_stage_t *stage,
ecs_entity_t entity);
bool flecs_defer_on_delete_action(
ecs_stage_t *stage,
ecs_id_t id,
ecs_entity_t action);
bool flecs_defer_enable(
ecs_stage_t *stage,
ecs_entity_t entity,
ecs_entity_t component,
bool enable);
bool flecs_defer_add(
ecs_stage_t *stage,
ecs_entity_t entity,
ecs_id_t id);
bool flecs_defer_remove(
ecs_stage_t *stage,
ecs_entity_t entity,
ecs_id_t id);
void* flecs_defer_set(
ecs_world_t *world,
ecs_stage_t *stage,
ecs_cmd_kind_t op_kind,
ecs_entity_t entity,
ecs_entity_t component,
ecs_size_t size,
void *value,
bool *is_new);
bool flecs_defer_end(
ecs_world_t *world,
ecs_stage_t *stage);
bool flecs_defer_purge(
ecs_world_t *world,
ecs_stage_t *stage);
void flecs_enqueue(
ecs_world_t *world,
ecs_stage_t *stage,
ecs_event_desc_t *desc);
ecs_entity_t flecs_stage_set_system(
ecs_stage_t *stage,
ecs_entity_t system);
ecs_allocator_t* flecs_stage_get_allocator(
ecs_world_t *world);
ecs_stack_t* flecs_stage_get_stack_allocator(
ecs_world_t *world);
void flecs_commands_init(
ecs_stage_t *stage,
ecs_commands_t *cmd);
void flecs_commands_fini(
ecs_stage_t *stage,
ecs_commands_t *cmd);
#endif