mt-lang 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. checksums.yaml +4 -4
  2. data/docs/index.html +4 -3
  3. data/lib/milk_tea/base.rb +1 -1
  4. data/std/asset_pack.mt +267 -0
  5. data/std/async/libuv_runtime.mt +539 -0
  6. data/std/async/mailbox.mt +191 -0
  7. data/std/async/runtime.mt +87 -0
  8. data/std/async.mt +87 -0
  9. data/std/base64.mt +185 -0
  10. data/std/behavior_tree.mt +396 -0
  11. data/std/binary.mt +314 -0
  12. data/std/binary_heap.mt +157 -0
  13. data/std/bitset.mt +239 -0
  14. data/std/box2d.mt +535 -0
  15. data/std/bytes.mt +46 -0
  16. data/std/c/box2d.mt +1254 -0
  17. data/std/c/cgltf.mt +647 -0
  18. data/std/c/cjson.mt +106 -0
  19. data/std/c/crypto.mt +11 -0
  20. data/std/c/crypto_support.h +51 -0
  21. data/std/c/ctype.mt +19 -0
  22. data/std/c/ctype_bindgen.h +29 -0
  23. data/std/c/curl.mt +1223 -0
  24. data/std/c/enet.mt +473 -0
  25. data/std/c/errno.mt +41 -0
  26. data/std/c/errno_bindgen.h +53 -0
  27. data/std/c/flecs.mt +2945 -0
  28. data/std/c/fs.linux.mt +43 -0
  29. data/std/c/fs.windows.mt +43 -0
  30. data/std/c/fs_support.h +954 -0
  31. data/std/c/gl.mt +2065 -0
  32. data/std/c/gl_registry_helpers.h +10748 -0
  33. data/std/c/glfw.mt +499 -0
  34. data/std/c/libc.mt +167 -0
  35. data/std/c/libuv.mt +1491 -0
  36. data/std/c/math.mt +22 -0
  37. data/std/c/math_bindgen.h +31 -0
  38. data/std/c/miniaudio.mt +3420 -0
  39. data/std/c/pcre2.mt +735 -0
  40. data/std/c/process.mt +58 -0
  41. data/std/c/process_support.h +1147 -0
  42. data/std/c/raygui.mt +1602 -0
  43. data/std/c/raylib.mt +1245 -0
  44. data/std/c/raymath.mt +163 -0
  45. data/std/c/rlgl.mt +434 -0
  46. data/std/c/rpng.mt +60 -0
  47. data/std/c/rres.mt +187 -0
  48. data/std/c/sdl3.mt +4132 -0
  49. data/std/c/sqlite3.mt +951 -0
  50. data/std/c/stb_image.mt +52 -0
  51. data/std/c/stb_image_resize2.mt +128 -0
  52. data/std/c/stb_image_write.mt +19 -0
  53. data/std/c/stb_rect_pack.mt +38 -0
  54. data/std/c/stb_truetype.mt +175 -0
  55. data/std/c/stb_vorbis.mt +31 -0
  56. data/std/c/stdio.mt +90 -0
  57. data/std/c/steamworks.h +5769 -0
  58. data/std/c/steamworks.mt +4771 -0
  59. data/std/c/string.mt +16 -0
  60. data/std/c/string_bindgen.h +36 -0
  61. data/std/c/sync.mt +33 -0
  62. data/std/c/sync_support.h +219 -0
  63. data/std/c/terminal.mt +24 -0
  64. data/std/c/terminal_support.h +408 -0
  65. data/std/c/time.mt +26 -0
  66. data/std/c/tls.mt +24 -0
  67. data/std/c/tls_support.h +626 -0
  68. data/std/c/tracy.mt +53 -0
  69. data/std/c/zlib.mt +20 -0
  70. data/std/c/zlib_support.h +239 -0
  71. data/std/c/zstd.mt +231 -0
  72. data/std/cell.mt +60 -0
  73. data/std/cgltf.mt +115 -0
  74. data/std/cjson.mt +90 -0
  75. data/std/cli.mt +768 -0
  76. data/std/cookie.mt +198 -0
  77. data/std/counter.mt +160 -0
  78. data/std/crypto.mt +74 -0
  79. data/std/cstring.mt +13 -0
  80. data/std/ctype.mt +52 -0
  81. data/std/curl/runtime.mt +261 -0
  82. data/std/curl.mt +38 -0
  83. data/std/deque.mt +348 -0
  84. data/std/encoding.mt +93 -0
  85. data/std/enet.mt +133 -0
  86. data/std/env.mt +41 -0
  87. data/std/errno.mt +47 -0
  88. data/std/flecs.mt +978 -0
  89. data/std/fmt.mt +271 -0
  90. data/std/fs.linux.mt +696 -0
  91. data/std/fs.windows.mt +711 -0
  92. data/std/fsm.mt +267 -0
  93. data/std/gl.mt +2062 -0
  94. data/std/glfw.mt +471 -0
  95. data/std/goap.mt +342 -0
  96. data/std/graph.mt +521 -0
  97. data/std/gzip.mt +77 -0
  98. data/std/hash.mt +429 -0
  99. data/std/http/server.mt +810 -0
  100. data/std/http.mt +1227 -0
  101. data/std/intern.mt +53 -0
  102. data/std/jobs.mt +288 -0
  103. data/std/json.mt +627 -0
  104. data/std/libc.mt +34 -0
  105. data/std/libuv.mt +554 -0
  106. data/std/linear_algebra.mt +243 -0
  107. data/std/linked_map.mt +372 -0
  108. data/std/linked_map_view.mt +49 -0
  109. data/std/linked_set.mt +117 -0
  110. data/std/log.mt +69 -0
  111. data/std/map.mt +418 -0
  112. data/std/math.mt +24 -0
  113. data/std/mem/arena.mt +137 -0
  114. data/std/mem/endian.mt +51 -0
  115. data/std/mem/heap.mt +298 -0
  116. data/std/mem/pool.mt +164 -0
  117. data/std/mem/stack.mt +47 -0
  118. data/std/mem/tracking.mt +119 -0
  119. data/std/miniaudio.mt +1299 -0
  120. data/std/multiset.mt +191 -0
  121. data/std/net/channel.mt +727 -0
  122. data/std/net/clock.mt +237 -0
  123. data/std/net/discovery.mt +277 -0
  124. data/std/net/lobby.mt +813 -0
  125. data/std/net/manager.mt +539 -0
  126. data/std/net/mux.mt +839 -0
  127. data/std/net/nat.mt +122 -0
  128. data/std/net/packet.mt +219 -0
  129. data/std/net/punch.mt +162 -0
  130. data/std/net/rpc.mt +119 -0
  131. data/std/net/session.mt +1157 -0
  132. data/std/net/stun.mt +252 -0
  133. data/std/net/sync.mt +183 -0
  134. data/std/net/turn.mt +459 -0
  135. data/std/net.mt +2944 -0
  136. data/std/oauth2.mt +408 -0
  137. data/std/option.mt +51 -0
  138. data/std/ordered_map.mt +497 -0
  139. data/std/ordered_set.mt +348 -0
  140. data/std/path.mt +368 -0
  141. data/std/pcre2/runtime.mt +35 -0
  142. data/std/pcre2.mt +78 -0
  143. data/std/priority_queue.mt +55 -0
  144. data/std/process.mt +837 -0
  145. data/std/queue.mt +55 -0
  146. data/std/random.mt +146 -0
  147. data/std/raygui.mt +99 -0
  148. data/std/raylib/debug_console.mt +71 -0
  149. data/std/raylib/easing.mt +388 -0
  150. data/std/raylib/packed_assets.mt +255 -0
  151. data/std/raylib/runtime.mt +30 -0
  152. data/std/raylib/tracy_gpu.mt +37 -0
  153. data/std/raylib.mt +1510 -0
  154. data/std/raymath.mt +153 -0
  155. data/std/result.mt +89 -0
  156. data/std/rlgl.mt +268 -0
  157. data/std/rpng.mt +46 -0
  158. data/std/rres.mt +36 -0
  159. data/std/sdl3/runtime.mt +54 -0
  160. data/std/sdl3.mt +1731 -0
  161. data/std/serialize.mt +68 -0
  162. data/std/set.mt +124 -0
  163. data/std/spatial.mt +176 -0
  164. data/std/sqlite3.mt +151 -0
  165. data/std/stack.mt +55 -0
  166. data/std/stb_image.mt +47 -0
  167. data/std/stb_image_resize2.mt +41 -0
  168. data/std/stb_image_write.mt +17 -0
  169. data/std/stb_rect_pack.mt +15 -0
  170. data/std/stb_truetype.mt +77 -0
  171. data/std/stb_vorbis.mt +16 -0
  172. data/std/stdio.mt +88 -0
  173. data/std/steamworks.mt +1542 -0
  174. data/std/str.mt +293 -0
  175. data/std/string.mt +234 -0
  176. data/std/sync.mt +194 -0
  177. data/std/tar.mt +704 -0
  178. data/std/terminal.mt +1002 -0
  179. data/std/testing.mt +266 -0
  180. data/std/thread.mt +120 -0
  181. data/std/time.mt +105 -0
  182. data/std/tls.mt +616 -0
  183. data/std/toml.mt +1310 -0
  184. data/std/tracy.mt +42 -0
  185. data/std/uri.mt +118 -0
  186. data/std/url.mt +372 -0
  187. data/std/vec.mt +433 -0
  188. data/std/zstd.mt +94 -0
  189. metadata +187 -2
data/std/c/flecs.mt ADDED
@@ -0,0 +1,2945 @@
1
+ # generated by mtc bindgen from /home/teefan/Projects/Ruby/mt-lang/third_party/flecs-upstream/distr/flecs.h
2
+ external
3
+
4
+ link "flecs"
5
+ include "flecs.h"
6
+
7
+ union ecs_iter_private_t_iter:
8
+ query: ecs_query_iter_t
9
+ page: ecs_page_iter_t
10
+ worker: ecs_worker_iter_t
11
+ each: ecs_each_iter_t
12
+
13
+ struct ecs_world_info_t_cmd:
14
+ add_count: ptr_int
15
+ remove_count: ptr_int
16
+ delete_count: ptr_int
17
+ clear_count: ptr_int
18
+ set_count: ptr_int
19
+ ensure_count: ptr_int
20
+ modified_count: ptr_int
21
+ discard_count: ptr_int
22
+ event_count: ptr_int
23
+ other_count: ptr_int
24
+ batched_entity_count: ptr_int
25
+ batched_command_count: ptr_int
26
+
27
+ struct ecs_world_stats_t_entities:
28
+ count: ecs_metric_t
29
+ not_alive_count: ecs_metric_t
30
+
31
+ struct ecs_world_stats_t_components:
32
+ tag_count: ecs_metric_t
33
+ component_count: ecs_metric_t
34
+ pair_count: ecs_metric_t
35
+ type_count: ecs_metric_t
36
+ create_count: ecs_metric_t
37
+ delete_count: ecs_metric_t
38
+
39
+ struct ecs_world_stats_t_tables:
40
+ count: ecs_metric_t
41
+ empty_count: ecs_metric_t
42
+ create_count: ecs_metric_t
43
+ delete_count: ecs_metric_t
44
+
45
+ struct ecs_world_stats_t_queries:
46
+ query_count: ecs_metric_t
47
+ observer_count: ecs_metric_t
48
+ system_count: ecs_metric_t
49
+
50
+ struct ecs_world_stats_t_commands:
51
+ add_count: ecs_metric_t
52
+ remove_count: ecs_metric_t
53
+ delete_count: ecs_metric_t
54
+ clear_count: ecs_metric_t
55
+ set_count: ecs_metric_t
56
+ ensure_count: ecs_metric_t
57
+ modified_count: ecs_metric_t
58
+ other_count: ecs_metric_t
59
+ discard_count: ecs_metric_t
60
+ batched_entity_count: ecs_metric_t
61
+ batched_count: ecs_metric_t
62
+
63
+ struct ecs_world_stats_t_frame:
64
+ frame_count: ecs_metric_t
65
+ merge_count: ecs_metric_t
66
+ rematch_count: ecs_metric_t
67
+ pipeline_build_count: ecs_metric_t
68
+ systems_ran: ecs_metric_t
69
+ observers_ran: ecs_metric_t
70
+ event_emit_count: ecs_metric_t
71
+
72
+ struct ecs_world_stats_t_performance:
73
+ world_time_raw: ecs_metric_t
74
+ world_time: ecs_metric_t
75
+ frame_time: ecs_metric_t
76
+ system_time: ecs_metric_t
77
+ emit_time: ecs_metric_t
78
+ merge_time: ecs_metric_t
79
+ rematch_time: ecs_metric_t
80
+ fps: ecs_metric_t
81
+ delta_time: ecs_metric_t
82
+
83
+ struct ecs_world_stats_t_memory:
84
+ alloc_count: ecs_metric_t
85
+ realloc_count: ecs_metric_t
86
+ free_count: ecs_metric_t
87
+ outstanding_alloc_count: ecs_metric_t
88
+ block_alloc_count: ecs_metric_t
89
+ block_free_count: ecs_metric_t
90
+ block_outstanding_alloc_count: ecs_metric_t
91
+ stack_alloc_count: ecs_metric_t
92
+ stack_free_count: ecs_metric_t
93
+ stack_outstanding_alloc_count: ecs_metric_t
94
+
95
+ struct ecs_world_stats_t_http:
96
+ request_received_count: ecs_metric_t
97
+ request_invalid_count: ecs_metric_t
98
+ request_handled_ok_count: ecs_metric_t
99
+ request_handled_error_count: ecs_metric_t
100
+ request_not_handled_count: ecs_metric_t
101
+ request_preflight_count: ecs_metric_t
102
+ send_ok_count: ecs_metric_t
103
+ send_error_count: ecs_metric_t
104
+ busy_count: ecs_metric_t
105
+
106
+ union ecs_meta_op_t_is:
107
+ members: ptr[ecs_hashmap_t]
108
+ constants: ptr[ecs_map_t]
109
+ opaque_: fn(arg0: const_ptr[ecs_serializer_t], arg1: const_ptr[void]) -> int
110
+
111
+ opaque ecs_event_id_record_t = c"struct ecs_event_id_record_t"
112
+ opaque ecs_query_var_t = c"struct ecs_query_var_t"
113
+ opaque ecs_query_op_t = c"struct ecs_query_op_t"
114
+ opaque ecs_query_op_ctx_t = c"struct ecs_query_op_ctx_t"
115
+ opaque va_list = c"va_list"
116
+
117
+ type ecs_flags8_t = ubyte
118
+ type ecs_flags16_t = ushort
119
+ type ecs_flags32_t = uint
120
+ type ecs_flags64_t = ptr_uint
121
+ type ecs_size_t = int
122
+ type ecs_id_t = ptr_uint
123
+ type ecs_entity_t = ptr_uint
124
+
125
+ struct ecs_type_t:
126
+ array: ptr[ecs_id_t]
127
+ count: int
128
+
129
+ opaque ecs_world_t = c"ecs_world_t"
130
+ opaque ecs_stage_t = c"ecs_stage_t"
131
+ opaque ecs_table_t = c"ecs_table_t"
132
+ opaque ecs_component_record_t = c"ecs_component_record_t"
133
+
134
+ type ecs_poly_t = void
135
+
136
+ opaque ecs_mixins_t = c"ecs_mixins_t"
137
+
138
+ struct ecs_header_t:
139
+ type_: int
140
+ refcount: int
141
+ mixins: ptr[ecs_mixins_t]
142
+
143
+ struct ecs_vec_t:
144
+ array: ptr[void]
145
+ count: int
146
+ size: int
147
+
148
+ external function ecs_vec_init(allocator: ptr[ecs_allocator_t], vec: ptr[ecs_vec_t], size: int, elem_count: int) -> void
149
+ external function ecs_vec_init_w_dbg_info(allocator: ptr[ecs_allocator_t], vec: ptr[ecs_vec_t], size: int, elem_count: int, type_name: cstr) -> void
150
+ external function ecs_vec_init_if(vec: ptr[ecs_vec_t], size: int) -> void
151
+ external function ecs_vec_fini(allocator: ptr[ecs_allocator_t], vec: ptr[ecs_vec_t], size: int) -> void
152
+ external function ecs_vec_reset(allocator: ptr[ecs_allocator_t], vec: ptr[ecs_vec_t], size: int) -> ptr[ecs_vec_t]
153
+ external function ecs_vec_clear(vec: ptr[ecs_vec_t]) -> void
154
+ external function ecs_vec_append(allocator: ptr[ecs_allocator_t], vec: ptr[ecs_vec_t], size: int) -> ptr[void]
155
+ external function ecs_vec_remove(vec: ptr[ecs_vec_t], size: int, elem: int) -> void
156
+ external function ecs_vec_remove_ordered(v: ptr[ecs_vec_t], size: int, index: int) -> void
157
+ external function ecs_vec_remove_last(vec: ptr[ecs_vec_t]) -> void
158
+ external function ecs_vec_copy(allocator: ptr[ecs_allocator_t], vec: const_ptr[ecs_vec_t], size: int) -> ecs_vec_t
159
+ external function ecs_vec_copy_shrink(allocator: ptr[ecs_allocator_t], vec: const_ptr[ecs_vec_t], size: int) -> ecs_vec_t
160
+ external function ecs_vec_reclaim(allocator: ptr[ecs_allocator_t], vec: ptr[ecs_vec_t], size: int) -> void
161
+ external function ecs_vec_set_size(allocator: ptr[ecs_allocator_t], vec: ptr[ecs_vec_t], size: int, elem_count: int) -> void
162
+ external function ecs_vec_set_min_size(allocator: ptr[ecs_allocator_t], vec: ptr[ecs_vec_t], size: int, elem_count: int) -> void
163
+ external function ecs_vec_set_min_size_w_type_info(allocator: ptr[ecs_allocator_t], vec: ptr[ecs_vec_t], size: int, elem_count: int, ti: const_ptr[ecs_type_info_t]) -> void
164
+ external function ecs_vec_set_min_count(allocator: ptr[ecs_allocator_t], vec: ptr[ecs_vec_t], size: int, elem_count: int) -> void
165
+ external function ecs_vec_set_min_count_zeromem(allocator: ptr[ecs_allocator_t], vec: ptr[ecs_vec_t], size: int, elem_count: int) -> void
166
+ external function ecs_vec_set_count(allocator: ptr[ecs_allocator_t], vec: ptr[ecs_vec_t], size: int, elem_count: int) -> void
167
+ external function ecs_vec_set_count_w_type_info(allocator: ptr[ecs_allocator_t], vec: ptr[ecs_vec_t], size: int, elem_count: int, ti: const_ptr[ecs_type_info_t]) -> void
168
+ external function ecs_vec_set_min_count_w_type_info(allocator: ptr[ecs_allocator_t], vec: ptr[ecs_vec_t], size: int, elem_count: int, ti: const_ptr[ecs_type_info_t]) -> void
169
+ external function ecs_vec_grow(allocator: ptr[ecs_allocator_t], vec: ptr[ecs_vec_t], size: int, elem_count: int) -> ptr[void]
170
+ external function ecs_vec_count(vec: const_ptr[ecs_vec_t]) -> int
171
+ external function ecs_vec_size(vec: const_ptr[ecs_vec_t]) -> int
172
+ external function ecs_vec_get(vec: const_ptr[ecs_vec_t], size: int, index: int) -> ptr[void]
173
+ external function ecs_vec_first(vec: const_ptr[ecs_vec_t]) -> ptr[void]
174
+ external function ecs_vec_last(vec: const_ptr[ecs_vec_t], size: int) -> ptr[void]
175
+
176
+ struct ecs_sparse_page_t:
177
+ sparse: ptr[int]
178
+ data: ptr[void]
179
+
180
+ struct ecs_sparse_t:
181
+ dense: ecs_vec_t
182
+ pages: ecs_vec_t
183
+ size: int
184
+ count: int
185
+ max_id: ptr_uint
186
+ allocator: ptr[ecs_allocator_t]
187
+ page_allocator: ptr[ecs_block_allocator_t]
188
+
189
+ external function ecs_sparse_init(sparse: ptr[ecs_sparse_t], elem_size: int) -> void
190
+ external function ecs_sparse_add(sparse: ptr[ecs_sparse_t], elem_size: int) -> ptr[void]
191
+ external function ecs_sparse_last_id(sparse: const_ptr[ecs_sparse_t]) -> ulong
192
+ external function ecs_sparse_count(sparse: const_ptr[ecs_sparse_t]) -> int
193
+ external function ecs_sparse_get_dense(sparse: const_ptr[ecs_sparse_t], elem_size: int, index: int) -> ptr[void]
194
+ external function ecs_sparse_get(sparse: const_ptr[ecs_sparse_t], elem_size: int, id: ptr_uint) -> ptr[void]
195
+
196
+ struct ecs_block_allocator_block_t:
197
+ memory: ptr[void]
198
+ next: ptr[ecs_block_allocator_block_t]
199
+
200
+ struct ecs_block_allocator_chunk_header_t:
201
+ next: ptr[ecs_block_allocator_chunk_header_t]
202
+
203
+ struct ecs_block_allocator_t:
204
+ data_size: int
205
+ chunk_size: int
206
+ chunks_per_block: int
207
+ block_size: int
208
+ head: ptr[ecs_block_allocator_chunk_header_t]
209
+ block_head: ptr[ecs_block_allocator_block_t]
210
+
211
+ struct ecs_stack_page_t:
212
+ data: ptr[void]
213
+ next: ptr[ecs_stack_page_t]
214
+ sp: short
215
+ id: uint
216
+
217
+ struct ecs_stack_cursor_t:
218
+ prev: ptr[ecs_stack_cursor_t]
219
+ page: ptr[ecs_stack_page_t]
220
+ sp: short
221
+ is_free: bool
222
+ owner: ptr[ecs_stack_t]
223
+
224
+ struct ecs_stack_t:
225
+ first: ptr[ecs_stack_page_t]
226
+ tail_page: ptr[ecs_stack_page_t]
227
+ tail_cursor: ptr[ecs_stack_cursor_t]
228
+ cursor_count: int
229
+
230
+ type ecs_map_data_t = ptr_uint
231
+ type ecs_map_key_t = ptr_uint
232
+ type ecs_map_val_t = ptr_uint
233
+
234
+ struct ecs_bucket_entry_t:
235
+ key: ptr_uint
236
+ value: ptr_uint
237
+ next: ptr[ecs_bucket_entry_t]
238
+
239
+ struct ecs_bucket_t:
240
+ first: ptr[ecs_bucket_entry_t]
241
+
242
+ struct ecs_map_t:
243
+ buckets: ptr[ecs_bucket_t]
244
+ bucket_count: int
245
+ count: uint
246
+ bucket_shift: uint
247
+ allocator: ptr[ecs_allocator_t]
248
+ change_count: int
249
+ last_iterated: ptr_uint
250
+
251
+ struct ecs_map_iter_t:
252
+ map: const_ptr[ecs_map_t]
253
+ bucket: ptr[ecs_bucket_t]
254
+ entry: ptr[ecs_bucket_entry_t]
255
+ res: ptr[ecs_map_data_t]
256
+ change_count: int
257
+
258
+ external function ecs_map_init(map: ptr[ecs_map_t], allocator: ptr[ecs_allocator_t]) -> void
259
+ external function ecs_map_init_if(map: ptr[ecs_map_t], allocator: ptr[ecs_allocator_t]) -> void
260
+ external function ecs_map_reclaim(map: ptr[ecs_map_t]) -> void
261
+ external function ecs_map_fini(map: ptr[ecs_map_t]) -> void
262
+ external function ecs_map_get(map: const_ptr[ecs_map_t], key: ptr_uint) -> ptr[ecs_map_val_t]
263
+ external function ecs_map_get_deref_(map: const_ptr[ecs_map_t], key: ptr_uint) -> ptr[void]
264
+ external function ecs_map_ensure(map: ptr[ecs_map_t], key: ptr_uint) -> ptr[ecs_map_val_t]
265
+ external function ecs_map_ensure_alloc(map: ptr[ecs_map_t], elem_size: int, key: ptr_uint) -> ptr[void]
266
+ external function ecs_map_insert(map: ptr[ecs_map_t], key: ptr_uint, value: ptr_uint) -> void
267
+ external function ecs_map_insert_alloc(map: ptr[ecs_map_t], elem_size: int, key: ptr_uint) -> ptr[void]
268
+ external function ecs_map_remove(map: ptr[ecs_map_t], key: ptr_uint) -> ecs_map_val_t
269
+ external function ecs_map_remove_free(map: ptr[ecs_map_t], key: ptr_uint) -> void
270
+ external function ecs_map_clear(map: ptr[ecs_map_t]) -> void
271
+ external function ecs_map_iter(map: const_ptr[ecs_map_t]) -> ecs_map_iter_t
272
+ external function ecs_map_iter_valid(iter: ptr[ecs_map_iter_t]) -> bool
273
+ external function ecs_map_next(iter: ptr[ecs_map_iter_t]) -> bool
274
+ external function ecs_map_copy(dst: ptr[ecs_map_t], src: const_ptr[ecs_map_t]) -> void
275
+
276
+ struct ecs_allocator_t:
277
+ chunks: ecs_block_allocator_t
278
+ sizes: ecs_sparse_t
279
+
280
+ struct ecs_strbuf_list_elem:
281
+ count: int
282
+ separator: cstr
283
+
284
+ struct ecs_strbuf_t:
285
+ content: ptr[char]
286
+ length: int
287
+ size: int
288
+ list_stack: array[ecs_strbuf_list_elem, 32]
289
+ list_sp: int
290
+ small_string: array[char, 512]
291
+
292
+ external function ecs_strbuf_append(buffer: ptr[ecs_strbuf_t], fmt: cstr, ...) -> void
293
+ external function ecs_strbuf_vappend(buffer: ptr[ecs_strbuf_t], fmt: cstr, args: va_list) -> void
294
+ external function ecs_strbuf_appendstr(buffer: ptr[ecs_strbuf_t], str_: cstr) -> void
295
+ external function ecs_strbuf_appendch(buffer: ptr[ecs_strbuf_t], ch: char) -> void
296
+ external function ecs_strbuf_appendint(buffer: ptr[ecs_strbuf_t], v: ptr_int) -> void
297
+ external function ecs_strbuf_appendflt(buffer: ptr[ecs_strbuf_t], v: double, nan_delim: char) -> void
298
+ external function ecs_strbuf_appendbool(buffer: ptr[ecs_strbuf_t], v: bool) -> void
299
+ external function ecs_strbuf_mergebuff(dst_buffer: ptr[ecs_strbuf_t], src_buffer: ptr[ecs_strbuf_t]) -> void
300
+ external function ecs_strbuf_appendstrn(buffer: ptr[ecs_strbuf_t], str_: cstr, n: int) -> void
301
+ external function ecs_strbuf_get(buffer: ptr[ecs_strbuf_t]) -> ptr[char]
302
+ external function ecs_strbuf_get_small(buffer: ptr[ecs_strbuf_t]) -> ptr[char]
303
+ external function ecs_strbuf_reset(buffer: ptr[ecs_strbuf_t]) -> void
304
+ external function ecs_strbuf_list_push(buffer: ptr[ecs_strbuf_t], list_open: cstr, separator: cstr) -> void
305
+ external function ecs_strbuf_list_pop(buffer: ptr[ecs_strbuf_t], list_close: cstr) -> void
306
+ external function ecs_strbuf_list_next(buffer: ptr[ecs_strbuf_t]) -> void
307
+ external function ecs_strbuf_list_appendch(buffer: ptr[ecs_strbuf_t], ch: char) -> void
308
+ external function ecs_strbuf_list_append(buffer: ptr[ecs_strbuf_t], fmt: cstr, ...) -> void
309
+ external function ecs_strbuf_list_appendstr(buffer: ptr[ecs_strbuf_t], str_: cstr) -> void
310
+ external function ecs_strbuf_list_appendstrn(buffer: ptr[ecs_strbuf_t], str_: cstr, n: int) -> void
311
+ external function ecs_strbuf_written(buffer: const_ptr[ecs_strbuf_t]) -> int
312
+
313
+ struct ecs_time_t:
314
+ sec: uint
315
+ nanosec: uint
316
+
317
+ type ecs_os_thread_t = ptr_uint
318
+ type ecs_os_cond_t = ptr_uint
319
+ type ecs_os_mutex_t = ptr_uint
320
+ type ecs_os_dl_t = ptr_uint
321
+ type ecs_os_sock_t = ptr_uint
322
+ type ecs_os_thread_id_t = ptr_uint
323
+ type ecs_os_proc_t = fn() -> void
324
+ type ecs_os_api_init_t = fn() -> void
325
+ type ecs_os_api_fini_t = fn() -> void
326
+ type ecs_os_api_malloc_t = fn(arg0: ecs_size_t) -> ptr[void]
327
+ type ecs_os_api_free_t = fn(arg0: ptr[void]) -> void
328
+ type ecs_os_api_realloc_t = fn(arg0: ptr[void], arg1: ecs_size_t) -> ptr[void]
329
+ type ecs_os_api_calloc_t = fn(arg0: ecs_size_t) -> ptr[void]
330
+ type ecs_os_api_strdup_t = fn(arg0: cstr) -> ptr[char]
331
+ type ecs_os_thread_callback_t = fn(arg0: ptr[void]) -> ptr[void]
332
+ type ecs_os_api_thread_new_t = fn(arg0: ecs_os_thread_callback_t, arg1: ptr[void]) -> ecs_os_thread_t
333
+ type ecs_os_api_thread_join_t = fn(arg0: ecs_os_thread_t) -> ptr[void]
334
+ type ecs_os_api_thread_self_t = fn() -> ecs_os_thread_id_t
335
+ type ecs_os_api_task_new_t = fn(arg0: ecs_os_thread_callback_t, arg1: ptr[void]) -> ecs_os_thread_t
336
+ type ecs_os_api_task_join_t = fn(arg0: ecs_os_thread_t) -> ptr[void]
337
+ type ecs_os_api_ainc_t = fn(arg0: ptr[int]) -> int
338
+ type ecs_os_api_lainc_t = fn(arg0: ptr[long]) -> long
339
+ type ecs_os_api_mutex_new_t = fn() -> ecs_os_mutex_t
340
+ type ecs_os_api_mutex_lock_t = fn(arg0: ecs_os_mutex_t) -> void
341
+ type ecs_os_api_mutex_unlock_t = fn(arg0: ecs_os_mutex_t) -> void
342
+ type ecs_os_api_mutex_free_t = fn(arg0: ecs_os_mutex_t) -> void
343
+ type ecs_os_api_cond_new_t = fn() -> ecs_os_cond_t
344
+ type ecs_os_api_cond_free_t = fn(arg0: ecs_os_cond_t) -> void
345
+ type ecs_os_api_cond_signal_t = fn(arg0: ecs_os_cond_t) -> void
346
+ type ecs_os_api_cond_broadcast_t = fn(arg0: ecs_os_cond_t) -> void
347
+ type ecs_os_api_cond_wait_t = fn(arg0: ecs_os_cond_t, arg1: ecs_os_mutex_t) -> void
348
+ type ecs_os_api_sleep_t = fn(arg0: int, arg1: int) -> void
349
+ type ecs_os_api_enable_high_timer_resolution_t = fn(arg0: bool) -> void
350
+ type ecs_os_api_get_time_t = fn(arg0: ptr[ecs_time_t]) -> void
351
+ type ecs_os_api_now_t = fn() -> ulong
352
+ type ecs_os_api_log_t = fn(arg0: int, arg1: cstr, arg2: int, arg3: cstr) -> void
353
+ type ecs_os_api_abort_t = fn() -> void
354
+ type ecs_os_api_dlopen_t = fn(arg0: cstr) -> ecs_os_dl_t
355
+ type ecs_os_api_dlproc_t = fn(arg0: ecs_os_dl_t, arg1: cstr) -> ecs_os_proc_t
356
+ type ecs_os_api_dlclose_t = fn(arg0: ecs_os_dl_t) -> void
357
+ type ecs_os_api_module_to_path_t = fn(arg0: cstr) -> ptr[char]
358
+ type ecs_os_api_fopen_t = fn(arg0: cstr, arg1: cstr) -> ptr[void]
359
+ type ecs_os_api_fclose_t = fn(arg0: ptr[void]) -> void
360
+ type ecs_os_api_perf_trace_t = fn(arg0: cstr, arg1: ptr_uint, arg2: cstr) -> void
361
+
362
+ struct ecs_os_api_t:
363
+ init_: fn() -> void
364
+ fini_: fn() -> void
365
+ malloc_: fn(arg0: ecs_size_t) -> ptr[void]
366
+ realloc_: fn(arg0: ptr[void], arg1: ecs_size_t) -> ptr[void]
367
+ calloc_: fn(arg0: ecs_size_t) -> ptr[void]
368
+ free_: fn(arg0: ptr[void]) -> void
369
+ strdup_: fn(arg0: cstr) -> ptr[char]
370
+ thread_new_: fn(arg0: ecs_os_thread_callback_t, arg1: ptr[void]) -> ecs_os_thread_t
371
+ thread_join_: fn(arg0: ecs_os_thread_t) -> ptr[void]
372
+ thread_self_: fn() -> ecs_os_thread_id_t
373
+ task_new_: fn(arg0: ecs_os_thread_callback_t, arg1: ptr[void]) -> ecs_os_thread_t
374
+ task_join_: fn(arg0: ecs_os_thread_t) -> ptr[void]
375
+ ainc_: fn(arg0: ptr[int]) -> int
376
+ adec_: fn(arg0: ptr[int]) -> int
377
+ lainc_: fn(arg0: ptr[long]) -> long
378
+ ladec_: fn(arg0: ptr[long]) -> long
379
+ mutex_new_: fn() -> ecs_os_mutex_t
380
+ mutex_free_: fn(arg0: ecs_os_mutex_t) -> void
381
+ mutex_lock_: fn(arg0: ecs_os_mutex_t) -> void
382
+ mutex_unlock_: fn(arg0: ecs_os_mutex_t) -> void
383
+ cond_new_: fn() -> ecs_os_cond_t
384
+ cond_free_: fn(arg0: ecs_os_cond_t) -> void
385
+ cond_signal_: fn(arg0: ecs_os_cond_t) -> void
386
+ cond_broadcast_: fn(arg0: ecs_os_cond_t) -> void
387
+ cond_wait_: fn(arg0: ecs_os_cond_t, arg1: ecs_os_mutex_t) -> void
388
+ sleep_: fn(arg0: int, arg1: int) -> void
389
+ now_: fn() -> ulong
390
+ get_time_: fn(arg0: ptr[ecs_time_t]) -> void
391
+ log_: fn(arg0: int, arg1: cstr, arg2: int, arg3: cstr) -> void
392
+ abort_: fn() -> void
393
+ dlopen_: fn(arg0: cstr) -> ecs_os_dl_t
394
+ dlproc_: fn(arg0: ecs_os_dl_t, arg1: cstr) -> ecs_os_proc_t
395
+ dlclose_: fn(arg0: ecs_os_dl_t) -> void
396
+ module_to_dl_: fn(arg0: cstr) -> ptr[char]
397
+ module_to_etc_: fn(arg0: cstr) -> ptr[char]
398
+ fopen_: fn(arg0: cstr, arg1: cstr) -> ptr[ptr[void]]
399
+ fclose_: fn(arg0: ptr[ptr[void]]) -> void
400
+ perf_trace_push_: fn(arg0: cstr, arg1: ptr_uint, arg2: cstr) -> void
401
+ perf_trace_pop_: fn(arg0: cstr, arg1: ptr_uint, arg2: cstr) -> void
402
+ log_level_: int
403
+ log_indent_: int
404
+ log_last_error_: int
405
+ log_last_timestamp_: ptr_int
406
+ flags_: uint
407
+ log_out_: ptr[void]
408
+
409
+ external function ecs_os_init() -> void
410
+ external function ecs_os_fini() -> void
411
+ external function ecs_os_set_api(os_api: ptr[ecs_os_api_t]) -> void
412
+ external function ecs_os_get_api() -> ecs_os_api_t
413
+ external function ecs_os_set_api_defaults() -> void
414
+ external function ecs_os_dbg(file: cstr, line: int, msg: cstr) -> void
415
+ external function ecs_os_trace(file: cstr, line: int, msg: cstr) -> void
416
+ external function ecs_os_warn(file: cstr, line: int, msg: cstr) -> void
417
+ external function ecs_os_err(file: cstr, line: int, msg: cstr) -> void
418
+ external function ecs_os_fatal(file: cstr, line: int, msg: cstr) -> void
419
+ external function ecs_os_strerror(err: int) -> cstr
420
+ external function ecs_os_strset(str_: ptr[ptr[char]], value: cstr) -> void
421
+ external function ecs_os_perf_trace_push_(file: cstr, line: ptr_uint, name: cstr) -> void
422
+ external function ecs_os_perf_trace_pop_(file: cstr, line: ptr_uint, name: cstr) -> void
423
+ external function ecs_sleepf(t: double) -> void
424
+ external function ecs_time_measure(start: ptr[ecs_time_t]) -> double
425
+ external function ecs_time_sub(t1: ecs_time_t, t2: ecs_time_t) -> ecs_time_t
426
+ external function ecs_time_to_double(t: ecs_time_t) -> double
427
+ external function ecs_os_memdup(src: const_ptr[void], size: int) -> ptr[void]
428
+ external function ecs_os_has_heap() -> bool
429
+ external function ecs_os_has_threading() -> bool
430
+ external function ecs_os_has_task_support() -> bool
431
+ external function ecs_os_has_time() -> bool
432
+ external function ecs_os_has_logging() -> bool
433
+ external function ecs_os_has_dl() -> bool
434
+ external function ecs_os_has_modules() -> bool
435
+
436
+ type ecs_run_action_t = fn(arg0: ptr[ecs_iter_t]) -> void
437
+ type ecs_iter_action_t = fn(arg0: ptr[ecs_iter_t]) -> void
438
+ type ecs_iter_next_action_t = fn(arg0: ptr[ecs_iter_t]) -> bool
439
+ type ecs_iter_fini_action_t = fn(arg0: ptr[ecs_iter_t]) -> void
440
+ type ecs_order_by_action_t = fn(arg0: ecs_entity_t, arg1: const_ptr[void], arg2: ecs_entity_t, arg3: const_ptr[void]) -> int
441
+ type ecs_sort_table_action_t = fn(arg0: ptr[ecs_world_t], arg1: ptr[ecs_table_t], arg2: ptr[ecs_entity_t], arg3: ptr[void], arg4: int, arg5: int, arg6: int, arg7: ecs_order_by_action_t) -> void
442
+ type ecs_group_by_action_t = fn(arg0: ptr[ecs_world_t], arg1: ptr[ecs_table_t], arg2: ecs_id_t, arg3: ptr[void]) -> ulong
443
+ type ecs_group_create_action_t = fn(arg0: ptr[ecs_world_t], arg1: ulong, arg2: ptr[void]) -> ptr[void]
444
+ type ecs_group_delete_action_t = fn(arg0: ptr[ecs_world_t], arg1: ulong, arg2: ptr[void], arg3: ptr[void]) -> void
445
+ type ecs_module_action_t = fn(arg0: ptr[ecs_world_t]) -> void
446
+ type ecs_fini_action_t = fn(arg0: ptr[ecs_world_t], arg1: ptr[void]) -> void
447
+ type ecs_ctx_free_t = fn(arg0: ptr[void]) -> void
448
+ type ecs_compare_action_t = fn(arg0: const_ptr[void], arg1: const_ptr[void]) -> int
449
+ type ecs_hash_value_action_t = fn(arg0: const_ptr[void]) -> ulong
450
+ type ecs_xtor_t = fn(arg0: ptr[void], arg1: int, arg2: const_ptr[ecs_type_info_t]) -> void
451
+ type ecs_copy_t = fn(arg0: ptr[void], arg1: const_ptr[void], arg2: int, arg3: const_ptr[ecs_type_info_t]) -> void
452
+ type ecs_move_t = fn(arg0: ptr[void], arg1: ptr[void], arg2: int, arg3: const_ptr[ecs_type_info_t]) -> void
453
+ type ecs_cmp_t = fn(arg0: const_ptr[void], arg1: const_ptr[void], arg2: const_ptr[ecs_type_info_t]) -> int
454
+ type ecs_equals_t = fn(arg0: const_ptr[void], arg1: const_ptr[void], arg2: const_ptr[ecs_type_info_t]) -> bool
455
+
456
+ enum ecs_inout_kind_t: int
457
+ EcsInOutDefault = 0
458
+ EcsInOutNone = 1
459
+ EcsInOutFilter = 2
460
+ EcsInOut = 3
461
+ EcsIn = 4
462
+ EcsOut = 5
463
+
464
+ enum ecs_oper_kind_t: int
465
+ EcsAnd = 0
466
+ EcsOr = 1
467
+ EcsNot = 2
468
+ EcsOptional = 3
469
+ EcsAndFrom = 4
470
+ EcsOrFrom = 5
471
+ EcsNotFrom = 6
472
+
473
+ enum ecs_query_cache_kind_t: int
474
+ EcsQueryCacheDefault = 0
475
+ EcsQueryCacheAuto = 1
476
+ EcsQueryCacheAll = 2
477
+ EcsQueryCacheNone = 3
478
+
479
+ struct ecs_term_ref_t:
480
+ id: ptr_uint
481
+ name: cstr
482
+
483
+ struct ecs_term_t:
484
+ id: ptr_uint
485
+ src: ecs_term_ref_t
486
+ first: ecs_term_ref_t
487
+ second: ecs_term_ref_t
488
+ trav: ptr_uint
489
+ inout_: short
490
+ oper: short
491
+ field_index: byte
492
+ flags_: ushort
493
+
494
+ struct ecs_query_t:
495
+ hdr: ecs_header_t
496
+ terms: ptr[ecs_term_t]
497
+ sizes: ptr[int]
498
+ ids: ptr[ecs_id_t]
499
+ bloom_filter: ptr_uint
500
+ flags_: uint
501
+ var_count: byte
502
+ term_count: byte
503
+ field_count: byte
504
+ fixed_fields: uint
505
+ var_fields: uint
506
+ static_id_fields: uint
507
+ data_fields: uint
508
+ write_fields: uint
509
+ read_fields: uint
510
+ row_fields: uint
511
+ shared_readonly_fields: uint
512
+ set_fields: uint
513
+ cache_kind: ecs_query_cache_kind_t
514
+ vars: ptr[ptr[char]]
515
+ ctx: ptr[void]
516
+ binding_ctx: ptr[void]
517
+ entity: ptr_uint
518
+ real_world: ptr[ecs_world_t]
519
+ world: ptr[ecs_world_t]
520
+ eval_count: int
521
+
522
+ struct ecs_observer_t:
523
+ hdr: ecs_header_t
524
+ query: ptr[ecs_query_t]
525
+ events: array[ecs_entity_t, 8]
526
+ event_count: int
527
+ callback: fn(arg0: ptr[ecs_iter_t]) -> void
528
+ run: fn(arg0: ptr[ecs_iter_t]) -> void
529
+ ctx: ptr[void]
530
+ callback_ctx: ptr[void]
531
+ run_ctx: ptr[void]
532
+ ctx_free: fn(arg0: ptr[void]) -> void
533
+ callback_ctx_free: fn(arg0: ptr[void]) -> void
534
+ run_ctx_free: fn(arg0: ptr[void]) -> void
535
+ observable: ptr[ecs_observable_t]
536
+ world: ptr[ecs_world_t]
537
+ entity: ptr_uint
538
+
539
+ struct ecs_type_hooks_t:
540
+ ctor: fn(arg0: ptr[void], arg1: int, arg2: const_ptr[ecs_type_info_t]) -> void
541
+ dtor: fn(arg0: ptr[void], arg1: int, arg2: const_ptr[ecs_type_info_t]) -> void
542
+ copy: fn(arg0: ptr[void], arg1: const_ptr[void], arg2: int, arg3: const_ptr[ecs_type_info_t]) -> void
543
+ move: fn(arg0: ptr[void], arg1: ptr[void], arg2: int, arg3: const_ptr[ecs_type_info_t]) -> void
544
+ copy_ctor: fn(arg0: ptr[void], arg1: const_ptr[void], arg2: int, arg3: const_ptr[ecs_type_info_t]) -> void
545
+ move_ctor: fn(arg0: ptr[void], arg1: ptr[void], arg2: int, arg3: const_ptr[ecs_type_info_t]) -> void
546
+ ctor_move_dtor: fn(arg0: ptr[void], arg1: ptr[void], arg2: int, arg3: const_ptr[ecs_type_info_t]) -> void
547
+ move_dtor: fn(arg0: ptr[void], arg1: ptr[void], arg2: int, arg3: const_ptr[ecs_type_info_t]) -> void
548
+ cmp: fn(arg0: const_ptr[void], arg1: const_ptr[void], arg2: const_ptr[ecs_type_info_t]) -> int
549
+ equals: fn(arg0: const_ptr[void], arg1: const_ptr[void], arg2: const_ptr[ecs_type_info_t]) -> bool
550
+ flags_: uint
551
+ on_add: fn(arg0: ptr[ecs_iter_t]) -> void
552
+ on_set: fn(arg0: ptr[ecs_iter_t]) -> void
553
+ on_remove: fn(arg0: ptr[ecs_iter_t]) -> void
554
+ on_replace: fn(arg0: ptr[ecs_iter_t]) -> void
555
+ ctx: ptr[void]
556
+ binding_ctx: ptr[void]
557
+ lifecycle_ctx: ptr[void]
558
+ ctx_free: fn(arg0: ptr[void]) -> void
559
+ binding_ctx_free: fn(arg0: ptr[void]) -> void
560
+ lifecycle_ctx_free: fn(arg0: ptr[void]) -> void
561
+
562
+ struct ecs_type_info_t:
563
+ size: int
564
+ alignment: int
565
+ hooks: ecs_type_hooks_t
566
+ component: ptr_uint
567
+ name: cstr
568
+
569
+ opaque ecs_data_t = c"ecs_data_t"
570
+ opaque ecs_query_cache_match_t = c"ecs_query_cache_match_t"
571
+ opaque ecs_query_cache_group_t = c"ecs_query_cache_group_t"
572
+
573
+ struct ecs_event_record_t:
574
+ any: ptr[ecs_event_id_record_t]
575
+ wildcard: ptr[ecs_event_id_record_t]
576
+ wildcard_pair: ptr[ecs_event_id_record_t]
577
+ event_ids: ecs_map_t
578
+ event_: ptr_uint
579
+
580
+ struct ecs_observable_t:
581
+ on_add: ecs_event_record_t
582
+ on_remove: ecs_event_record_t
583
+ on_set: ecs_event_record_t
584
+ on_wildcard: ecs_event_record_t
585
+ events: ecs_sparse_t
586
+ global_observers: ecs_vec_t
587
+ last_observer_id: ptr_uint
588
+
589
+ struct ecs_table_range_t:
590
+ table: ptr[ecs_table_t]
591
+ offset: int
592
+ count: int
593
+
594
+ struct ecs_var_t:
595
+ range: ecs_table_range_t
596
+ entity: ptr_uint
597
+
598
+ struct ecs_ref_t:
599
+ entity: ptr_uint
600
+ table_id: ptr_uint
601
+ table_version_fast: uint
602
+ table_version: ushort
603
+ ptr: ptr[void]
604
+ id: ptr_uint
605
+
606
+ struct ecs_page_iter_t:
607
+ offset: int
608
+ limit: int
609
+ remaining: int
610
+
611
+ struct ecs_worker_iter_t:
612
+ index: int
613
+ count: int
614
+
615
+ struct ecs_table_cache_iter_t:
616
+ cur: const_ptr[ecs_table_cache_hdr_t]
617
+ next: const_ptr[ecs_table_cache_hdr_t]
618
+ iter_fill: bool
619
+ iter_empty: bool
620
+
621
+ struct ecs_each_iter_t:
622
+ it: ecs_table_cache_iter_t
623
+ ids: ptr_uint
624
+ sources: ptr_uint
625
+ sizes: int
626
+ columns: short
627
+ trs: const_ptr[ecs_table_record_t]
628
+
629
+ struct ecs_query_op_profile_t:
630
+ count: array[int, 2]
631
+
632
+ struct ecs_query_iter_t:
633
+ vars: ptr[ecs_var_t]
634
+ query_vars: const_ptr[ecs_query_var_t]
635
+ ops: const_ptr[ecs_query_op_t]
636
+ op_ctx: ptr[ecs_query_op_ctx_t]
637
+ written: ptr[ulong]
638
+ group: ptr[ecs_query_cache_group_t]
639
+ tables: ptr[ecs_vec_t]
640
+ all_tables: ptr[ecs_vec_t]
641
+ elem: ptr[ecs_query_cache_match_t]
642
+ cur: int
643
+ all_cur: int
644
+ profile: ptr[ecs_query_op_profile_t]
645
+ op: short
646
+ iter_single_group: bool
647
+
648
+ struct ecs_iter_private_t:
649
+ iter: ecs_iter_private_t_iter
650
+ entity_iter: ptr[void]
651
+ stack_cursor: ptr[ecs_stack_cursor_t]
652
+
653
+ struct ecs_commands_t:
654
+ queue: ecs_vec_t
655
+ stack: ecs_stack_t
656
+ entries: ecs_sparse_t
657
+
658
+ struct ecs_suspend_readonly_state_t:
659
+ is_readonly: bool
660
+ is_deferred: bool
661
+ cmd_flushing: bool
662
+ defer_count: int
663
+ scope: ptr_uint
664
+ with: ptr_uint
665
+ cmd_stack: array[ecs_commands_t, 2]
666
+ cmd: ptr[ecs_commands_t]
667
+ stage: ptr[ecs_stage_t]
668
+
669
+ struct ecs_hm_bucket_t:
670
+ keys: ecs_vec_t
671
+ values: ecs_vec_t
672
+
673
+ struct ecs_hashmap_t:
674
+ hash: fn(arg0: const_ptr[void]) -> ulong
675
+ compare: fn(arg0: const_ptr[void], arg1: const_ptr[void]) -> int
676
+ key_size: int
677
+ value_size: int
678
+ impl: ecs_map_t
679
+
680
+ struct ecs_record_t:
681
+ table: ptr[ecs_table_t]
682
+ row: uint
683
+ dense: int
684
+
685
+ struct ecs_table_cache_hdr_t:
686
+ cr: ptr[ecs_component_record_t]
687
+ table: ptr[ecs_table_t]
688
+ prev: ptr[ecs_table_cache_hdr_t]
689
+ next: ptr[ecs_table_cache_hdr_t]
690
+
691
+ struct ecs_table_record_t:
692
+ hdr: ecs_table_cache_hdr_t
693
+ index: short
694
+ count: short
695
+ column: short
696
+
697
+ struct ecs_table_diff_t:
698
+ added: ecs_type_t
699
+ removed: ecs_type_t
700
+ added_flags: uint
701
+ removed_flags: uint
702
+
703
+ struct ecs_parent_record_t:
704
+ entity: uint
705
+ count: int
706
+
707
+ external function ecs_record_find(world: const_ptr[ecs_world_t], entity: ptr_uint) -> ptr[ecs_record_t]
708
+ external function ecs_record_get_entity(record: const_ptr[ecs_record_t]) -> ecs_entity_t
709
+ external function ecs_write_begin(world: ptr[ecs_world_t], entity: ptr_uint) -> ptr[ecs_record_t]
710
+ external function ecs_write_end(record: ptr[ecs_record_t]) -> void
711
+ external function ecs_read_begin(world: ptr[ecs_world_t], entity: ptr_uint) -> const_ptr[ecs_record_t]
712
+ external function ecs_read_end(record: const_ptr[ecs_record_t]) -> void
713
+ external function ecs_record_get_id(world: const_ptr[ecs_world_t], record: const_ptr[ecs_record_t], id: ptr_uint) -> const_ptr[void]
714
+ external function ecs_record_ensure_id(world: ptr[ecs_world_t], record: ptr[ecs_record_t], id: ptr_uint) -> ptr[void]
715
+ external function ecs_record_has_id(world: ptr[ecs_world_t], record: const_ptr[ecs_record_t], id: ptr_uint) -> bool
716
+ external function ecs_record_get_by_column(record: const_ptr[ecs_record_t], column: int, size: ptr_uint) -> ptr[void]
717
+
718
+ struct ecs_table_records_t:
719
+ array: const_ptr[ecs_table_record_t]
720
+ count: int
721
+
722
+ struct ecs_value_t:
723
+ type_: ptr_uint
724
+ ptr: ptr[void]
725
+
726
+ struct ecs_entity_desc_t:
727
+ _canary: int
728
+ id: ptr_uint
729
+ parent: ptr_uint
730
+ name: cstr
731
+ sep: cstr
732
+ root_sep: cstr
733
+ symbol: cstr
734
+ use_low_id: bool
735
+ add: const_ptr[ecs_id_t]
736
+ set: const_ptr[ecs_value_t]
737
+ add_expr: cstr
738
+
739
+ struct ecs_bulk_desc_t:
740
+ _canary: int
741
+ entities: ptr[ecs_entity_t]
742
+ count: int
743
+ ids: array[ecs_id_t, 32]
744
+ data: ptr[ptr[void]]
745
+ table: ptr[ecs_table_t]
746
+
747
+ struct ecs_component_desc_t:
748
+ _canary: int
749
+ entity: ptr_uint
750
+ type_: ecs_type_info_t
751
+
752
+ struct ecs_iter_t:
753
+ world: ptr[ecs_world_t]
754
+ real_world: ptr[ecs_world_t]
755
+ offset: int
756
+ count: int
757
+ entities: const_ptr[ecs_entity_t]
758
+ ptrs: ptr[ptr[void]]
759
+ trs: ptr[const_ptr[ecs_table_record_t]]
760
+ columns: const_ptr[short]
761
+ sizes: const_ptr[ecs_size_t]
762
+ table: ptr[ecs_table_t]
763
+ other_table: ptr[ecs_table_t]
764
+ ids: ptr[ecs_id_t]
765
+ sources: ptr[ecs_entity_t]
766
+ constrained_vars: ptr_uint
767
+ set_fields: uint
768
+ ref_fields: uint
769
+ row_fields: uint
770
+ up_fields: uint
771
+ system: ptr_uint
772
+ event_: ptr_uint
773
+ event_id: ptr_uint
774
+ event_cur: int
775
+ field_count: byte
776
+ term_index: byte
777
+ query: const_ptr[ecs_query_t]
778
+ param: ptr[void]
779
+ ctx: ptr[void]
780
+ binding_ctx: ptr[void]
781
+ callback_ctx: ptr[void]
782
+ run_ctx: ptr[void]
783
+ delta_time: float
784
+ delta_system_time: float
785
+ frame_offset: int
786
+ flags_: uint
787
+ interrupted_by: ptr_uint
788
+ priv_: ecs_iter_private_t
789
+ next: fn(arg0: ptr[ecs_iter_t]) -> bool
790
+ callback: fn(arg0: ptr[ecs_iter_t]) -> void
791
+ fini: fn(arg0: ptr[ecs_iter_t]) -> void
792
+ chain_it: ptr[ecs_iter_t]
793
+
794
+ struct ecs_query_desc_t:
795
+ _canary: int
796
+ terms: array[ecs_term_t, 32]
797
+ expr: cstr
798
+ cache_kind: ecs_query_cache_kind_t
799
+ flags_: uint
800
+ order_by_callback: fn(arg0: ecs_entity_t, arg1: const_ptr[void], arg2: ecs_entity_t, arg3: const_ptr[void]) -> int
801
+ order_by_table_callback: fn(arg0: ptr[ecs_world_t], arg1: ptr[ecs_table_t], arg2: ptr[ecs_entity_t], arg3: ptr[void], arg4: int, arg5: int, arg6: int, arg7: ecs_order_by_action_t) -> void
802
+ order_by: ptr_uint
803
+ group_by: ptr_uint
804
+ group_by_callback: fn(arg0: ptr[ecs_world_t], arg1: ptr[ecs_table_t], arg2: ecs_id_t, arg3: ptr[void]) -> ulong
805
+ on_group_create: fn(arg0: ptr[ecs_world_t], arg1: ulong, arg2: ptr[void]) -> ptr[void]
806
+ on_group_delete: fn(arg0: ptr[ecs_world_t], arg1: ulong, arg2: ptr[void], arg3: ptr[void]) -> void
807
+ group_by_ctx: ptr[void]
808
+ group_by_ctx_free: fn(arg0: ptr[void]) -> void
809
+ ctx: ptr[void]
810
+ binding_ctx: ptr[void]
811
+ ctx_free: fn(arg0: ptr[void]) -> void
812
+ binding_ctx_free: fn(arg0: ptr[void]) -> void
813
+ entity: ptr_uint
814
+
815
+ struct ecs_observer_desc_t:
816
+ _canary: int
817
+ entity: ptr_uint
818
+ query: ecs_query_desc_t
819
+ events: array[ecs_entity_t, 8]
820
+ yield_existing: bool
821
+ global_observer: bool
822
+ callback: fn(arg0: ptr[ecs_iter_t]) -> void
823
+ run: fn(arg0: ptr[ecs_iter_t]) -> void
824
+ ctx: ptr[void]
825
+ ctx_free: fn(arg0: ptr[void]) -> void
826
+ callback_ctx: ptr[void]
827
+ callback_ctx_free: fn(arg0: ptr[void]) -> void
828
+ run_ctx: ptr[void]
829
+ run_ctx_free: fn(arg0: ptr[void]) -> void
830
+ last_event_id: ptr[int]
831
+ term_index_: byte
832
+ flags_: uint
833
+
834
+ struct ecs_event_desc_t:
835
+ event_: ptr_uint
836
+ ids: const_ptr[ecs_type_t]
837
+ table: ptr[ecs_table_t]
838
+ other_table: ptr[ecs_table_t]
839
+ offset: int
840
+ count: int
841
+ entity: ptr_uint
842
+ param: ptr[void]
843
+ const_param: const_ptr[void]
844
+ observable: ptr[ecs_poly_t]
845
+ flags_: uint
846
+
847
+ struct ecs_build_info_t:
848
+ compiler: cstr
849
+ addons: ptr[cstr]
850
+ flags_: ptr[cstr]
851
+ version: cstr
852
+ version_major: short
853
+ version_minor: short
854
+ version_patch: short
855
+ debug: bool
856
+ sanitize: bool
857
+ perf_trace: bool
858
+
859
+ struct ecs_world_info_t:
860
+ last_component_id: ptr_uint
861
+ delta_time_raw: float
862
+ delta_time: float
863
+ time_scale: float
864
+ target_fps: float
865
+ frame_time_total: float
866
+ system_time_total: float
867
+ emit_time_total: float
868
+ merge_time_total: float
869
+ rematch_time_total: float
870
+ world_time_total: double
871
+ world_time_total_raw: double
872
+ frame_count_total: ptr_int
873
+ merge_count_total: ptr_int
874
+ eval_comp_monitors_total: ptr_int
875
+ rematch_count_total: ptr_int
876
+ id_create_total: ptr_int
877
+ id_delete_total: ptr_int
878
+ table_create_total: ptr_int
879
+ table_delete_total: ptr_int
880
+ pipeline_build_count_total: ptr_int
881
+ systems_ran_total: ptr_int
882
+ observers_ran_total: ptr_int
883
+ queries_ran_total: ptr_int
884
+ tag_id_count: int
885
+ component_id_count: int
886
+ pair_id_count: int
887
+ table_count: int
888
+ creation_time: uint
889
+ cmd: ecs_world_info_t_cmd
890
+ name_prefix: cstr
891
+
892
+ struct ecs_query_group_info_t:
893
+ id: ptr_uint
894
+ match_count: int
895
+ table_count: int
896
+ ctx: ptr[void]
897
+
898
+ struct ecs_entity_range_t:
899
+ min: uint
900
+ max: uint
901
+ cur: uint
902
+ recycled: ecs_vec_t
903
+
904
+ struct EcsIdentifier:
905
+ value: ptr[char]
906
+ length: int
907
+ hash: ptr_uint
908
+ index_hash: ptr_uint
909
+ index: ptr[ecs_hashmap_t]
910
+
911
+ struct EcsComponent:
912
+ size: int
913
+ alignment: int
914
+
915
+ struct EcsPoly:
916
+ poly: ptr[ecs_poly_t]
917
+
918
+ struct EcsDefaultChildComponent:
919
+ component: ptr_uint
920
+
921
+ struct EcsParent:
922
+ value: ptr_uint
923
+
924
+ struct ecs_tree_spawner_child_t:
925
+ child_name: cstr
926
+ table: ptr[ecs_table_t]
927
+ child: uint
928
+ parent_index: int
929
+
930
+ struct ecs_tree_spawner_t:
931
+ children: ecs_vec_t
932
+
933
+ struct EcsTreeSpawner:
934
+ data: array[ecs_tree_spawner_t, 6]
935
+
936
+ external function ecs_init() -> ptr[ecs_world_t]
937
+ external function ecs_mini() -> ptr[ecs_world_t]
938
+ external function ecs_init_w_args(argc: int, argv: ptr[ptr[char]]) -> ptr[ecs_world_t]
939
+ external function ecs_fini(world: ptr[ecs_world_t]) -> int
940
+ external function ecs_is_fini(world: const_ptr[ecs_world_t]) -> bool
941
+ external function ecs_atfini(world: ptr[ecs_world_t], action: fn(arg0: ptr[ecs_world_t], arg1: ptr[void]) -> void, ctx: ptr[void]) -> void
942
+
943
+ struct ecs_entities_t:
944
+ ids: const_ptr[ecs_entity_t]
945
+ count: int
946
+ alive_count: int
947
+
948
+ external function ecs_get_entities(world: const_ptr[ecs_world_t]) -> ecs_entities_t
949
+ external function ecs_world_get_flags(world: const_ptr[ecs_world_t]) -> ecs_flags32_t
950
+ external function ecs_frame_begin(world: ptr[ecs_world_t], delta_time: float) -> float
951
+ external function ecs_frame_end(world: ptr[ecs_world_t]) -> void
952
+ external function ecs_run_post_frame(world: ptr[ecs_world_t], action: fn(arg0: ptr[ecs_world_t], arg1: ptr[void]) -> void, ctx: ptr[void]) -> void
953
+ external function ecs_quit(world: ptr[ecs_world_t]) -> void
954
+ external function ecs_should_quit(world: const_ptr[ecs_world_t]) -> bool
955
+ external function ecs_measure_frame_time(world: ptr[ecs_world_t], enable: bool) -> void
956
+ external function ecs_measure_system_time(world: ptr[ecs_world_t], enable: bool) -> void
957
+ external function ecs_set_target_fps(world: ptr[ecs_world_t], fps: float) -> void
958
+ external function ecs_set_default_query_flags(world: ptr[ecs_world_t], flags_: uint) -> void
959
+ external function ecs_readonly_begin(world: ptr[ecs_world_t], multi_threaded: bool) -> bool
960
+ external function ecs_readonly_end(world: ptr[ecs_world_t]) -> void
961
+ external function ecs_merge(stage: ptr[ecs_world_t]) -> void
962
+ external function ecs_defer_begin(world: ptr[ecs_world_t]) -> bool
963
+ external function ecs_defer_end(world: ptr[ecs_world_t]) -> bool
964
+ external function ecs_defer_suspend(world: ptr[ecs_world_t]) -> void
965
+ external function ecs_defer_resume(world: ptr[ecs_world_t]) -> void
966
+ external function ecs_is_deferred(world: const_ptr[ecs_world_t]) -> bool
967
+ external function ecs_is_defer_suspended(world: const_ptr[ecs_world_t]) -> bool
968
+ external function ecs_set_stage_count(world: ptr[ecs_world_t], stages: int) -> void
969
+ external function ecs_get_stage_count(world: const_ptr[ecs_world_t]) -> int
970
+ external function ecs_get_stage(world: const_ptr[ecs_world_t], stage_id: int) -> ptr[ecs_world_t]
971
+ external function ecs_stage_is_readonly(world: const_ptr[ecs_world_t]) -> bool
972
+ external function ecs_stage_new(world: ptr[ecs_world_t]) -> ptr[ecs_world_t]
973
+ external function ecs_stage_free(stage: ptr[ecs_world_t]) -> void
974
+ external function ecs_stage_get_id(world: const_ptr[ecs_world_t]) -> int
975
+ external function ecs_set_ctx(world: ptr[ecs_world_t], ctx: ptr[void], ctx_free: fn(arg0: ptr[void]) -> void) -> void
976
+ external function ecs_set_binding_ctx(world: ptr[ecs_world_t], ctx: ptr[void], ctx_free: fn(arg0: ptr[void]) -> void) -> void
977
+ external function ecs_get_ctx(world: const_ptr[ecs_world_t]) -> ptr[void]
978
+ external function ecs_get_binding_ctx(world: const_ptr[ecs_world_t]) -> ptr[void]
979
+ external function ecs_get_build_info() -> const_ptr[ecs_build_info_t]
980
+ external function ecs_get_world_info(world: const_ptr[ecs_world_t]) -> const_ptr[ecs_world_info_t]
981
+ external function ecs_dim(world: ptr[ecs_world_t], entity_count: int) -> void
982
+ external function ecs_shrink(world: ptr[ecs_world_t]) -> void
983
+ external function ecs_entity_range_new(world: ptr[ecs_world_t], min: uint, max: uint) -> const_ptr[ecs_entity_range_t]
984
+ external function ecs_entity_range_set(world: ptr[ecs_world_t], range: const_ptr[ecs_entity_range_t]) -> void
985
+ external function ecs_entity_range_get(world: const_ptr[ecs_world_t]) -> const_ptr[ecs_entity_range_t]
986
+ external function ecs_get_max_id(world: const_ptr[ecs_world_t]) -> ecs_entity_t
987
+ external function ecs_run_aperiodic(world: ptr[ecs_world_t], flags_: uint) -> void
988
+
989
+ struct ecs_delete_empty_tables_desc_t:
990
+ clear_generation: ushort
991
+ delete_generation: ushort
992
+ time_budget_seconds: double
993
+ offset: int
994
+
995
+ external function ecs_delete_empty_tables(world: ptr[ecs_world_t], desc: const_ptr[ecs_delete_empty_tables_desc_t]) -> int
996
+ external function ecs_get_world(poly: const_ptr[ecs_poly_t]) -> const_ptr[ecs_world_t]
997
+ external function ecs_get_entity(poly: const_ptr[ecs_poly_t]) -> ecs_entity_t
998
+ external function ecs_make_pair(first: ptr_uint, second: ptr_uint) -> ecs_id_t
999
+ external function ecs_exclusive_access_begin(world: ptr[ecs_world_t], thread_name: cstr) -> void
1000
+ external function ecs_exclusive_access_end(world: ptr[ecs_world_t], lock_world: bool) -> void
1001
+ external function ecs_new(world: ptr[ecs_world_t]) -> ecs_entity_t
1002
+ external function ecs_new_low_id(world: ptr[ecs_world_t]) -> ecs_entity_t
1003
+ external function ecs_new_w_id(world: ptr[ecs_world_t], component: ptr_uint) -> ecs_entity_t
1004
+ external function ecs_new_w_table(world: ptr[ecs_world_t], table: ptr[ecs_table_t]) -> ecs_entity_t
1005
+ external function ecs_entity_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_entity_desc_t]) -> ecs_entity_t
1006
+ external function ecs_bulk_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_bulk_desc_t]) -> const_ptr[ecs_entity_t]
1007
+ external function ecs_bulk_new_w_id(world: ptr[ecs_world_t], component: ptr_uint, count: int) -> const_ptr[ecs_entity_t]
1008
+ external function ecs_clone(world: ptr[ecs_world_t], dst: ptr_uint, src: ptr_uint, copy_value: bool) -> ecs_entity_t
1009
+ external function ecs_delete(world: ptr[ecs_world_t], entity: ptr_uint) -> void
1010
+ external function ecs_delete_with(world: ptr[ecs_world_t], component: ptr_uint) -> void
1011
+ external function ecs_set_child_order(world: ptr[ecs_world_t], parent: ptr_uint, children: const_ptr[ecs_entity_t], child_count: int) -> void
1012
+ external function ecs_get_ordered_children(world: const_ptr[ecs_world_t], parent: ptr_uint) -> ecs_entities_t
1013
+ external function ecs_add_id(world: ptr[ecs_world_t], entity: ptr_uint, component: ptr_uint) -> void
1014
+ external function ecs_remove_id(world: ptr[ecs_world_t], entity: ptr_uint, component: ptr_uint) -> void
1015
+ external function ecs_auto_override_id(world: ptr[ecs_world_t], entity: ptr_uint, component: ptr_uint) -> void
1016
+ external function ecs_clear(world: ptr[ecs_world_t], entity: ptr_uint) -> void
1017
+ external function ecs_remove_all(world: ptr[ecs_world_t], component: ptr_uint) -> void
1018
+ external function ecs_set_with(world: ptr[ecs_world_t], component: ptr_uint) -> ecs_entity_t
1019
+ external function ecs_get_with(world: const_ptr[ecs_world_t]) -> ecs_id_t
1020
+ external function ecs_enable(world: ptr[ecs_world_t], entity: ptr_uint, enabled: bool) -> void
1021
+ external function ecs_enable_id(world: ptr[ecs_world_t], entity: ptr_uint, component: ptr_uint, enable: bool) -> void
1022
+ external function ecs_is_enabled_id(world: const_ptr[ecs_world_t], entity: ptr_uint, component: ptr_uint) -> bool
1023
+ external function ecs_get_id(world: const_ptr[ecs_world_t], entity: ptr_uint, component: ptr_uint) -> const_ptr[void]
1024
+ external function ecs_get_mut_id(world: const_ptr[ecs_world_t], entity: ptr_uint, component: ptr_uint) -> ptr[void]
1025
+ external function ecs_ensure_id(world: ptr[ecs_world_t], entity: ptr_uint, component: ptr_uint, size: ptr_uint) -> ptr[void]
1026
+ external function ecs_ref_init_id(world: const_ptr[ecs_world_t], entity: ptr_uint, component: ptr_uint) -> ecs_ref_t
1027
+ external function ecs_ref_get_id(world: const_ptr[ecs_world_t], ref: ptr[ecs_ref_t], component: ptr_uint) -> ptr[void]
1028
+ external function ecs_ref_update(world: const_ptr[ecs_world_t], ref: ptr[ecs_ref_t], component: ptr_uint) -> void
1029
+ external function ecs_emplace_id(world: ptr[ecs_world_t], entity: ptr_uint, component: ptr_uint, size: ptr_uint, is_new: ptr[bool]) -> ptr[void]
1030
+ external function ecs_modified_id(world: ptr[ecs_world_t], entity: ptr_uint, component: ptr_uint) -> void
1031
+ external function ecs_set_id(world: ptr[ecs_world_t], entity: ptr_uint, component: ptr_uint, size: ptr_uint, ptr: const_ptr[void]) -> void
1032
+ external function ecs_is_valid(world: const_ptr[ecs_world_t], e: ptr_uint) -> bool
1033
+ external function ecs_is_alive(world: const_ptr[ecs_world_t], e: ptr_uint) -> bool
1034
+ external function ecs_strip_generation(e: ptr_uint) -> ecs_id_t
1035
+ external function ecs_get_alive(world: const_ptr[ecs_world_t], e: ptr_uint) -> ecs_entity_t
1036
+ external function ecs_make_alive(world: ptr[ecs_world_t], entity: ptr_uint) -> void
1037
+ external function ecs_make_alive_id(world: ptr[ecs_world_t], component: ptr_uint) -> void
1038
+ external function ecs_exists(world: const_ptr[ecs_world_t], entity: ptr_uint) -> bool
1039
+ external function ecs_set_version(world: ptr[ecs_world_t], entity: ptr_uint) -> void
1040
+ external function ecs_get_version(entity: ptr_uint) -> uint
1041
+ external function ecs_get_type(world: const_ptr[ecs_world_t], entity: ptr_uint) -> const_ptr[ecs_type_t]
1042
+ external function ecs_get_table(world: const_ptr[ecs_world_t], entity: ptr_uint) -> ptr[ecs_table_t]
1043
+ external function ecs_type_str(world: const_ptr[ecs_world_t], type_: const_ptr[ecs_type_t]) -> ptr[char]
1044
+ external function ecs_table_str(world: const_ptr[ecs_world_t], table: const_ptr[ecs_table_t]) -> ptr[char]
1045
+ external function ecs_entity_str(world: const_ptr[ecs_world_t], entity: ptr_uint) -> ptr[char]
1046
+ external function ecs_has_id(world: const_ptr[ecs_world_t], entity: ptr_uint, component: ptr_uint) -> bool
1047
+ external function ecs_owns_id(world: const_ptr[ecs_world_t], entity: ptr_uint, component: ptr_uint) -> bool
1048
+ external function ecs_get_target(world: const_ptr[ecs_world_t], entity: ptr_uint, rel: ptr_uint, index: int) -> ecs_entity_t
1049
+ external function ecs_get_parent(world: const_ptr[ecs_world_t], entity: ptr_uint) -> ecs_entity_t
1050
+ external function ecs_new_w_parent(world: ptr[ecs_world_t], parent: ptr_uint, name: cstr) -> ecs_entity_t
1051
+ external function ecs_get_target_for_id(world: const_ptr[ecs_world_t], entity: ptr_uint, rel: ptr_uint, component: ptr_uint) -> ecs_entity_t
1052
+ external function ecs_get_depth(world: const_ptr[ecs_world_t], entity: ptr_uint, rel: ptr_uint) -> int
1053
+ external function ecs_count_id(world: const_ptr[ecs_world_t], entity: ptr_uint) -> int
1054
+ external function ecs_get_name(world: const_ptr[ecs_world_t], entity: ptr_uint) -> cstr
1055
+ external function ecs_get_symbol(world: const_ptr[ecs_world_t], entity: ptr_uint) -> cstr
1056
+ external function ecs_set_name(world: ptr[ecs_world_t], entity: ptr_uint, name: cstr) -> ecs_entity_t
1057
+ external function ecs_set_symbol(world: ptr[ecs_world_t], entity: ptr_uint, symbol: cstr) -> ecs_entity_t
1058
+ external function ecs_set_alias(world: ptr[ecs_world_t], entity: ptr_uint, alias: cstr) -> void
1059
+ external function ecs_lookup(world: const_ptr[ecs_world_t], path: cstr) -> ecs_entity_t
1060
+ external function ecs_lookup_child(world: const_ptr[ecs_world_t], parent: ptr_uint, name: cstr) -> ecs_entity_t
1061
+ external function ecs_lookup_path_w_sep(world: const_ptr[ecs_world_t], parent: ptr_uint, path: cstr, sep: cstr, prefix: cstr, recursive: bool) -> ecs_entity_t
1062
+ external function ecs_lookup_symbol(world: const_ptr[ecs_world_t], symbol: cstr, lookup_as_path: bool, recursive: bool) -> ecs_entity_t
1063
+ external function ecs_get_path_w_sep(world: const_ptr[ecs_world_t], parent: ptr_uint, child: ptr_uint, sep: cstr, prefix: cstr) -> ptr[char]
1064
+ external function ecs_get_path_w_sep_buf(world: const_ptr[ecs_world_t], parent: ptr_uint, child: ptr_uint, sep: cstr, prefix: cstr, buf: ptr[ecs_strbuf_t], escape: bool) -> void
1065
+ external function ecs_new_from_path_w_sep(world: ptr[ecs_world_t], parent: ptr_uint, path: cstr, sep: cstr, prefix: cstr) -> ecs_entity_t
1066
+ external function ecs_add_path_w_sep(world: ptr[ecs_world_t], entity: ptr_uint, parent: ptr_uint, path: cstr, sep: cstr, prefix: cstr) -> ecs_entity_t
1067
+ external function ecs_set_scope(world: ptr[ecs_world_t], scope: ptr_uint) -> ecs_entity_t
1068
+ external function ecs_get_scope(world: const_ptr[ecs_world_t]) -> ecs_entity_t
1069
+ external function ecs_set_name_prefix(world: ptr[ecs_world_t], prefix: cstr) -> cstr
1070
+ external function ecs_set_lookup_path(world: ptr[ecs_world_t], lookup_path: const_ptr[ecs_entity_t]) -> ptr[ecs_entity_t]
1071
+ external function ecs_get_lookup_path(world: const_ptr[ecs_world_t]) -> ptr[ecs_entity_t]
1072
+ external function ecs_component_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_component_desc_t]) -> ecs_entity_t
1073
+ external function ecs_get_type_info(world: const_ptr[ecs_world_t], component: ptr_uint) -> const_ptr[ecs_type_info_t]
1074
+ external function ecs_set_hooks_id(world: ptr[ecs_world_t], component: ptr_uint, hooks: const_ptr[ecs_type_hooks_t]) -> void
1075
+ external function ecs_get_hooks_id(world: const_ptr[ecs_world_t], component: ptr_uint) -> const_ptr[ecs_type_hooks_t]
1076
+ external function ecs_id_is_tag(world: const_ptr[ecs_world_t], component: ptr_uint) -> bool
1077
+ external function ecs_id_in_use(world: const_ptr[ecs_world_t], component: ptr_uint) -> bool
1078
+ external function ecs_get_typeid(world: const_ptr[ecs_world_t], component: ptr_uint) -> ecs_entity_t
1079
+ external function ecs_id_match(component: ptr_uint, pattern: ptr_uint) -> bool
1080
+ external function ecs_id_is_pair(component: ptr_uint) -> bool
1081
+ external function ecs_id_is_wildcard(component: ptr_uint) -> bool
1082
+ external function ecs_id_is_any(component: ptr_uint) -> bool
1083
+ external function ecs_id_is_valid(world: const_ptr[ecs_world_t], component: ptr_uint) -> bool
1084
+ external function ecs_id_get_flags(world: const_ptr[ecs_world_t], component: ptr_uint) -> ecs_flags32_t
1085
+ external function ecs_id_flag_str(component_flags: ptr_uint) -> cstr
1086
+ external function ecs_id_str(world: const_ptr[ecs_world_t], component: ptr_uint) -> ptr[char]
1087
+ external function ecs_id_str_buf(world: const_ptr[ecs_world_t], component: ptr_uint, buf: ptr[ecs_strbuf_t]) -> void
1088
+ external function ecs_id_from_str(world: const_ptr[ecs_world_t], expr: cstr) -> ecs_id_t
1089
+ external function ecs_term_ref_is_set(ref: const_ptr[ecs_term_ref_t]) -> bool
1090
+ external function ecs_term_is_initialized(term: const_ptr[ecs_term_t]) -> bool
1091
+ external function ecs_term_match_this(term: const_ptr[ecs_term_t]) -> bool
1092
+ external function ecs_term_match_0(term: const_ptr[ecs_term_t]) -> bool
1093
+ external function ecs_term_str(world: const_ptr[ecs_world_t], term: const_ptr[ecs_term_t]) -> ptr[char]
1094
+ external function ecs_query_str(query: const_ptr[ecs_query_t]) -> ptr[char]
1095
+ external function ecs_each_id(world: const_ptr[ecs_world_t], component: ptr_uint) -> ecs_iter_t
1096
+ external function ecs_each_next(it: ptr[ecs_iter_t]) -> bool
1097
+ external function ecs_children(world: const_ptr[ecs_world_t], parent: ptr_uint) -> ecs_iter_t
1098
+ external function ecs_children_w_rel(world: const_ptr[ecs_world_t], relationship: ptr_uint, parent: ptr_uint) -> ecs_iter_t
1099
+ external function ecs_children_next(it: ptr[ecs_iter_t]) -> bool
1100
+ external function ecs_query_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_query_desc_t]) -> ptr[ecs_query_t]
1101
+ external function ecs_query_update(world: ptr[ecs_world_t], entity: ptr_uint, desc: const_ptr[ecs_query_desc_t]) -> ptr[ecs_query_t]
1102
+ external function ecs_query_fini(query: ptr[ecs_query_t]) -> void
1103
+ external function ecs_query_find_var(query: const_ptr[ecs_query_t], name: cstr) -> int
1104
+ external function ecs_query_var_name(query: const_ptr[ecs_query_t], var_id: int) -> cstr
1105
+ external function ecs_query_var_is_entity(query: const_ptr[ecs_query_t], var_id: int) -> bool
1106
+ external function ecs_query_iter(world: const_ptr[ecs_world_t], query: const_ptr[ecs_query_t]) -> ecs_iter_t
1107
+ external function ecs_query_next(it: ptr[ecs_iter_t]) -> bool
1108
+ external function ecs_query_has(query: const_ptr[ecs_query_t], entity: ptr_uint, it: ptr[ecs_iter_t]) -> bool
1109
+ external function ecs_query_has_table(query: const_ptr[ecs_query_t], table: ptr[ecs_table_t], it: ptr[ecs_iter_t]) -> bool
1110
+ external function ecs_query_has_range(query: const_ptr[ecs_query_t], range: ptr[ecs_table_range_t], it: ptr[ecs_iter_t]) -> bool
1111
+ external function ecs_query_match_count(query: const_ptr[ecs_query_t]) -> int
1112
+ external function ecs_query_plan(query: const_ptr[ecs_query_t]) -> ptr[char]
1113
+ external function ecs_query_plan_w_profile(query: const_ptr[ecs_query_t], it: const_ptr[ecs_iter_t]) -> ptr[char]
1114
+ external function ecs_query_plans(query: const_ptr[ecs_query_t]) -> ptr[char]
1115
+ external function ecs_query_args_parse(query: ptr[ecs_query_t], it: ptr[ecs_iter_t], expr: cstr) -> cstr
1116
+ external function ecs_query_changed(query: ptr[ecs_query_t]) -> bool
1117
+ external function ecs_query_get(world: const_ptr[ecs_world_t], query: ptr_uint) -> const_ptr[ecs_query_t]
1118
+ external function ecs_iter_skip(it: ptr[ecs_iter_t]) -> void
1119
+ external function ecs_iter_set_group(it: ptr[ecs_iter_t], group_id: ptr_uint) -> void
1120
+ external function ecs_query_get_groups(query: const_ptr[ecs_query_t]) -> const_ptr[ecs_map_t]
1121
+ external function ecs_query_get_group_ctx(query: const_ptr[ecs_query_t], group_id: ptr_uint) -> ptr[void]
1122
+ external function ecs_query_get_group_info(query: const_ptr[ecs_query_t], group_id: ptr_uint) -> const_ptr[ecs_query_group_info_t]
1123
+
1124
+ struct ecs_query_count_t:
1125
+ results: int
1126
+ entities: int
1127
+ tables: int
1128
+
1129
+ external function ecs_query_count(query: const_ptr[ecs_query_t]) -> ecs_query_count_t
1130
+ external function ecs_query_is_true(query: const_ptr[ecs_query_t]) -> bool
1131
+ external function ecs_query_get_cache_query(query: const_ptr[ecs_query_t]) -> const_ptr[ecs_query_t]
1132
+ external function ecs_emit(world: ptr[ecs_world_t], desc: ptr[ecs_event_desc_t]) -> void
1133
+ external function ecs_enqueue(world: ptr[ecs_world_t], desc: ptr[ecs_event_desc_t]) -> void
1134
+ external function ecs_observer_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_observer_desc_t]) -> ecs_entity_t
1135
+ external function ecs_observer_update(world: ptr[ecs_world_t], observer: ptr_uint, desc: const_ptr[ecs_observer_desc_t]) -> ecs_entity_t
1136
+ external function ecs_observer_get(world: const_ptr[ecs_world_t], observer: ptr_uint) -> const_ptr[ecs_observer_t]
1137
+ external function ecs_iter_next(it: ptr[ecs_iter_t]) -> bool
1138
+ external function ecs_iter_fini(it: ptr[ecs_iter_t]) -> void
1139
+ external function ecs_iter_count(it: ptr[ecs_iter_t]) -> int
1140
+ external function ecs_iter_is_true(it: ptr[ecs_iter_t]) -> bool
1141
+ external function ecs_iter_first(it: ptr[ecs_iter_t]) -> ecs_entity_t
1142
+ external function ecs_iter_set_var(it: ptr[ecs_iter_t], var_id: int, entity: ptr_uint) -> void
1143
+ external function ecs_iter_set_var_as_table(it: ptr[ecs_iter_t], var_id: int, table: const_ptr[ecs_table_t]) -> void
1144
+ external function ecs_iter_set_var_as_range(it: ptr[ecs_iter_t], var_id: int, range: const_ptr[ecs_table_range_t]) -> void
1145
+ external function ecs_iter_get_var(it: ptr[ecs_iter_t], var_id: int) -> ecs_entity_t
1146
+ external function ecs_iter_get_var_name(it: const_ptr[ecs_iter_t], var_id: int) -> cstr
1147
+ external function ecs_iter_get_var_count(it: const_ptr[ecs_iter_t]) -> int
1148
+ external function ecs_iter_get_vars(it: const_ptr[ecs_iter_t]) -> ptr[ecs_var_t]
1149
+ external function ecs_iter_get_var_as_table(it: ptr[ecs_iter_t], var_id: int) -> ptr[ecs_table_t]
1150
+ external function ecs_iter_get_var_as_range(it: ptr[ecs_iter_t], var_id: int) -> ecs_table_range_t
1151
+ external function ecs_iter_var_is_constrained(it: ptr[ecs_iter_t], var_id: int) -> bool
1152
+ external function ecs_iter_get_group(it: const_ptr[ecs_iter_t]) -> ulong
1153
+ external function ecs_iter_changed(it: ptr[ecs_iter_t]) -> bool
1154
+ external function ecs_iter_str(it: const_ptr[ecs_iter_t]) -> ptr[char]
1155
+ external function ecs_page_iter(it: const_ptr[ecs_iter_t], offset: int, limit: int) -> ecs_iter_t
1156
+ external function ecs_page_next(it: ptr[ecs_iter_t]) -> bool
1157
+ external function ecs_worker_iter(it: const_ptr[ecs_iter_t], index: int, count: int) -> ecs_iter_t
1158
+ external function ecs_worker_next(it: ptr[ecs_iter_t]) -> bool
1159
+ external function ecs_field_w_size(it: const_ptr[ecs_iter_t], size: ptr_uint, index: byte) -> ptr[void]
1160
+ external function ecs_field_at_w_size(it: const_ptr[ecs_iter_t], size: ptr_uint, index: byte, row: int) -> ptr[void]
1161
+ external function ecs_field_is_readonly(it: const_ptr[ecs_iter_t], index: byte) -> bool
1162
+ external function ecs_field_is_writeonly(it: const_ptr[ecs_iter_t], index: byte) -> bool
1163
+ external function ecs_field_is_set(it: const_ptr[ecs_iter_t], index: byte) -> bool
1164
+ external function ecs_field_id(it: const_ptr[ecs_iter_t], index: byte) -> ecs_id_t
1165
+ external function ecs_field_column(it: const_ptr[ecs_iter_t], index: byte) -> int
1166
+ external function ecs_field_src(it: const_ptr[ecs_iter_t], index: byte) -> ecs_entity_t
1167
+ external function ecs_field_size(it: const_ptr[ecs_iter_t], index: byte) -> ptr_uint
1168
+ external function ecs_field_is_self(it: const_ptr[ecs_iter_t], index: byte) -> bool
1169
+ external function ecs_table_get_type(table: const_ptr[ecs_table_t]) -> const_ptr[ecs_type_t]
1170
+ external function ecs_table_get_type_index(world: const_ptr[ecs_world_t], table: const_ptr[ecs_table_t], component: ptr_uint) -> int
1171
+ external function ecs_table_get_column_index(world: const_ptr[ecs_world_t], table: const_ptr[ecs_table_t], component: ptr_uint) -> int
1172
+ external function ecs_table_column_count(table: const_ptr[ecs_table_t]) -> int
1173
+ external function ecs_table_type_to_column_index(table: const_ptr[ecs_table_t], index: int) -> int
1174
+ external function ecs_table_column_to_type_index(table: const_ptr[ecs_table_t], index: int) -> int
1175
+ external function ecs_table_get_column(table: const_ptr[ecs_table_t], index: int, offset: int) -> ptr[void]
1176
+ external function ecs_table_get_id(world: const_ptr[ecs_world_t], table: const_ptr[ecs_table_t], component: ptr_uint, offset: int) -> ptr[void]
1177
+ external function ecs_table_get_column_size(table: const_ptr[ecs_table_t], index: int) -> ptr_uint
1178
+ external function ecs_table_count(table: const_ptr[ecs_table_t]) -> int
1179
+ external function ecs_table_size(table: const_ptr[ecs_table_t]) -> int
1180
+ external function ecs_table_entities(table: const_ptr[ecs_table_t]) -> const_ptr[ecs_entity_t]
1181
+ external function ecs_table_has_id(world: const_ptr[ecs_world_t], table: const_ptr[ecs_table_t], component: ptr_uint) -> bool
1182
+ external function ecs_table_get_target(world: const_ptr[ecs_world_t], table: const_ptr[ecs_table_t], relationship: ptr_uint, index: int) -> ecs_entity_t
1183
+ external function ecs_table_get_depth(world: const_ptr[ecs_world_t], table: const_ptr[ecs_table_t], rel: ptr_uint) -> int
1184
+ external function ecs_table_add_id(world: ptr[ecs_world_t], table: ptr[ecs_table_t], component: ptr_uint) -> ptr[ecs_table_t]
1185
+ external function ecs_table_find(world: ptr[ecs_world_t], ids: const_ptr[ecs_id_t], id_count: int) -> ptr[ecs_table_t]
1186
+ external function ecs_table_remove_id(world: ptr[ecs_world_t], table: ptr[ecs_table_t], component: ptr_uint) -> ptr[ecs_table_t]
1187
+ external function ecs_table_lock(world: ptr[ecs_world_t], table: ptr[ecs_table_t]) -> void
1188
+ external function ecs_table_unlock(world: ptr[ecs_world_t], table: ptr[ecs_table_t]) -> void
1189
+ external function ecs_table_has_flags(table: ptr[ecs_table_t], flags_: uint) -> bool
1190
+ external function ecs_table_has_traversable(table: const_ptr[ecs_table_t]) -> bool
1191
+ external function ecs_table_swap_rows(world: ptr[ecs_world_t], table: ptr[ecs_table_t], row_1: int, row_2: int) -> void
1192
+ external function ecs_commit(world: ptr[ecs_world_t], entity: ptr_uint, record: ptr[ecs_record_t], table: ptr[ecs_table_t], added: const_ptr[ecs_type_t], removed: const_ptr[ecs_type_t]) -> bool
1193
+ external function ecs_search(world: const_ptr[ecs_world_t], table: const_ptr[ecs_table_t], component: ptr_uint, component_out: ptr[ecs_id_t]) -> int
1194
+ external function ecs_search_offset(world: const_ptr[ecs_world_t], table: const_ptr[ecs_table_t], offset: int, component: ptr_uint, component_out: ptr[ecs_id_t]) -> int
1195
+ external function ecs_search_relation(world: const_ptr[ecs_world_t], table: const_ptr[ecs_table_t], offset: int, component: ptr_uint, rel: ptr_uint, flags_: ptr_uint, tgt_out: ptr[ecs_entity_t], component_out: ptr[ecs_id_t], tr_out: ptr[ptr[ecs_table_record_t]]) -> int
1196
+ external function ecs_search_relation_for_entity(world: const_ptr[ecs_world_t], entity: ptr_uint, id: ptr_uint, rel: ptr_uint, self: bool, cr: ptr[ecs_component_record_t], tgt_out: ptr[ecs_entity_t], id_out: ptr[ecs_id_t], tr_out: ptr[ptr[ecs_table_record_t]]) -> int
1197
+ external function ecs_table_clear_entities(world: ptr[ecs_world_t], table: ptr[ecs_table_t]) -> void
1198
+ external function ecs_value_init(world: const_ptr[ecs_world_t], type_: ptr_uint, ptr: ptr[void]) -> int
1199
+ external function ecs_value_init_w_type_info(world: const_ptr[ecs_world_t], ti: const_ptr[ecs_type_info_t], ptr: ptr[void]) -> int
1200
+ external function ecs_value_new(world: ptr[ecs_world_t], type_: ptr_uint) -> ptr[void]
1201
+ external function ecs_value_new_w_type_info(world: ptr[ecs_world_t], ti: const_ptr[ecs_type_info_t]) -> ptr[void]
1202
+ external function ecs_value_fini_w_type_info(world: const_ptr[ecs_world_t], ti: const_ptr[ecs_type_info_t], ptr: ptr[void]) -> int
1203
+ external function ecs_value_fini(world: const_ptr[ecs_world_t], type_: ptr_uint, ptr: ptr[void]) -> int
1204
+ external function ecs_value_free(world: ptr[ecs_world_t], type_: ptr_uint, ptr: ptr[void]) -> int
1205
+ external function ecs_value_copy_w_type_info(world: const_ptr[ecs_world_t], ti: const_ptr[ecs_type_info_t], dst: ptr[void], src: const_ptr[void]) -> int
1206
+ external function ecs_value_copy(world: const_ptr[ecs_world_t], type_: ptr_uint, dst: ptr[void], src: const_ptr[void]) -> int
1207
+ external function ecs_value_move_w_type_info(world: const_ptr[ecs_world_t], ti: const_ptr[ecs_type_info_t], dst: ptr[void], src: ptr[void]) -> int
1208
+ external function ecs_value_move(world: const_ptr[ecs_world_t], type_: ptr_uint, dst: ptr[void], src: ptr[void]) -> int
1209
+ external function ecs_value_move_ctor_w_type_info(world: const_ptr[ecs_world_t], ti: const_ptr[ecs_type_info_t], dst: ptr[void], src: ptr[void]) -> int
1210
+ external function ecs_value_move_ctor(world: const_ptr[ecs_world_t], type_: ptr_uint, dst: ptr[void], src: ptr[void]) -> int
1211
+ external function ecs_deprecated_(file: cstr, line: int, msg: cstr) -> void
1212
+ external function ecs_log_push_(level: int) -> void
1213
+ external function ecs_log_pop_(level: int) -> void
1214
+ external function ecs_should_log(level: int) -> bool
1215
+ external function ecs_strerror(error_code: int) -> cstr
1216
+ external function ecs_print_(level: int, file: cstr, line: int, fmt: cstr, ...) -> void
1217
+ external function ecs_printv_(level: int, file: cstr, line: int, fmt: cstr, args: va_list) -> void
1218
+ external function ecs_log_(level: int, file: cstr, line: int, fmt: cstr, ...) -> void
1219
+ external function ecs_logv_(level: int, file: cstr, line: int, fmt: cstr, args: va_list) -> void
1220
+ external function ecs_abort_(error_code: int, file: cstr, line: int, fmt: cstr, ...) -> void
1221
+ external function ecs_assert_log_(error_code: int, condition_str: cstr, file: cstr, line: int, fmt: cstr, ...) -> void
1222
+ external function ecs_parser_error_(name: cstr, expr: cstr, column: ptr_int, fmt: cstr, ...) -> void
1223
+ external function ecs_parser_errorv_(name: cstr, expr: cstr, column: ptr_int, fmt: cstr, args: va_list) -> void
1224
+ external function ecs_parser_warning_(name: cstr, expr: cstr, column: ptr_int, fmt: cstr, ...) -> void
1225
+ external function ecs_parser_warningv_(name: cstr, expr: cstr, column: ptr_int, fmt: cstr, args: va_list) -> void
1226
+ external function ecs_log_set_level(level: int) -> int
1227
+ external function ecs_log_get_level() -> int
1228
+ external function ecs_log_enable_colors(enabled: bool) -> bool
1229
+ external function ecs_log_enable_timestamp(enabled: bool) -> bool
1230
+ external function ecs_log_enable_timedelta(enabled: bool) -> bool
1231
+ external function ecs_log_last_error() -> int
1232
+ external function ecs_log_start_capture(capture_try: bool) -> void
1233
+ external function ecs_log_stop_capture() -> ptr[char]
1234
+
1235
+ type ecs_app_init_action_t = fn(arg0: ptr[ecs_world_t]) -> int
1236
+
1237
+ struct ecs_app_desc_t:
1238
+ target_fps: float
1239
+ delta_time: float
1240
+ threads: int
1241
+ frames: int
1242
+ enable_rest: bool
1243
+ enable_stats: bool
1244
+ port: ushort
1245
+ init: fn(arg0: ptr[ecs_world_t]) -> int
1246
+ ctx: ptr[void]
1247
+
1248
+ type ecs_app_run_action_t = fn(arg0: ptr[ecs_world_t], arg1: ptr[ecs_app_desc_t]) -> int
1249
+ type ecs_app_frame_action_t = fn(arg0: ptr[ecs_world_t], arg1: const_ptr[ecs_app_desc_t]) -> int
1250
+
1251
+ external function ecs_app_run(world: ptr[ecs_world_t], desc: ptr[ecs_app_desc_t]) -> int
1252
+ external function ecs_app_run_frame(world: ptr[ecs_world_t], desc: const_ptr[ecs_app_desc_t]) -> int
1253
+ external function ecs_app_set_run_action(callback: fn(arg0: ptr[ecs_world_t], arg1: ptr[ecs_app_desc_t]) -> int) -> int
1254
+ external function ecs_app_set_frame_action(callback: fn(arg0: ptr[ecs_world_t], arg1: const_ptr[ecs_app_desc_t]) -> int) -> int
1255
+
1256
+ opaque ecs_http_server_t = c"ecs_http_server_t"
1257
+
1258
+ struct ecs_http_connection_t:
1259
+ id: ptr_uint
1260
+ server: ptr[ecs_http_server_t]
1261
+ host: array[char, 128]
1262
+ port: array[char, 16]
1263
+
1264
+ struct ecs_http_key_value_t:
1265
+ key: cstr
1266
+ value: cstr
1267
+
1268
+ enum ecs_http_method_t: int
1269
+ EcsHttpGet = 0
1270
+ EcsHttpPost = 1
1271
+ EcsHttpPut = 2
1272
+ EcsHttpDelete = 3
1273
+ EcsHttpOptions = 4
1274
+ EcsHttpMethodUnsupported = 5
1275
+
1276
+ struct ecs_http_request_t:
1277
+ id: ptr_uint
1278
+ method: ecs_http_method_t
1279
+ path: ptr[char]
1280
+ body: ptr[char]
1281
+ headers: array[ecs_http_key_value_t, 32]
1282
+ params: array[ecs_http_key_value_t, 32]
1283
+ header_count: int
1284
+ param_count: int
1285
+ conn: ptr[ecs_http_connection_t]
1286
+
1287
+ struct ecs_http_reply_t:
1288
+ code: int
1289
+ body: ecs_strbuf_t
1290
+ status: cstr
1291
+ content_type: cstr
1292
+ headers: ecs_strbuf_t
1293
+
1294
+ type ecs_http_reply_action_t = fn(arg0: const_ptr[ecs_http_request_t], arg1: ptr[ecs_http_reply_t], arg2: ptr[void]) -> bool
1295
+
1296
+ struct ecs_http_server_desc_t:
1297
+ callback: fn(arg0: const_ptr[ecs_http_request_t], arg1: ptr[ecs_http_reply_t], arg2: ptr[void]) -> bool
1298
+ ctx: ptr[void]
1299
+ port: ushort
1300
+ ipaddr: cstr
1301
+ send_queue_wait_ms: int
1302
+ cache_timeout: double
1303
+ cache_purge_timeout: double
1304
+
1305
+ external function ecs_http_server_init(desc: const_ptr[ecs_http_server_desc_t]) -> ptr[ecs_http_server_t]
1306
+ external function ecs_http_server_fini(server: ptr[ecs_http_server_t]) -> void
1307
+ external function ecs_http_server_start(server: ptr[ecs_http_server_t]) -> int
1308
+ external function ecs_http_server_dequeue(server: ptr[ecs_http_server_t], delta_time: float) -> void
1309
+ external function ecs_http_server_stop(server: ptr[ecs_http_server_t]) -> void
1310
+ external function ecs_http_server_http_request(srv: ptr[ecs_http_server_t], req: cstr, len: int, reply_out: ptr[ecs_http_reply_t]) -> int
1311
+ external function ecs_http_server_request(srv: ptr[ecs_http_server_t], method: cstr, req: cstr, body: cstr, reply_out: ptr[ecs_http_reply_t]) -> int
1312
+ external function ecs_http_server_ctx(srv: ptr[ecs_http_server_t]) -> ptr[void]
1313
+ external function ecs_http_get_header(req: const_ptr[ecs_http_request_t], name: cstr) -> cstr
1314
+ external function ecs_http_get_param(req: const_ptr[ecs_http_request_t], name: cstr) -> cstr
1315
+
1316
+ struct ecs_rest_ctx_t:
1317
+ world: ptr[ecs_world_t]
1318
+ srv: ptr[ecs_http_server_t]
1319
+ rc: int
1320
+ cmd_captures: ecs_map_t
1321
+ last_time: double
1322
+
1323
+ struct EcsRest:
1324
+ port: ushort
1325
+ ipaddr: ptr[char]
1326
+ impl: ptr[ecs_rest_ctx_t]
1327
+
1328
+ external function ecs_rest_server_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_http_server_desc_t]) -> ptr[ecs_http_server_t]
1329
+ external function ecs_rest_server_fini(srv: ptr[ecs_http_server_t]) -> void
1330
+
1331
+ struct EcsTimer:
1332
+ timeout: float
1333
+ time: float
1334
+ overshoot: float
1335
+ fired_count: int
1336
+ active: bool
1337
+ single_shot: bool
1338
+
1339
+ struct EcsRateFilter:
1340
+ src: ptr_uint
1341
+ rate: int
1342
+ tick_count: int
1343
+ time_elapsed: float
1344
+
1345
+ external function ecs_set_timeout(world: ptr[ecs_world_t], tick_source: ptr_uint, timeout: float) -> ecs_entity_t
1346
+ external function ecs_get_timeout(world: const_ptr[ecs_world_t], tick_source: ptr_uint) -> float
1347
+ external function ecs_set_interval(world: ptr[ecs_world_t], tick_source: ptr_uint, interval: float) -> ecs_entity_t
1348
+ external function ecs_get_interval(world: const_ptr[ecs_world_t], tick_source: ptr_uint) -> float
1349
+ external function ecs_start_timer(world: ptr[ecs_world_t], tick_source: ptr_uint) -> void
1350
+ external function ecs_stop_timer(world: ptr[ecs_world_t], tick_source: ptr_uint) -> void
1351
+ external function ecs_reset_timer(world: ptr[ecs_world_t], tick_source: ptr_uint) -> void
1352
+ external function ecs_randomize_timers(world: ptr[ecs_world_t]) -> void
1353
+ external function ecs_set_rate(world: ptr[ecs_world_t], tick_source: ptr_uint, rate: int, source: ptr_uint) -> ecs_entity_t
1354
+ external function ecs_set_tick_source(world: ptr[ecs_world_t], system: ptr_uint, tick_source: ptr_uint) -> void
1355
+
1356
+ struct ecs_pipeline_desc_t:
1357
+ entity: ptr_uint
1358
+ query: ecs_query_desc_t
1359
+
1360
+ external function ecs_pipeline_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_pipeline_desc_t]) -> ecs_entity_t
1361
+ external function ecs_pipeline_update(world: ptr[ecs_world_t], pipeline: ptr_uint, desc: const_ptr[ecs_pipeline_desc_t]) -> ecs_entity_t
1362
+ external function ecs_set_pipeline(world: ptr[ecs_world_t], pipeline: ptr_uint) -> void
1363
+ external function ecs_get_pipeline(world: const_ptr[ecs_world_t]) -> ecs_entity_t
1364
+ external function ecs_progress(world: ptr[ecs_world_t], delta_time: float) -> bool
1365
+ external function ecs_set_time_scale(world: ptr[ecs_world_t], scale: float) -> void
1366
+ external function ecs_reset_clock(world: ptr[ecs_world_t]) -> void
1367
+ external function ecs_run_pipeline(world: ptr[ecs_world_t], pipeline: ptr_uint, delta_time: float) -> void
1368
+ external function ecs_set_threads(world: ptr[ecs_world_t], threads: int) -> void
1369
+ external function ecs_set_task_threads(world: ptr[ecs_world_t], task_threads: int) -> void
1370
+ external function ecs_using_task_threads(world: ptr[ecs_world_t]) -> bool
1371
+
1372
+ struct EcsTickSource:
1373
+ tick: bool
1374
+ time_elapsed: float
1375
+
1376
+ struct ecs_system_desc_t:
1377
+ _canary: int
1378
+ entity: ptr_uint
1379
+ query: ecs_query_desc_t
1380
+ phase: ptr_uint
1381
+ callback: fn(arg0: ptr[ecs_iter_t]) -> void
1382
+ run: fn(arg0: ptr[ecs_iter_t]) -> void
1383
+ ctx: ptr[void]
1384
+ ctx_free: fn(arg0: ptr[void]) -> void
1385
+ callback_ctx: ptr[void]
1386
+ callback_ctx_free: fn(arg0: ptr[void]) -> void
1387
+ run_ctx: ptr[void]
1388
+ run_ctx_free: fn(arg0: ptr[void]) -> void
1389
+ interval: float
1390
+ rate: int
1391
+ tick_source: ptr_uint
1392
+ multi_threaded: bool
1393
+ immediate: bool
1394
+
1395
+ external function ecs_system_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_system_desc_t]) -> ecs_entity_t
1396
+ external function ecs_system_update(world: ptr[ecs_world_t], system: ptr_uint, desc: const_ptr[ecs_system_desc_t]) -> ecs_entity_t
1397
+
1398
+ struct ecs_system_t:
1399
+ hdr: ecs_header_t
1400
+ run: fn(arg0: ptr[ecs_iter_t]) -> void
1401
+ action: fn(arg0: ptr[ecs_iter_t]) -> void
1402
+ query: ptr[ecs_query_t]
1403
+ group_id: ptr_uint
1404
+ group_id_set: bool
1405
+ tick_source: ptr_uint
1406
+ multi_threaded: bool
1407
+ immediate: bool
1408
+ name: cstr
1409
+ ctx: ptr[void]
1410
+ callback_ctx: ptr[void]
1411
+ run_ctx: ptr[void]
1412
+ ctx_free: fn(arg0: ptr[void]) -> void
1413
+ callback_ctx_free: fn(arg0: ptr[void]) -> void
1414
+ run_ctx_free: fn(arg0: ptr[void]) -> void
1415
+ time_spent: float
1416
+ time_passed: float
1417
+ last_frame: ptr_int
1418
+ dtor: fn(arg0: ptr[ecs_poly_t]) -> void
1419
+
1420
+ external function ecs_system_get(world: const_ptr[ecs_world_t], system: ptr_uint) -> const_ptr[ecs_system_t]
1421
+ external function ecs_system_set_group(world: ptr[ecs_world_t], system: ptr_uint, group_id: ptr_uint) -> void
1422
+ external function ecs_run(world: ptr[ecs_world_t], system: ptr_uint, delta_time: float, param: ptr[void]) -> ecs_entity_t
1423
+ external function ecs_run_worker(world: ptr[ecs_world_t], system: ptr_uint, stage_current: int, stage_count: int, delta_time: float, param: ptr[void]) -> ecs_entity_t
1424
+
1425
+ struct ecs_gauge_t:
1426
+ avg: array[float, 60]
1427
+ min: array[float, 60]
1428
+ max: array[float, 60]
1429
+
1430
+ struct ecs_counter_t:
1431
+ rate: ecs_gauge_t
1432
+ value: array[double, 60]
1433
+
1434
+ union ecs_metric_t:
1435
+ gauge: ecs_gauge_t
1436
+ counter: ecs_counter_t
1437
+
1438
+ struct ecs_world_stats_t:
1439
+ first_: ptr_int
1440
+ entities: ecs_world_stats_t_entities
1441
+ components: ecs_world_stats_t_components
1442
+ tables: ecs_world_stats_t_tables
1443
+ queries: ecs_world_stats_t_queries
1444
+ commands: ecs_world_stats_t_commands
1445
+ frame: ecs_world_stats_t_frame
1446
+ performance: ecs_world_stats_t_performance
1447
+ memory: ecs_world_stats_t_memory
1448
+ http: ecs_world_stats_t_http
1449
+ last_: ptr_int
1450
+ t: int
1451
+
1452
+ struct ecs_query_stats_t:
1453
+ first_: ptr_int
1454
+ result_count: ecs_metric_t
1455
+ matched_table_count: ecs_metric_t
1456
+ matched_entity_count: ecs_metric_t
1457
+ last_: ptr_int
1458
+ t: int
1459
+
1460
+ struct ecs_system_stats_t:
1461
+ first_: ptr_int
1462
+ time_spent: ecs_metric_t
1463
+ last_: ptr_int
1464
+ task: bool
1465
+ query: ecs_query_stats_t
1466
+
1467
+ struct ecs_sync_stats_t:
1468
+ first_: ptr_int
1469
+ time_spent: ecs_metric_t
1470
+ commands_enqueued: ecs_metric_t
1471
+ last_: ptr_int
1472
+ system_count: int
1473
+ multi_threaded: bool
1474
+ immediate: bool
1475
+
1476
+ struct ecs_pipeline_stats_t:
1477
+ canary_: byte
1478
+ systems: ecs_vec_t
1479
+ sync_points: ecs_vec_t
1480
+ t: int
1481
+ system_count: int
1482
+ active_system_count: int
1483
+ rebuild_count: int
1484
+
1485
+ external function ecs_world_stats_get(world: const_ptr[ecs_world_t], stats: ptr[ecs_world_stats_t]) -> void
1486
+ external function ecs_world_stats_reduce(dst: ptr[ecs_world_stats_t], src: const_ptr[ecs_world_stats_t]) -> void
1487
+ external function ecs_world_stats_reduce_last(stats: ptr[ecs_world_stats_t], old: const_ptr[ecs_world_stats_t], count: int) -> void
1488
+ external function ecs_world_stats_repeat_last(stats: ptr[ecs_world_stats_t]) -> void
1489
+ external function ecs_world_stats_copy_last(dst: ptr[ecs_world_stats_t], src: const_ptr[ecs_world_stats_t]) -> void
1490
+ external function ecs_world_stats_log(world: const_ptr[ecs_world_t], stats: const_ptr[ecs_world_stats_t]) -> void
1491
+ external function ecs_query_stats_get(world: const_ptr[ecs_world_t], query: const_ptr[ecs_query_t], stats: ptr[ecs_query_stats_t]) -> void
1492
+ external function ecs_query_cache_stats_reduce(dst: ptr[ecs_query_stats_t], src: const_ptr[ecs_query_stats_t]) -> void
1493
+ external function ecs_query_cache_stats_reduce_last(stats: ptr[ecs_query_stats_t], old: const_ptr[ecs_query_stats_t], count: int) -> void
1494
+ external function ecs_query_cache_stats_repeat_last(stats: ptr[ecs_query_stats_t]) -> void
1495
+ external function ecs_query_cache_stats_copy_last(dst: ptr[ecs_query_stats_t], src: const_ptr[ecs_query_stats_t]) -> void
1496
+ external function ecs_system_stats_get(world: const_ptr[ecs_world_t], system: ptr_uint, stats: ptr[ecs_system_stats_t]) -> bool
1497
+ external function ecs_system_stats_reduce(dst: ptr[ecs_system_stats_t], src: const_ptr[ecs_system_stats_t]) -> void
1498
+ external function ecs_system_stats_reduce_last(stats: ptr[ecs_system_stats_t], old: const_ptr[ecs_system_stats_t], count: int) -> void
1499
+ external function ecs_system_stats_repeat_last(stats: ptr[ecs_system_stats_t]) -> void
1500
+ external function ecs_system_stats_copy_last(dst: ptr[ecs_system_stats_t], src: const_ptr[ecs_system_stats_t]) -> void
1501
+ external function ecs_pipeline_stats_get(world: ptr[ecs_world_t], pipeline: ptr_uint, stats: ptr[ecs_pipeline_stats_t]) -> bool
1502
+ external function ecs_pipeline_stats_fini(stats: ptr[ecs_pipeline_stats_t]) -> void
1503
+ external function ecs_pipeline_stats_reduce(dst: ptr[ecs_pipeline_stats_t], src: const_ptr[ecs_pipeline_stats_t]) -> void
1504
+ external function ecs_pipeline_stats_reduce_last(stats: ptr[ecs_pipeline_stats_t], old: const_ptr[ecs_pipeline_stats_t], count: int) -> void
1505
+ external function ecs_pipeline_stats_repeat_last(stats: ptr[ecs_pipeline_stats_t]) -> void
1506
+ external function ecs_pipeline_stats_copy_last(dst: ptr[ecs_pipeline_stats_t], src: const_ptr[ecs_pipeline_stats_t]) -> void
1507
+ external function ecs_metric_reduce(dst: ptr[ecs_metric_t], src: const_ptr[ecs_metric_t], t_dst: int, t_src: int) -> void
1508
+ external function ecs_metric_reduce_last(m: ptr[ecs_metric_t], t: int, count: int) -> void
1509
+ external function ecs_metric_copy(m: ptr[ecs_metric_t], dst: int, src: int) -> void
1510
+
1511
+ struct EcsStatsHeader:
1512
+ elapsed: float
1513
+ reduce_count: int
1514
+
1515
+ struct EcsWorldStats:
1516
+ hdr: EcsStatsHeader
1517
+ stats: ptr[ecs_world_stats_t]
1518
+
1519
+ struct EcsSystemStats:
1520
+ hdr: EcsStatsHeader
1521
+ stats: ecs_map_t
1522
+
1523
+ struct EcsPipelineStats:
1524
+ hdr: EcsStatsHeader
1525
+ stats: ecs_map_t
1526
+
1527
+ struct EcsWorldSummary:
1528
+ target_fps: double
1529
+ time_scale: double
1530
+ fps: double
1531
+ frame_time_total: double
1532
+ system_time_total: double
1533
+ merge_time_total: double
1534
+ entity_count: ptr_int
1535
+ table_count: ptr_int
1536
+ frame_count: ptr_int
1537
+ command_count: ptr_int
1538
+ merge_count: ptr_int
1539
+ systems_ran_total: ptr_int
1540
+ observers_ran_total: ptr_int
1541
+ queries_ran_total: ptr_int
1542
+ tag_count: int
1543
+ component_count: int
1544
+ pair_count: int
1545
+ frame_time_frame: double
1546
+ system_time_frame: double
1547
+ merge_time_frame: double
1548
+ merge_count_frame: ptr_int
1549
+ systems_ran_frame: ptr_int
1550
+ observers_ran_frame: ptr_int
1551
+ queries_ran_frame: ptr_int
1552
+ command_count_frame: ptr_int
1553
+ simulation_time: double
1554
+ uptime: uint
1555
+ build_info: ecs_build_info_t
1556
+
1557
+ struct ecs_entities_memory_t:
1558
+ alive_count: int
1559
+ not_alive_count: int
1560
+ bytes_entity_index: int
1561
+ bytes_names: int
1562
+ bytes_doc_strings: int
1563
+
1564
+ struct ecs_component_memory_t:
1565
+ instances: int
1566
+ bytes_table_components: int
1567
+ bytes_table_components_unused: int
1568
+ bytes_toggle_bitsets: int
1569
+ bytes_sparse_components: int
1570
+
1571
+ struct ecs_component_index_memory_t:
1572
+ count: int
1573
+ bytes_component_record: int
1574
+ bytes_table_cache: int
1575
+ bytes_name_index: int
1576
+ bytes_ordered_children: int
1577
+ bytes_children_table_map: int
1578
+ bytes_reachable_cache: int
1579
+
1580
+ struct ecs_query_memory_t:
1581
+ count: int
1582
+ cached_count: int
1583
+ bytes_query: int
1584
+ bytes_cache: int
1585
+ bytes_group_by: int
1586
+ bytes_order_by: int
1587
+ bytes_plan: int
1588
+ bytes_terms: int
1589
+ bytes_misc: int
1590
+
1591
+ struct ecs_table_memory_t:
1592
+ count: int
1593
+ empty_count: int
1594
+ column_count: int
1595
+ bytes_table: int
1596
+ bytes_type: int
1597
+ bytes_entities: int
1598
+ bytes_overrides: int
1599
+ bytes_column_map: int
1600
+ bytes_component_map: int
1601
+ bytes_dirty_state: int
1602
+ bytes_edges: int
1603
+
1604
+ struct ecs_table_histogram_t:
1605
+ entity_counts: array[int, 14]
1606
+
1607
+ struct ecs_misc_memory_t:
1608
+ bytes_world: int
1609
+ bytes_observers: int
1610
+ bytes_systems: int
1611
+ bytes_pipelines: int
1612
+ bytes_table_lookup: int
1613
+ bytes_component_record_lookup: int
1614
+ bytes_locked_components: int
1615
+ bytes_type_info: int
1616
+ bytes_commands: int
1617
+ bytes_rematch_monitor: int
1618
+ bytes_component_ids: int
1619
+ bytes_reflection: int
1620
+ bytes_tree_spawner: int
1621
+ bytes_prefab_child_indices: int
1622
+ bytes_stats: int
1623
+ bytes_rest: int
1624
+
1625
+ struct ecs_allocator_memory_t:
1626
+ bytes_graph_edge: int
1627
+ bytes_component_record: int
1628
+ bytes_pair_record: int
1629
+ bytes_table_diff: int
1630
+ bytes_sparse_chunk: int
1631
+ bytes_allocator: int
1632
+ bytes_stack_allocator: int
1633
+ bytes_cmd_entry_chunk: int
1634
+ bytes_query_impl: int
1635
+ bytes_query_cache: int
1636
+ bytes_misc: int
1637
+
1638
+ struct EcsWorldMemory:
1639
+ entities: ecs_entities_memory_t
1640
+ components: ecs_component_memory_t
1641
+ component_index: ecs_component_index_memory_t
1642
+ queries: ecs_query_memory_t
1643
+ tables: ecs_table_memory_t
1644
+ table_histogram: ecs_table_histogram_t
1645
+ misc: ecs_misc_memory_t
1646
+ allocators: ecs_allocator_memory_t
1647
+ collection_time: double
1648
+
1649
+ external function ecs_entity_memory_get(world: const_ptr[ecs_world_t]) -> ecs_entities_memory_t
1650
+ external function ecs_component_record_memory_get(cr: const_ptr[ecs_component_record_t], result: ptr[ecs_component_index_memory_t]) -> void
1651
+ external function ecs_component_index_memory_get(world: const_ptr[ecs_world_t]) -> ecs_component_index_memory_t
1652
+ external function ecs_query_memory_get(query: const_ptr[ecs_query_t], result: ptr[ecs_query_memory_t]) -> void
1653
+ external function ecs_queries_memory_get(world: const_ptr[ecs_world_t]) -> ecs_query_memory_t
1654
+ external function ecs_table_component_memory_get(table: const_ptr[ecs_table_t], result: ptr[ecs_component_memory_t]) -> void
1655
+ external function ecs_component_memory_get(world: const_ptr[ecs_world_t]) -> ecs_component_memory_t
1656
+ external function ecs_table_memory_get(table: const_ptr[ecs_table_t], result: ptr[ecs_table_memory_t]) -> void
1657
+ external function ecs_tables_memory_get(world: const_ptr[ecs_world_t]) -> ecs_table_memory_t
1658
+ external function ecs_table_histogram_get(world: const_ptr[ecs_world_t]) -> ecs_table_histogram_t
1659
+ external function ecs_misc_memory_get(world: const_ptr[ecs_world_t]) -> ecs_misc_memory_t
1660
+ external function ecs_allocator_memory_get(world: const_ptr[ecs_world_t]) -> ecs_allocator_memory_t
1661
+ external function ecs_memory_get(world: const_ptr[ecs_world_t]) -> ecs_size_t
1662
+
1663
+ struct EcsMetricValue:
1664
+ value: double
1665
+
1666
+ struct EcsMetricSource:
1667
+ entity: ptr_uint
1668
+
1669
+ struct ecs_metric_desc_t:
1670
+ _canary: int
1671
+ entity: ptr_uint
1672
+ member: ptr_uint
1673
+ dotmember: cstr
1674
+ id: ptr_uint
1675
+ targets: bool
1676
+ kind: ptr_uint
1677
+ brief: cstr
1678
+
1679
+ external function ecs_metric_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_metric_desc_t]) -> ecs_entity_t
1680
+
1681
+ struct EcsAlertInstance:
1682
+ message: ptr[char]
1683
+
1684
+ struct EcsAlertsActive:
1685
+ info_count: int
1686
+ warning_count: int
1687
+ error_count: int
1688
+ alerts: ecs_map_t
1689
+
1690
+ struct ecs_alert_severity_filter_t:
1691
+ severity: ptr_uint
1692
+ with: ptr_uint
1693
+ var_: cstr
1694
+ _var_index: int
1695
+
1696
+ struct ecs_alert_desc_t:
1697
+ _canary: int
1698
+ entity: ptr_uint
1699
+ query: ecs_query_desc_t
1700
+ message: cstr
1701
+ doc_name: cstr
1702
+ brief: cstr
1703
+ severity: ptr_uint
1704
+ severity_filters: array[ecs_alert_severity_filter_t, 4]
1705
+ retain_period: float
1706
+ member: ptr_uint
1707
+ id: ptr_uint
1708
+ var_: cstr
1709
+
1710
+ external function ecs_alert_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_alert_desc_t]) -> ecs_entity_t
1711
+ external function ecs_get_alert_count(world: const_ptr[ecs_world_t], entity: ptr_uint, alert: ptr_uint) -> int
1712
+ external function ecs_get_alert(world: const_ptr[ecs_world_t], entity: ptr_uint, alert: ptr_uint) -> ecs_entity_t
1713
+
1714
+ struct ecs_from_json_desc_t:
1715
+ name: cstr
1716
+ expr: cstr
1717
+ lookup_action: fn(arg0: ptr[ecs_world_t], arg1: cstr, arg2: ptr[void]) -> ecs_entity_t
1718
+ lookup_ctx: ptr[void]
1719
+ strict: bool
1720
+
1721
+ external function ecs_ptr_from_json(world: const_ptr[ecs_world_t], type_: ptr_uint, ptr: ptr[void], json: cstr, desc: const_ptr[ecs_from_json_desc_t]) -> cstr
1722
+ external function ecs_entity_from_json(world: ptr[ecs_world_t], entity: ptr_uint, json: cstr, desc: const_ptr[ecs_from_json_desc_t]) -> cstr
1723
+ external function ecs_world_from_json(world: ptr[ecs_world_t], json: cstr, desc: const_ptr[ecs_from_json_desc_t]) -> cstr
1724
+ external function ecs_world_from_json_file(world: ptr[ecs_world_t], filename: cstr, desc: const_ptr[ecs_from_json_desc_t]) -> cstr
1725
+ external function ecs_array_to_json(world: const_ptr[ecs_world_t], type_: ptr_uint, data: const_ptr[void], count: int) -> ptr[char]
1726
+ external function ecs_array_to_json_buf(world: const_ptr[ecs_world_t], type_: ptr_uint, data: const_ptr[void], count: int, buf_out: ptr[ecs_strbuf_t]) -> int
1727
+ external function ecs_ptr_to_json(world: const_ptr[ecs_world_t], type_: ptr_uint, data: const_ptr[void]) -> ptr[char]
1728
+ external function ecs_ptr_to_json_buf(world: const_ptr[ecs_world_t], type_: ptr_uint, data: const_ptr[void], buf_out: ptr[ecs_strbuf_t]) -> int
1729
+ external function ecs_type_info_to_json(world: const_ptr[ecs_world_t], type_: ptr_uint) -> ptr[char]
1730
+ external function ecs_type_info_to_json_buf(world: const_ptr[ecs_world_t], type_: ptr_uint, buf_out: ptr[ecs_strbuf_t]) -> int
1731
+
1732
+ struct ecs_entity_to_json_desc_t:
1733
+ serialize_entity_id: bool
1734
+ serialize_doc: bool
1735
+ serialize_full_paths: bool
1736
+ serialize_inherited: bool
1737
+ serialize_values: bool
1738
+ serialize_builtin: bool
1739
+ serialize_type_info: bool
1740
+ serialize_alerts: bool
1741
+ serialize_refs: ptr_uint
1742
+ serialize_matches: bool
1743
+ component_filter: fn(arg0: const_ptr[ecs_world_t], arg1: ecs_entity_t) -> bool
1744
+
1745
+ external function ecs_entity_to_json(world: ptr[ecs_world_t], entity: ptr_uint, desc: const_ptr[ecs_entity_to_json_desc_t]) -> ptr[char]
1746
+ external function ecs_entity_to_json_buf(world: ptr[ecs_world_t], entity: ptr_uint, buf_out: ptr[ecs_strbuf_t], desc: const_ptr[ecs_entity_to_json_desc_t]) -> int
1747
+
1748
+ struct ecs_iter_to_json_desc_t:
1749
+ serialize_entity_ids: bool
1750
+ serialize_values: bool
1751
+ serialize_builtin: bool
1752
+ serialize_doc: bool
1753
+ serialize_full_paths: bool
1754
+ serialize_fields: bool
1755
+ serialize_inherited: bool
1756
+ serialize_table: bool
1757
+ serialize_type_info: bool
1758
+ serialize_field_info: bool
1759
+ serialize_query_info: bool
1760
+ serialize_query_plan: bool
1761
+ serialize_query_profile: bool
1762
+ dont_serialize_results: bool
1763
+ serialize_alerts: bool
1764
+ serialize_refs: ptr_uint
1765
+ serialize_matches: bool
1766
+ serialize_parents_before_children: bool
1767
+ component_filter: fn(arg0: const_ptr[ecs_world_t], arg1: ecs_entity_t) -> bool
1768
+ query: ptr[ecs_poly_t]
1769
+
1770
+ external function ecs_iter_to_json(iter: ptr[ecs_iter_t], desc: const_ptr[ecs_iter_to_json_desc_t]) -> ptr[char]
1771
+ external function ecs_iter_to_json_buf(iter: ptr[ecs_iter_t], buf_out: ptr[ecs_strbuf_t], desc: const_ptr[ecs_iter_to_json_desc_t]) -> int
1772
+
1773
+ struct ecs_world_to_json_desc_t:
1774
+ serialize_builtin: bool
1775
+ serialize_modules: bool
1776
+
1777
+ external function ecs_world_to_json(world: ptr[ecs_world_t], desc: const_ptr[ecs_world_to_json_desc_t]) -> ptr[char]
1778
+ external function ecs_world_to_json_buf(world: ptr[ecs_world_t], buf_out: ptr[ecs_strbuf_t], desc: const_ptr[ecs_world_to_json_desc_t]) -> int
1779
+
1780
+ opaque ecs_script_template_t = c"ecs_script_template_t"
1781
+
1782
+ struct ecs_script_var_t:
1783
+ name: cstr
1784
+ value: ecs_value_t
1785
+ type_info: const_ptr[ecs_type_info_t]
1786
+ sp: int
1787
+ is_const: bool
1788
+
1789
+ struct ecs_script_vars_t:
1790
+ parent: ptr[ecs_script_vars_t]
1791
+ sp: int
1792
+ var_index: ecs_hashmap_t
1793
+ vars: ecs_vec_t
1794
+ world: const_ptr[ecs_world_t]
1795
+ stack: ptr[ecs_stack_t]
1796
+ cursor: ptr[ecs_stack_cursor_t]
1797
+ allocator: ptr[ecs_allocator_t]
1798
+
1799
+ struct ecs_script_t:
1800
+ world: ptr[ecs_world_t]
1801
+ name: cstr
1802
+ code: cstr
1803
+
1804
+ opaque ecs_script_runtime_t = c"ecs_script_runtime_t"
1805
+
1806
+ struct EcsScript:
1807
+ filename: ptr[char]
1808
+ code: ptr[char]
1809
+ error: ptr[char]
1810
+ script: ptr[ecs_script_t]
1811
+ template_: ptr[ecs_script_template_t]
1812
+
1813
+ struct ecs_function_ctx_t:
1814
+ world: ptr[ecs_world_t]
1815
+ function_: ptr_uint
1816
+ ctx: ptr[void]
1817
+
1818
+ type ecs_function_callback_t = fn(arg0: const_ptr[ecs_function_ctx_t], arg1: int, arg2: const_ptr[ecs_value_t], arg3: ptr[ecs_value_t]) -> void
1819
+ type ecs_vector_function_callback_t = fn(arg0: const_ptr[ecs_function_ctx_t], arg1: int, arg2: const_ptr[ecs_value_t], arg3: ptr[ecs_value_t], arg4: int) -> void
1820
+
1821
+ struct ecs_script_parameter_t:
1822
+ name: cstr
1823
+ type_: ptr_uint
1824
+
1825
+ struct EcsScriptConstVar:
1826
+ value: ecs_value_t
1827
+ type_info: const_ptr[ecs_type_info_t]
1828
+
1829
+ struct EcsScriptMethod:
1830
+ return_type: ptr_uint
1831
+ params: ecs_vec_t
1832
+ callback: fn(arg0: const_ptr[ecs_function_ctx_t], arg1: int, arg2: const_ptr[ecs_value_t], arg3: ptr[ecs_value_t]) -> void
1833
+ vector_callbacks: array[ecs_vector_function_callback_t, 18]
1834
+ ctx: ptr[void]
1835
+ binding_ctx: ptr[void]
1836
+ binding_ctx_free: fn(arg0: ptr[void]) -> void
1837
+
1838
+ type EcsScriptFunction = EcsScriptMethod
1839
+
1840
+ struct ecs_script_eval_desc_t:
1841
+ vars: ptr[ecs_script_vars_t]
1842
+ runtime: ptr[ecs_script_runtime_t]
1843
+
1844
+ struct ecs_script_eval_result_t:
1845
+ error: ptr[char]
1846
+ line: int
1847
+ column: int
1848
+
1849
+ external function ecs_script_parse(world: ptr[ecs_world_t], name: cstr, code: cstr, desc: const_ptr[ecs_script_eval_desc_t], result: ptr[ecs_script_eval_result_t]) -> ptr[ecs_script_t]
1850
+ external function ecs_script_eval(script: const_ptr[ecs_script_t], desc: const_ptr[ecs_script_eval_desc_t], result: ptr[ecs_script_eval_result_t]) -> int
1851
+ external function ecs_script_free(script: ptr[ecs_script_t]) -> void
1852
+ external function ecs_script_run(world: ptr[ecs_world_t], name: cstr, code: cstr, result: ptr[ecs_script_eval_result_t]) -> int
1853
+ external function ecs_script_run_file(world: ptr[ecs_world_t], filename: cstr) -> int
1854
+ external function ecs_script_runtime_new() -> ptr[ecs_script_runtime_t]
1855
+ external function ecs_script_runtime_free(runtime: ptr[ecs_script_runtime_t]) -> void
1856
+ external function ecs_script_ast_to_buf(script: ptr[ecs_script_t], buf: ptr[ecs_strbuf_t], colors: bool) -> int
1857
+ external function ecs_script_ast_to_str(script: ptr[ecs_script_t], colors: bool) -> ptr[char]
1858
+
1859
+ struct ecs_script_desc_t:
1860
+ entity: ptr_uint
1861
+ filename: cstr
1862
+ code: cstr
1863
+
1864
+ external function ecs_script_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_script_desc_t]) -> ecs_entity_t
1865
+ external function ecs_script_update(world: ptr[ecs_world_t], script: ptr_uint, instance: ptr_uint, code: cstr) -> int
1866
+ external function ecs_script_clear(world: ptr[ecs_world_t], script: ptr_uint, instance: ptr_uint) -> void
1867
+ external function ecs_script_vars_init(world: ptr[ecs_world_t]) -> ptr[ecs_script_vars_t]
1868
+ external function ecs_script_vars_fini(vars: ptr[ecs_script_vars_t]) -> void
1869
+ external function ecs_script_vars_push(parent: ptr[ecs_script_vars_t]) -> ptr[ecs_script_vars_t]
1870
+ external function ecs_script_vars_pop(vars: ptr[ecs_script_vars_t]) -> ptr[ecs_script_vars_t]
1871
+ external function ecs_script_vars_declare(vars: ptr[ecs_script_vars_t], name: cstr) -> ptr[ecs_script_var_t]
1872
+ external function ecs_script_vars_define_id(vars: ptr[ecs_script_vars_t], name: cstr, type_: ptr_uint) -> ptr[ecs_script_var_t]
1873
+ external function ecs_script_vars_lookup(vars: const_ptr[ecs_script_vars_t], name: cstr) -> ptr[ecs_script_var_t]
1874
+ external function ecs_script_vars_from_sp(vars: const_ptr[ecs_script_vars_t], sp: int) -> ptr[ecs_script_var_t]
1875
+ external function ecs_script_vars_print(vars: const_ptr[ecs_script_vars_t]) -> void
1876
+ external function ecs_script_vars_set_size(vars: ptr[ecs_script_vars_t], count: int) -> void
1877
+ external function ecs_script_vars_from_iter(it: const_ptr[ecs_iter_t], vars: ptr[ecs_script_vars_t], offset: int) -> void
1878
+
1879
+ struct ecs_expr_eval_desc_t:
1880
+ name: cstr
1881
+ expr: cstr
1882
+ vars: const_ptr[ecs_script_vars_t]
1883
+ type_: ptr_uint
1884
+ lookup_action: fn(arg0: const_ptr[ecs_world_t], arg1: cstr, arg2: ptr[void]) -> ecs_entity_t
1885
+ lookup_ctx: ptr[void]
1886
+ disable_folding: bool
1887
+ disable_dynamic_variable_binding: bool
1888
+ allow_unresolved_identifiers: bool
1889
+ runtime: ptr[ecs_script_runtime_t]
1890
+ script_visitor: ptr[void]
1891
+ unresolved_identifier_action: fn(arg0: const_ptr[ecs_world_t], arg1: cstr, arg2: ptr[void]) -> bool
1892
+
1893
+ external function ecs_expr_run(world: ptr[ecs_world_t], ptr: cstr, value: ptr[ecs_value_t], desc: const_ptr[ecs_expr_eval_desc_t]) -> cstr
1894
+ external function ecs_expr_parse(world: ptr[ecs_world_t], expr: cstr, desc: const_ptr[ecs_expr_eval_desc_t]) -> ptr[ecs_script_t]
1895
+ external function ecs_expr_eval(script: const_ptr[ecs_script_t], value: ptr[ecs_value_t], desc: const_ptr[ecs_expr_eval_desc_t]) -> int
1896
+ external function ecs_script_string_interpolate(world: ptr[ecs_world_t], str_: cstr, vars: const_ptr[ecs_script_vars_t]) -> ptr[char]
1897
+
1898
+ struct ecs_const_var_desc_t:
1899
+ name: cstr
1900
+ parent: ptr_uint
1901
+ type_: ptr_uint
1902
+ value: ptr[void]
1903
+
1904
+ external function ecs_const_var_init(world: ptr[ecs_world_t], desc: ptr[ecs_const_var_desc_t]) -> ecs_entity_t
1905
+ external function ecs_const_var_get(world: const_ptr[ecs_world_t], var_: ptr_uint) -> ecs_value_t
1906
+
1907
+ struct ecs_vector_fn_callbacks_t:
1908
+ i8: fn(arg0: const_ptr[ecs_function_ctx_t], arg1: int, arg2: const_ptr[ecs_value_t], arg3: ptr[ecs_value_t], arg4: int) -> void
1909
+ i32: fn(arg0: const_ptr[ecs_function_ctx_t], arg1: int, arg2: const_ptr[ecs_value_t], arg3: ptr[ecs_value_t], arg4: int) -> void
1910
+
1911
+ struct ecs_function_desc_t:
1912
+ name: cstr
1913
+ parent: ptr_uint
1914
+ params: array[ecs_script_parameter_t, 16]
1915
+ return_type: ptr_uint
1916
+ callback: fn(arg0: const_ptr[ecs_function_ctx_t], arg1: int, arg2: const_ptr[ecs_value_t], arg3: ptr[ecs_value_t]) -> void
1917
+ vector_callbacks: array[ecs_vector_function_callback_t, 18]
1918
+ ctx: ptr[void]
1919
+
1920
+ external function ecs_function_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_function_desc_t]) -> ecs_entity_t
1921
+ external function ecs_method_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_function_desc_t]) -> ecs_entity_t
1922
+ external function ecs_ptr_to_expr(world: const_ptr[ecs_world_t], type_: ptr_uint, data: const_ptr[void]) -> ptr[char]
1923
+ external function ecs_ptr_to_expr_buf(world: const_ptr[ecs_world_t], type_: ptr_uint, data: const_ptr[void], buf: ptr[ecs_strbuf_t]) -> int
1924
+ external function ecs_ptr_to_str(world: const_ptr[ecs_world_t], type_: ptr_uint, data: const_ptr[void]) -> ptr[char]
1925
+ external function ecs_ptr_to_str_buf(world: const_ptr[ecs_world_t], type_: ptr_uint, data: const_ptr[void], buf: ptr[ecs_strbuf_t]) -> int
1926
+
1927
+ opaque ecs_expr_node_t = c"ecs_expr_node_t"
1928
+
1929
+ struct EcsDocDescription:
1930
+ value: ptr[char]
1931
+
1932
+ external function ecs_doc_set_uuid(world: ptr[ecs_world_t], entity: ptr_uint, uuid: cstr) -> void
1933
+ external function ecs_doc_set_name(world: ptr[ecs_world_t], entity: ptr_uint, name: cstr) -> void
1934
+ external function ecs_doc_set_brief(world: ptr[ecs_world_t], entity: ptr_uint, description: cstr) -> void
1935
+ external function ecs_doc_set_detail(world: ptr[ecs_world_t], entity: ptr_uint, description: cstr) -> void
1936
+ external function ecs_doc_set_link(world: ptr[ecs_world_t], entity: ptr_uint, link_: cstr) -> void
1937
+ external function ecs_doc_set_color(world: ptr[ecs_world_t], entity: ptr_uint, color: cstr) -> void
1938
+ external function ecs_doc_get_uuid(world: const_ptr[ecs_world_t], entity: ptr_uint) -> cstr
1939
+ external function ecs_doc_get_name(world: const_ptr[ecs_world_t], entity: ptr_uint) -> cstr
1940
+ external function ecs_doc_get_brief(world: const_ptr[ecs_world_t], entity: ptr_uint) -> cstr
1941
+ external function ecs_doc_get_detail(world: const_ptr[ecs_world_t], entity: ptr_uint) -> cstr
1942
+ external function ecs_doc_get_link(world: const_ptr[ecs_world_t], entity: ptr_uint) -> cstr
1943
+ external function ecs_doc_get_color(world: const_ptr[ecs_world_t], entity: ptr_uint) -> cstr
1944
+
1945
+ type ecs_bool_t = bool
1946
+ type ecs_char_t = char
1947
+ type ecs_byte_t = ubyte
1948
+ type ecs_u8_t = ubyte
1949
+ type ecs_u16_t = ushort
1950
+ type ecs_u32_t = uint
1951
+ type ecs_u64_t = ptr_uint
1952
+ type ecs_uptr_t = ptr_uint
1953
+ type ecs_i8_t = byte
1954
+ type ecs_i16_t = short
1955
+ type ecs_i32_t = int
1956
+ type ecs_i64_t = ptr_int
1957
+ type ecs_iptr_t = ptr_int
1958
+ type ecs_f32_t = float
1959
+ type ecs_f64_t = double
1960
+ type ecs_string_t = ptr[char]
1961
+
1962
+ enum ecs_type_kind_t: int
1963
+ EcsPrimitiveType = 0
1964
+ EcsBitmaskType = 1
1965
+ EcsEnumType = 2
1966
+ EcsStructType = 3
1967
+ EcsArrayType = 4
1968
+ EcsVectorType = 5
1969
+ EcsOpaqueType = 6
1970
+ EcsTypeKindLast = 6
1971
+
1972
+ struct EcsType:
1973
+ kind: ecs_type_kind_t
1974
+ existing: bool
1975
+ partial: bool
1976
+
1977
+ enum ecs_primitive_kind_t: int
1978
+ EcsBool = 1
1979
+ EcsChar = 2
1980
+ EcsByte = 3
1981
+ EcsU8 = 4
1982
+ EcsU16 = 5
1983
+ EcsU32 = 6
1984
+ EcsU64 = 7
1985
+ EcsI8 = 8
1986
+ EcsI16 = 9
1987
+ EcsI32 = 10
1988
+ EcsI64 = 11
1989
+ EcsF32 = 12
1990
+ EcsF64 = 13
1991
+ EcsUPtr = 14
1992
+ EcsIPtr = 15
1993
+ EcsString = 16
1994
+ EcsEntity = 17
1995
+ EcsId = 18
1996
+ EcsPrimitiveKindLast = 18
1997
+
1998
+ struct EcsPrimitive:
1999
+ kind: ecs_primitive_kind_t
2000
+
2001
+ struct EcsMember:
2002
+ type_: ptr_uint
2003
+ count: int
2004
+ unit: ptr_uint
2005
+ offset: int
2006
+ use_offset: bool
2007
+
2008
+ struct ecs_member_value_range_t:
2009
+ min: double
2010
+ max: double
2011
+
2012
+ struct EcsMemberRanges:
2013
+ value: ecs_member_value_range_t
2014
+ warning: ecs_member_value_range_t
2015
+ error: ecs_member_value_range_t
2016
+
2017
+ struct ecs_member_t:
2018
+ name: cstr
2019
+ type_: ptr_uint
2020
+ count: int
2021
+ offset: int
2022
+ unit: ptr_uint
2023
+ use_offset: bool
2024
+ range: ecs_member_value_range_t
2025
+ error_range: ecs_member_value_range_t
2026
+ warning_range: ecs_member_value_range_t
2027
+ size: int
2028
+ member: ptr_uint
2029
+
2030
+ struct EcsStruct:
2031
+ members: ecs_vec_t
2032
+
2033
+ struct ecs_enum_constant_t:
2034
+ name: cstr
2035
+ value: ptr_int
2036
+ value_unsigned: ptr_uint
2037
+ constant: ptr_uint
2038
+
2039
+ struct EcsEnum:
2040
+ underlying_type: ptr_uint
2041
+
2042
+ struct ecs_bitmask_constant_t:
2043
+ name: cstr
2044
+ value: ptr_uint
2045
+ _unused: ptr_int
2046
+ constant: ptr_uint
2047
+
2048
+ struct EcsBitmask:
2049
+ dummy_: int
2050
+
2051
+ struct EcsConstants:
2052
+ constants: ptr[ecs_map_t]
2053
+ ordered_constants: ecs_vec_t
2054
+
2055
+ struct EcsArray:
2056
+ type_: ptr_uint
2057
+ count: int
2058
+
2059
+ struct EcsVector:
2060
+ type_: ptr_uint
2061
+
2062
+ struct ecs_serializer_t:
2063
+ value: fn(arg0: const_ptr[ecs_serializer_t], arg1: ecs_entity_t, arg2: const_ptr[void]) -> int
2064
+ member: fn(arg0: const_ptr[ecs_serializer_t], arg1: cstr) -> int
2065
+ world: const_ptr[ecs_world_t]
2066
+ ctx: ptr[void]
2067
+
2068
+ type ecs_meta_serialize_t = fn(arg0: const_ptr[ecs_serializer_t], arg1: const_ptr[void]) -> int
2069
+ type ecs_meta_serialize_member_t = fn(arg0: const_ptr[ecs_serializer_t], arg1: const_ptr[void], arg2: cstr) -> int
2070
+ type ecs_meta_serialize_element_t = fn(arg0: const_ptr[ecs_serializer_t], arg1: const_ptr[void], arg2: ptr_uint) -> int
2071
+
2072
+ struct EcsOpaque:
2073
+ as_type: ptr_uint
2074
+ serialize: fn(arg0: const_ptr[ecs_serializer_t], arg1: const_ptr[void]) -> int
2075
+ serialize_member: fn(arg0: const_ptr[ecs_serializer_t], arg1: const_ptr[void], arg2: cstr) -> int
2076
+ serialize_element: fn(arg0: const_ptr[ecs_serializer_t], arg1: const_ptr[void], arg2: ptr_uint) -> int
2077
+ assign_bool: fn(arg0: ptr[void], arg1: bool) -> void
2078
+ assign_char: fn(arg0: ptr[void], arg1: char) -> void
2079
+ assign_int: fn(arg0: ptr[void], arg1: long) -> void
2080
+ assign_uint: fn(arg0: ptr[void], arg1: ulong) -> void
2081
+ assign_float: fn(arg0: ptr[void], arg1: double) -> void
2082
+ assign_string: fn(arg0: ptr[void], arg1: cstr) -> void
2083
+ assign_entity: fn(arg0: ptr[void], arg1: ptr[ecs_world_t], arg2: ecs_entity_t) -> void
2084
+ assign_id: fn(arg0: ptr[void], arg1: ptr[ecs_world_t], arg2: ecs_id_t) -> void
2085
+ assign_null: fn(arg0: ptr[void]) -> void
2086
+ clear: fn(arg0: ptr[void]) -> void
2087
+ ensure_element: fn(arg0: ptr[void], arg1: ptr_uint) -> ptr[void]
2088
+ ensure_member: fn(arg0: ptr[void], arg1: cstr) -> ptr[void]
2089
+ count: fn(arg0: const_ptr[void]) -> ptr_uint
2090
+ resize: fn(arg0: ptr[void], arg1: ptr_uint) -> void
2091
+
2092
+ struct ecs_unit_translation_t:
2093
+ factor: int
2094
+ power: int
2095
+
2096
+ struct EcsUnit:
2097
+ symbol: ptr[char]
2098
+ prefix: ptr_uint
2099
+ base: ptr_uint
2100
+ over: ptr_uint
2101
+ translation: ecs_unit_translation_t
2102
+
2103
+ struct EcsUnitPrefix:
2104
+ symbol: ptr[char]
2105
+ translation: ecs_unit_translation_t
2106
+
2107
+ enum ecs_meta_op_kind_t: int
2108
+ EcsOpPushStruct = 0
2109
+ EcsOpPushArray = 1
2110
+ EcsOpPushVector = 2
2111
+ EcsOpPop = 3
2112
+ EcsOpOpaqueStruct = 4
2113
+ EcsOpOpaqueArray = 5
2114
+ EcsOpOpaqueVector = 6
2115
+ EcsOpForward = 7
2116
+ EcsOpScope = 8
2117
+ EcsOpOpaqueValue = 9
2118
+ EcsOpEnum = 10
2119
+ EcsOpBitmask = 11
2120
+ EcsOpPrimitive = 12
2121
+ EcsOpBool = 13
2122
+ EcsOpChar = 14
2123
+ EcsOpByte = 15
2124
+ EcsOpU8 = 16
2125
+ EcsOpU16 = 17
2126
+ EcsOpU32 = 18
2127
+ EcsOpU64 = 19
2128
+ EcsOpI8 = 20
2129
+ EcsOpI16 = 21
2130
+ EcsOpI32 = 22
2131
+ EcsOpI64 = 23
2132
+ EcsOpF32 = 24
2133
+ EcsOpF64 = 25
2134
+ EcsOpUPtr = 26
2135
+ EcsOpIPtr = 27
2136
+ EcsOpString = 28
2137
+ EcsOpEntity = 29
2138
+ EcsOpId = 30
2139
+ EcsMetaTypeOpKindLast = 30
2140
+
2141
+ struct ecs_meta_op_t:
2142
+ kind: ecs_meta_op_kind_t
2143
+ underlying_kind: ecs_meta_op_kind_t
2144
+ offset: int
2145
+ name: cstr
2146
+ elem_size: int
2147
+ op_count: short
2148
+ member_index: short
2149
+ type_: ptr_uint
2150
+ type_info: const_ptr[ecs_type_info_t]
2151
+ is_: ecs_meta_op_t_is
2152
+
2153
+ struct EcsTypeSerializer:
2154
+ kind: ecs_type_kind_t
2155
+ ops: ecs_vec_t
2156
+
2157
+ struct ecs_meta_scope_t:
2158
+ type_: ptr_uint
2159
+ ops: ptr[ecs_meta_op_t]
2160
+ ops_count: short
2161
+ ops_cur: short
2162
+ prev_depth: short
2163
+ ptr: ptr[void]
2164
+ opaque_: const_ptr[EcsOpaque]
2165
+ members: ptr[ecs_hashmap_t]
2166
+ is_collection: bool
2167
+ is_empty_scope: bool
2168
+ is_moved_scope: bool
2169
+ elem: int
2170
+ elem_count: int
2171
+
2172
+ struct ecs_meta_cursor_t:
2173
+ world: const_ptr[ecs_world_t]
2174
+ scope: array[ecs_meta_scope_t, 32]
2175
+ depth: short
2176
+ valid: bool
2177
+ is_primitive_scope: bool
2178
+ lookup_action: fn(arg0: ptr[ecs_world_t], arg1: cstr, arg2: ptr[void]) -> ecs_entity_t
2179
+ lookup_ctx: ptr[void]
2180
+
2181
+ external function ecs_meta_serializer_to_str(world: ptr[ecs_world_t], type_: ptr_uint) -> ptr[char]
2182
+ external function ecs_meta_cursor(world: const_ptr[ecs_world_t], type_: ptr_uint, ptr: ptr[void]) -> ecs_meta_cursor_t
2183
+ external function ecs_meta_get_ptr(cursor: ptr[ecs_meta_cursor_t]) -> ptr[void]
2184
+ external function ecs_meta_next(cursor: ptr[ecs_meta_cursor_t]) -> int
2185
+ external function ecs_meta_elem(cursor: ptr[ecs_meta_cursor_t], elem: int) -> int
2186
+ external function ecs_meta_member(cursor: ptr[ecs_meta_cursor_t], name: cstr) -> int
2187
+ external function ecs_meta_try_member(cursor: ptr[ecs_meta_cursor_t], name: cstr) -> int
2188
+ external function ecs_meta_dotmember(cursor: ptr[ecs_meta_cursor_t], name: cstr) -> int
2189
+ external function ecs_meta_try_dotmember(cursor: ptr[ecs_meta_cursor_t], name: cstr) -> int
2190
+ external function ecs_meta_push(cursor: ptr[ecs_meta_cursor_t]) -> int
2191
+ external function ecs_meta_pop(cursor: ptr[ecs_meta_cursor_t]) -> int
2192
+ external function ecs_meta_is_collection(cursor: const_ptr[ecs_meta_cursor_t]) -> bool
2193
+ external function ecs_meta_get_type(cursor: const_ptr[ecs_meta_cursor_t]) -> ecs_entity_t
2194
+ external function ecs_meta_get_unit(cursor: const_ptr[ecs_meta_cursor_t]) -> ecs_entity_t
2195
+ external function ecs_meta_get_member(cursor: const_ptr[ecs_meta_cursor_t]) -> cstr
2196
+ external function ecs_meta_get_member_id(cursor: const_ptr[ecs_meta_cursor_t]) -> ecs_entity_t
2197
+ external function ecs_meta_set_bool(cursor: ptr[ecs_meta_cursor_t], value: bool) -> int
2198
+ external function ecs_meta_set_char(cursor: ptr[ecs_meta_cursor_t], value: char) -> int
2199
+ external function ecs_meta_set_int(cursor: ptr[ecs_meta_cursor_t], value: ptr_int) -> int
2200
+ external function ecs_meta_set_uint(cursor: ptr[ecs_meta_cursor_t], value: ptr_uint) -> int
2201
+ external function ecs_meta_set_float(cursor: ptr[ecs_meta_cursor_t], value: double) -> int
2202
+ external function ecs_meta_set_string(cursor: ptr[ecs_meta_cursor_t], value: cstr) -> int
2203
+ external function ecs_meta_set_string_literal(cursor: ptr[ecs_meta_cursor_t], value: cstr) -> int
2204
+ external function ecs_meta_set_entity(cursor: ptr[ecs_meta_cursor_t], value: ptr_uint) -> int
2205
+ external function ecs_meta_set_id(cursor: ptr[ecs_meta_cursor_t], value: ptr_uint) -> int
2206
+ external function ecs_meta_set_null(cursor: ptr[ecs_meta_cursor_t]) -> int
2207
+ external function ecs_meta_set_value(cursor: ptr[ecs_meta_cursor_t], value: const_ptr[ecs_value_t]) -> int
2208
+ external function ecs_meta_get_bool(cursor: const_ptr[ecs_meta_cursor_t]) -> bool
2209
+ external function ecs_meta_get_char(cursor: const_ptr[ecs_meta_cursor_t]) -> char
2210
+ external function ecs_meta_get_int(cursor: const_ptr[ecs_meta_cursor_t]) -> long
2211
+ external function ecs_meta_get_uint(cursor: const_ptr[ecs_meta_cursor_t]) -> ulong
2212
+ external function ecs_meta_get_float(cursor: const_ptr[ecs_meta_cursor_t]) -> double
2213
+ external function ecs_meta_get_string(cursor: const_ptr[ecs_meta_cursor_t]) -> cstr
2214
+ external function ecs_meta_get_entity(cursor: const_ptr[ecs_meta_cursor_t]) -> ecs_entity_t
2215
+ external function ecs_meta_get_id(cursor: const_ptr[ecs_meta_cursor_t]) -> ecs_id_t
2216
+ external function ecs_meta_ptr_to_float(type_kind: ecs_primitive_kind_t, ptr: const_ptr[void]) -> double
2217
+ external function ecs_meta_op_get_elem_count(op: const_ptr[ecs_meta_op_t], ptr: const_ptr[void]) -> ecs_size_t
2218
+
2219
+ struct ecs_primitive_desc_t:
2220
+ entity: ptr_uint
2221
+ kind: ecs_primitive_kind_t
2222
+
2223
+ external function ecs_primitive_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_primitive_desc_t]) -> ecs_entity_t
2224
+
2225
+ struct ecs_enum_desc_t:
2226
+ entity: ptr_uint
2227
+ constants: array[ecs_enum_constant_t, 32]
2228
+ underlying_type: ptr_uint
2229
+
2230
+ external function ecs_enum_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_enum_desc_t]) -> ecs_entity_t
2231
+
2232
+ struct ecs_bitmask_desc_t:
2233
+ entity: ptr_uint
2234
+ constants: array[ecs_bitmask_constant_t, 32]
2235
+
2236
+ external function ecs_bitmask_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_bitmask_desc_t]) -> ecs_entity_t
2237
+
2238
+ struct ecs_array_desc_t:
2239
+ entity: ptr_uint
2240
+ type_: ptr_uint
2241
+ count: int
2242
+
2243
+ external function ecs_array_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_array_desc_t]) -> ecs_entity_t
2244
+
2245
+ struct ecs_vector_desc_t:
2246
+ entity: ptr_uint
2247
+ type_: ptr_uint
2248
+
2249
+ external function ecs_vector_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_vector_desc_t]) -> ecs_entity_t
2250
+
2251
+ struct ecs_struct_desc_t:
2252
+ entity: ptr_uint
2253
+ members: array[ecs_member_t, 32]
2254
+ create_member_entities: bool
2255
+
2256
+ external function ecs_struct_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_struct_desc_t]) -> ecs_entity_t
2257
+ external function ecs_struct_add_member(world: ptr[ecs_world_t], type_: ptr_uint, member: const_ptr[ecs_member_t]) -> int
2258
+ external function ecs_struct_get_member(world: ptr[ecs_world_t], type_: ptr_uint, name: cstr) -> ptr[ecs_member_t]
2259
+ external function ecs_struct_get_nth_member(world: ptr[ecs_world_t], type_: ptr_uint, i: int) -> ptr[ecs_member_t]
2260
+
2261
+ struct ecs_opaque_desc_t:
2262
+ entity: ptr_uint
2263
+ type_: EcsOpaque
2264
+
2265
+ external function ecs_opaque_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_opaque_desc_t]) -> ecs_entity_t
2266
+
2267
+ struct ecs_unit_desc_t:
2268
+ entity: ptr_uint
2269
+ symbol: cstr
2270
+ quantity: ptr_uint
2271
+ base: ptr_uint
2272
+ over: ptr_uint
2273
+ translation: ecs_unit_translation_t
2274
+ prefix: ptr_uint
2275
+
2276
+ external function ecs_unit_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_unit_desc_t]) -> ecs_entity_t
2277
+
2278
+ struct ecs_unit_prefix_desc_t:
2279
+ entity: ptr_uint
2280
+ symbol: cstr
2281
+ translation: ecs_unit_translation_t
2282
+
2283
+ external function ecs_unit_prefix_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_unit_prefix_desc_t]) -> ecs_entity_t
2284
+ external function ecs_quantity_init(world: ptr[ecs_world_t], desc: const_ptr[ecs_entity_desc_t]) -> ecs_entity_t
2285
+ external function ecs_meta_from_desc(world: ptr[ecs_world_t], component: ptr_uint, kind: ecs_type_kind_t, desc: cstr) -> int
2286
+ external function ecs_set_os_api_impl() -> void
2287
+ external function ecs_import(world: ptr[ecs_world_t], module_: fn(arg0: ptr[ecs_world_t]) -> void, module_name: cstr) -> ecs_entity_t
2288
+ external function ecs_import_c(world: ptr[ecs_world_t], module_: fn(arg0: ptr[ecs_world_t]) -> void, module_name_c: cstr) -> ecs_entity_t
2289
+ external function ecs_import_from_library(world: ptr[ecs_world_t], library_name: cstr, module_name: cstr) -> ecs_entity_t
2290
+ external function ecs_module_init(world: ptr[ecs_world_t], c_name: cstr, desc: const_ptr[ecs_component_desc_t]) -> ecs_entity_t
2291
+ external function ecs_cpp_get_type_name(type_name: ptr[char], func_name: cstr, len: ptr_uint, front_len: ptr_uint) -> ptr[char]
2292
+ external function ecs_cpp_get_symbol_name(symbol_name: ptr[char], type_name: cstr, len: ptr_uint) -> ptr[char]
2293
+ external function ecs_cpp_get_constant_name(constant_name: ptr[char], func_name: cstr, len: ptr_uint, back_len: ptr_uint) -> ptr[char]
2294
+ external function ecs_cpp_trim_module(world: ptr[ecs_world_t], type_name: cstr) -> cstr
2295
+
2296
+ type ecs_cpp_type_action_t = fn(arg0: ptr[ecs_world_t], arg1: ecs_entity_t) -> void
2297
+
2298
+ struct ecs_cpp_component_desc_t:
2299
+ id: ptr_uint
2300
+ ids_index: int
2301
+ name: cstr
2302
+ cpp_name: cstr
2303
+ cpp_symbol: cstr
2304
+ size: ptr_uint
2305
+ alignment: ptr_uint
2306
+ lifecycle_action: fn(arg0: ptr[ecs_world_t], arg1: ecs_entity_t) -> void
2307
+ enum_action: fn(arg0: ptr[ecs_world_t], arg1: ecs_entity_t) -> void
2308
+ is_component: bool
2309
+ explicit_registration: bool
2310
+
2311
+ external function ecs_cpp_component_register(world: ptr[ecs_world_t], desc: const_ptr[ecs_cpp_component_desc_t]) -> ecs_entity_t
2312
+ external function ecs_cpp_enum_init(world: ptr[ecs_world_t], id: ptr_uint, underlying_type: ptr_uint) -> void
2313
+ external function ecs_cpp_enum_constant_register(world: ptr[ecs_world_t], parent: ptr_uint, id: ptr_uint, name: cstr, value: ptr[void], value_type: ptr_uint, value_size: ptr_uint) -> ecs_entity_t
2314
+
2315
+ struct ecs_cpp_get_mut_t:
2316
+ world: ptr[ecs_world_t]
2317
+ stage: ptr[ecs_stage_t]
2318
+ ptr: ptr[void]
2319
+ call_modified: bool
2320
+
2321
+ external function ecs_cpp_set(world: ptr[ecs_world_t], entity: ptr_uint, component: ptr_uint, new_ptr: const_ptr[void], size: ptr_uint) -> ecs_cpp_get_mut_t
2322
+ external function ecs_cpp_assign(world: ptr[ecs_world_t], entity: ptr_uint, component: ptr_uint, new_ptr: const_ptr[void], size: ptr_uint) -> ecs_cpp_get_mut_t
2323
+ external function ecs_cpp_new(world: ptr[ecs_world_t], parent: ptr_uint, name: cstr, sep: cstr, root_sep: cstr) -> ecs_entity_t
2324
+ external function ecs_cpp_last_member(world: const_ptr[ecs_world_t], type_: ptr_uint) -> ptr[ecs_member_t]
2325
+
2326
+ const FLECS_VERSION_MAJOR: int = 4
2327
+ const FLECS_VERSION_MINOR: int = 1
2328
+ const FLECS_VERSION_PATCH: int = 6
2329
+ const FLECS_VERSION: cstr = c"4.1.6"
2330
+ const FLECS_HI_COMPONENT_ID: int = 256
2331
+ const FLECS_HI_ID_RECORD_ID: int = 1024
2332
+ const FLECS_SPARSE_PAGE_BITS: int = 6
2333
+ const FLECS_ENTITY_PAGE_BITS: int = 10
2334
+ const FLECS_ID_DESC_MAX: int = 32
2335
+ const FLECS_EVENT_DESC_MAX: int = 8
2336
+ const FLECS_VARIABLE_COUNT_MAX: int = 64
2337
+ const FLECS_TERM_COUNT_MAX: int = 32
2338
+ const FLECS_TERM_ARG_COUNT_MAX: int = 16
2339
+ const FLECS_QUERY_VARIABLE_COUNT_MAX: int = 64
2340
+ const FLECS_QUERY_SCOPE_NESTING_MAX: int = 8
2341
+ const FLECS_DAG_DEPTH_MAX: int = 128
2342
+ const FLECS_TREE_SPAWNER_DEPTH_CACHE_SIZE: int = 6
2343
+ const ECS_ROW_MASK: uint = 268435455
2344
+ const ECS_ROW_FLAGS_MASK: uint = ~268435455
2345
+ const ECS_ENTITY_MASK: ulong = 4294967295
2346
+ const ECS_STRBUF_INIT: ecs_strbuf_t = ecs_strbuf_t(
2347
+ content = null[ptr[char]],
2348
+ length = 0,
2349
+ size = 0,
2350
+ list_stack = array[ecs_strbuf_list_elem, 32](
2351
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2352
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2353
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2354
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2355
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2356
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2357
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2358
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2359
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2360
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2361
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2362
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2363
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2364
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2365
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2366
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2367
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2368
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2369
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2370
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2371
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2372
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2373
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2374
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2375
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2376
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2377
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2378
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2379
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2380
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2381
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]]),
2382
+ ecs_strbuf_list_elem(count = 0, separator = null[ptr[char]])
2383
+ ),
2384
+ list_sp = 0,
2385
+ small_string = array[char, 512](
2386
+ 0,
2387
+ 0,
2388
+ 0,
2389
+ 0,
2390
+ 0,
2391
+ 0,
2392
+ 0,
2393
+ 0,
2394
+ 0,
2395
+ 0,
2396
+ 0,
2397
+ 0,
2398
+ 0,
2399
+ 0,
2400
+ 0,
2401
+ 0,
2402
+ 0,
2403
+ 0,
2404
+ 0,
2405
+ 0,
2406
+ 0,
2407
+ 0,
2408
+ 0,
2409
+ 0,
2410
+ 0,
2411
+ 0,
2412
+ 0,
2413
+ 0,
2414
+ 0,
2415
+ 0,
2416
+ 0,
2417
+ 0,
2418
+ 0,
2419
+ 0,
2420
+ 0,
2421
+ 0,
2422
+ 0,
2423
+ 0,
2424
+ 0,
2425
+ 0,
2426
+ 0,
2427
+ 0,
2428
+ 0,
2429
+ 0,
2430
+ 0,
2431
+ 0,
2432
+ 0,
2433
+ 0,
2434
+ 0,
2435
+ 0,
2436
+ 0,
2437
+ 0,
2438
+ 0,
2439
+ 0,
2440
+ 0,
2441
+ 0,
2442
+ 0,
2443
+ 0,
2444
+ 0,
2445
+ 0,
2446
+ 0,
2447
+ 0,
2448
+ 0,
2449
+ 0,
2450
+ 0,
2451
+ 0,
2452
+ 0,
2453
+ 0,
2454
+ 0,
2455
+ 0,
2456
+ 0,
2457
+ 0,
2458
+ 0,
2459
+ 0,
2460
+ 0,
2461
+ 0,
2462
+ 0,
2463
+ 0,
2464
+ 0,
2465
+ 0,
2466
+ 0,
2467
+ 0,
2468
+ 0,
2469
+ 0,
2470
+ 0,
2471
+ 0,
2472
+ 0,
2473
+ 0,
2474
+ 0,
2475
+ 0,
2476
+ 0,
2477
+ 0,
2478
+ 0,
2479
+ 0,
2480
+ 0,
2481
+ 0,
2482
+ 0,
2483
+ 0,
2484
+ 0,
2485
+ 0,
2486
+ 0,
2487
+ 0,
2488
+ 0,
2489
+ 0,
2490
+ 0,
2491
+ 0,
2492
+ 0,
2493
+ 0,
2494
+ 0,
2495
+ 0,
2496
+ 0,
2497
+ 0,
2498
+ 0,
2499
+ 0,
2500
+ 0,
2501
+ 0,
2502
+ 0,
2503
+ 0,
2504
+ 0,
2505
+ 0,
2506
+ 0,
2507
+ 0,
2508
+ 0,
2509
+ 0,
2510
+ 0,
2511
+ 0,
2512
+ 0,
2513
+ 0,
2514
+ 0,
2515
+ 0,
2516
+ 0,
2517
+ 0,
2518
+ 0,
2519
+ 0,
2520
+ 0,
2521
+ 0,
2522
+ 0,
2523
+ 0,
2524
+ 0,
2525
+ 0,
2526
+ 0,
2527
+ 0,
2528
+ 0,
2529
+ 0,
2530
+ 0,
2531
+ 0,
2532
+ 0,
2533
+ 0,
2534
+ 0,
2535
+ 0,
2536
+ 0,
2537
+ 0,
2538
+ 0,
2539
+ 0,
2540
+ 0,
2541
+ 0,
2542
+ 0,
2543
+ 0,
2544
+ 0,
2545
+ 0,
2546
+ 0,
2547
+ 0,
2548
+ 0,
2549
+ 0,
2550
+ 0,
2551
+ 0,
2552
+ 0,
2553
+ 0,
2554
+ 0,
2555
+ 0,
2556
+ 0,
2557
+ 0,
2558
+ 0,
2559
+ 0,
2560
+ 0,
2561
+ 0,
2562
+ 0,
2563
+ 0,
2564
+ 0,
2565
+ 0,
2566
+ 0,
2567
+ 0,
2568
+ 0,
2569
+ 0,
2570
+ 0,
2571
+ 0,
2572
+ 0,
2573
+ 0,
2574
+ 0,
2575
+ 0,
2576
+ 0,
2577
+ 0,
2578
+ 0,
2579
+ 0,
2580
+ 0,
2581
+ 0,
2582
+ 0,
2583
+ 0,
2584
+ 0,
2585
+ 0,
2586
+ 0,
2587
+ 0,
2588
+ 0,
2589
+ 0,
2590
+ 0,
2591
+ 0,
2592
+ 0,
2593
+ 0,
2594
+ 0,
2595
+ 0,
2596
+ 0,
2597
+ 0,
2598
+ 0,
2599
+ 0,
2600
+ 0,
2601
+ 0,
2602
+ 0,
2603
+ 0,
2604
+ 0,
2605
+ 0,
2606
+ 0,
2607
+ 0,
2608
+ 0,
2609
+ 0,
2610
+ 0,
2611
+ 0,
2612
+ 0,
2613
+ 0,
2614
+ 0,
2615
+ 0,
2616
+ 0,
2617
+ 0,
2618
+ 0,
2619
+ 0,
2620
+ 0,
2621
+ 0,
2622
+ 0,
2623
+ 0,
2624
+ 0,
2625
+ 0,
2626
+ 0,
2627
+ 0,
2628
+ 0,
2629
+ 0,
2630
+ 0,
2631
+ 0,
2632
+ 0,
2633
+ 0,
2634
+ 0,
2635
+ 0,
2636
+ 0,
2637
+ 0,
2638
+ 0,
2639
+ 0,
2640
+ 0,
2641
+ 0,
2642
+ 0,
2643
+ 0,
2644
+ 0,
2645
+ 0,
2646
+ 0,
2647
+ 0,
2648
+ 0,
2649
+ 0,
2650
+ 0,
2651
+ 0,
2652
+ 0,
2653
+ 0,
2654
+ 0,
2655
+ 0,
2656
+ 0,
2657
+ 0,
2658
+ 0,
2659
+ 0,
2660
+ 0,
2661
+ 0,
2662
+ 0,
2663
+ 0,
2664
+ 0,
2665
+ 0,
2666
+ 0,
2667
+ 0,
2668
+ 0,
2669
+ 0,
2670
+ 0,
2671
+ 0,
2672
+ 0,
2673
+ 0,
2674
+ 0,
2675
+ 0,
2676
+ 0,
2677
+ 0,
2678
+ 0,
2679
+ 0,
2680
+ 0,
2681
+ 0,
2682
+ 0,
2683
+ 0,
2684
+ 0,
2685
+ 0,
2686
+ 0,
2687
+ 0,
2688
+ 0,
2689
+ 0,
2690
+ 0,
2691
+ 0,
2692
+ 0,
2693
+ 0,
2694
+ 0,
2695
+ 0,
2696
+ 0,
2697
+ 0,
2698
+ 0,
2699
+ 0,
2700
+ 0,
2701
+ 0,
2702
+ 0,
2703
+ 0,
2704
+ 0,
2705
+ 0,
2706
+ 0,
2707
+ 0,
2708
+ 0,
2709
+ 0,
2710
+ 0,
2711
+ 0,
2712
+ 0,
2713
+ 0,
2714
+ 0,
2715
+ 0,
2716
+ 0,
2717
+ 0,
2718
+ 0,
2719
+ 0,
2720
+ 0,
2721
+ 0,
2722
+ 0,
2723
+ 0,
2724
+ 0,
2725
+ 0,
2726
+ 0,
2727
+ 0,
2728
+ 0,
2729
+ 0,
2730
+ 0,
2731
+ 0,
2732
+ 0,
2733
+ 0,
2734
+ 0,
2735
+ 0,
2736
+ 0,
2737
+ 0,
2738
+ 0,
2739
+ 0,
2740
+ 0,
2741
+ 0,
2742
+ 0,
2743
+ 0,
2744
+ 0,
2745
+ 0,
2746
+ 0,
2747
+ 0,
2748
+ 0,
2749
+ 0,
2750
+ 0,
2751
+ 0,
2752
+ 0,
2753
+ 0,
2754
+ 0,
2755
+ 0,
2756
+ 0,
2757
+ 0,
2758
+ 0,
2759
+ 0,
2760
+ 0,
2761
+ 0,
2762
+ 0,
2763
+ 0,
2764
+ 0,
2765
+ 0,
2766
+ 0,
2767
+ 0,
2768
+ 0,
2769
+ 0,
2770
+ 0,
2771
+ 0,
2772
+ 0,
2773
+ 0,
2774
+ 0,
2775
+ 0,
2776
+ 0,
2777
+ 0,
2778
+ 0,
2779
+ 0,
2780
+ 0,
2781
+ 0,
2782
+ 0,
2783
+ 0,
2784
+ 0,
2785
+ 0,
2786
+ 0,
2787
+ 0,
2788
+ 0,
2789
+ 0,
2790
+ 0,
2791
+ 0,
2792
+ 0,
2793
+ 0,
2794
+ 0,
2795
+ 0,
2796
+ 0,
2797
+ 0,
2798
+ 0,
2799
+ 0,
2800
+ 0,
2801
+ 0,
2802
+ 0,
2803
+ 0,
2804
+ 0,
2805
+ 0,
2806
+ 0,
2807
+ 0,
2808
+ 0,
2809
+ 0,
2810
+ 0,
2811
+ 0,
2812
+ 0,
2813
+ 0,
2814
+ 0,
2815
+ 0,
2816
+ 0,
2817
+ 0,
2818
+ 0,
2819
+ 0,
2820
+ 0,
2821
+ 0,
2822
+ 0,
2823
+ 0,
2824
+ 0,
2825
+ 0,
2826
+ 0,
2827
+ 0,
2828
+ 0,
2829
+ 0,
2830
+ 0,
2831
+ 0,
2832
+ 0,
2833
+ 0,
2834
+ 0,
2835
+ 0,
2836
+ 0,
2837
+ 0,
2838
+ 0,
2839
+ 0,
2840
+ 0,
2841
+ 0,
2842
+ 0,
2843
+ 0,
2844
+ 0,
2845
+ 0,
2846
+ 0,
2847
+ 0,
2848
+ 0,
2849
+ 0,
2850
+ 0,
2851
+ 0,
2852
+ 0,
2853
+ 0,
2854
+ 0,
2855
+ 0,
2856
+ 0,
2857
+ 0,
2858
+ 0,
2859
+ 0,
2860
+ 0,
2861
+ 0,
2862
+ 0,
2863
+ 0,
2864
+ 0,
2865
+ 0,
2866
+ 0,
2867
+ 0,
2868
+ 0,
2869
+ 0,
2870
+ 0,
2871
+ 0,
2872
+ 0,
2873
+ 0,
2874
+ 0,
2875
+ 0,
2876
+ 0,
2877
+ 0,
2878
+ 0,
2879
+ 0,
2880
+ 0,
2881
+ 0,
2882
+ 0,
2883
+ 0,
2884
+ 0,
2885
+ 0,
2886
+ 0,
2887
+ 0,
2888
+ 0,
2889
+ 0,
2890
+ 0,
2891
+ 0,
2892
+ 0,
2893
+ 0,
2894
+ 0,
2895
+ 0,
2896
+ 0,
2897
+ 0
2898
+ )
2899
+ )
2900
+ const ECS_STRBUF_SMALL_STRING_SIZE: int = 512
2901
+ const ECS_STRBUF_MAX_LIST_DEPTH: int = 32
2902
+ const ECS_MAX_RECURSION: int = 512
2903
+ const ECS_MAX_TOKEN_SIZE: int = 256
2904
+ const ECS_INVALID_OPERATION: int = 1
2905
+ const ECS_INVALID_PARAMETER: int = 2
2906
+ const ECS_CONSTRAINT_VIOLATED: int = 3
2907
+ const ECS_OUT_OF_MEMORY: int = 4
2908
+ const ECS_OUT_OF_RANGE: int = 5
2909
+ const ECS_UNSUPPORTED: int = 6
2910
+ const ECS_INTERNAL_ERROR: int = 7
2911
+ const ECS_ALREADY_DEFINED: int = 8
2912
+ const ECS_MISSING_OS_API: int = 9
2913
+ const ECS_OPERATION_FAILED: int = 10
2914
+ const ECS_INVALID_CONVERSION: int = 11
2915
+ const ECS_CYCLE_DETECTED: int = 13
2916
+ const ECS_LEAK_DETECTED: int = 14
2917
+ const ECS_DOUBLE_FREE: int = 15
2918
+ const ECS_INCONSISTENT_NAME: int = 20
2919
+ const ECS_NAME_IN_USE: int = 21
2920
+ const ECS_INVALID_COMPONENT_SIZE: int = 23
2921
+ const ECS_INVALID_COMPONENT_ALIGNMENT: int = 24
2922
+ const ECS_COMPONENT_NOT_REGISTERED: int = 25
2923
+ const ECS_INCONSISTENT_COMPONENT_ID: int = 26
2924
+ const ECS_INCONSISTENT_COMPONENT_ACTION: int = 27
2925
+ const ECS_MODULE_UNDEFINED: int = 28
2926
+ const ECS_MISSING_SYMBOL: int = 29
2927
+ const ECS_ALREADY_IN_USE: int = 30
2928
+ const ECS_ACCESS_VIOLATION: int = 40
2929
+ const ECS_COLUMN_INDEX_OUT_OF_RANGE: int = 41
2930
+ const ECS_COLUMN_IS_NOT_SHARED: int = 42
2931
+ const ECS_COLUMN_IS_SHARED: int = 43
2932
+ const ECS_COLUMN_TYPE_MISMATCH: int = 45
2933
+ const ECS_INVALID_WHILE_READONLY: int = 70
2934
+ const ECS_LOCKED_STORAGE: int = 71
2935
+ const ECS_INVALID_FROM_WORKER: int = 72
2936
+ const ECS_HTTP_HEADER_COUNT_MAX: int = 32
2937
+ const ECS_HTTP_QUERY_PARAM_COUNT_MAX: int = 32
2938
+ const ECS_REST_DEFAULT_PORT: int = 27750
2939
+ const ECS_STAT_WINDOW: int = 60
2940
+ const ECS_TABLE_MEMORY_HISTOGRAM_BUCKET_COUNT: int = 14
2941
+ const ECS_ALERT_MAX_SEVERITY_FILTERS: int = 4
2942
+ const FLECS_SCRIPT_FUNCTION_ARGS_MAX: int = 16
2943
+ const FLECS_SCRIPT_VECTOR_FUNCTION_COUNT: int = 18
2944
+ const ECS_MEMBER_DESC_CACHE_SIZE: int = 32
2945
+ const ECS_META_MAX_SCOPE_DEPTH: int = 32