From 2cdef5066b8672259d64189d9250d0d053d3dc74 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 22 Aug 2023 21:48:30 -0400 Subject: [PATCH] Bump ext/flecs from `c32c426` to `b7bef98` (#206) * Bump ext/flecs from `c32c426` to `b7bef98` Bumps [ext/flecs](https://github.com/SanderMertens/flecs) from `c32c426` to `b7bef98`. - [Release notes](https://github.com/SanderMertens/flecs/releases) - [Commits](https://github.com/SanderMertens/flecs/compare/c32c42618c1867e847b276497cd12ce6c672d834...b7bef988ff9534bd198eec9f23c0825a065e2ea9) --- updated-dependencies: - dependency-name: ext/flecs dependency-type: direct:production ... Signed-off-by: dependabot[bot] * Update C# bindings --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: lithiumtoast <519592+lithiumtoast@users.noreply.github.com> --- ext/flecs | 2 +- .../Generated/AssemblyAttributes.gen.cs | 2 +- .../Generated/PInvoke.gen.cs | 165 +++++++++++------- .../Generated/AssemblyAttributes.gen.cs | 2 +- .../Generated/PInvoke.gen.cs | 153 ++++++++++------ 5 files changed, 201 insertions(+), 123 deletions(-) diff --git a/ext/flecs b/ext/flecs index c32c426..b7bef98 160000 --- a/ext/flecs +++ b/ext/flecs @@ -1 +1 @@ -Subproject commit c32c42618c1867e847b276497cd12ce6c672d834 +Subproject commit b7bef988ff9534bd198eec9f23c0825a065e2ea9 diff --git a/src/cs/production/Interop.Flecs.Core/Generated/AssemblyAttributes.gen.cs b/src/cs/production/Interop.Flecs.Core/Generated/AssemblyAttributes.gen.cs index ae011ff..6dc8346 100644 --- a/src/cs/production/Interop.Flecs.Core/Generated/AssemblyAttributes.gen.cs +++ b/src/cs/production/Interop.Flecs.Core/Generated/AssemblyAttributes.gen.cs @@ -1,6 +1,6 @@ // To disable generating this file set `isEnabledGenerateAssemblyAttributes` to `false` in the config file for generating C# code. // -// This code was generated by the following tool on 2023-08-21 00:45:40 GMT+00:00: +// This code was generated by the following tool on 2023-08-23 00:42:52 GMT+00:00: // https://github.com/bottlenoselabs/c2cs (v6.1.3.0) // // Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/src/cs/production/Interop.Flecs.Core/Generated/PInvoke.gen.cs b/src/cs/production/Interop.Flecs.Core/Generated/PInvoke.gen.cs index bef4703..4805a40 100644 --- a/src/cs/production/Interop.Flecs.Core/Generated/PInvoke.gen.cs +++ b/src/cs/production/Interop.Flecs.Core/Generated/PInvoke.gen.cs @@ -1,6 +1,6 @@ // -// This code was generated by the following tool on 2023-08-21 00:45:40 GMT+00:00: +// This code was generated by the following tool on 2023-08-23 00:42:52 GMT+00:00: // https://github.com/bottlenoselabs/c2cs (v6.1.3.0) // // Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. @@ -603,9 +603,14 @@ public static unsafe partial class PInvoke public static partial ecs_entity_t ecs_get_alive(ecs_world_t* world, ecs_entity_t e); [CNode(Kind = "Function")] - [LibraryImport(LibraryName, EntryPoint = "ecs_get_context")] + [LibraryImport(LibraryName, EntryPoint = "ecs_get_binding_ctx")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] - public static partial void* ecs_get_context(ecs_world_t* world); + public static partial void* ecs_get_binding_ctx(ecs_world_t* world); + + [CNode(Kind = "Function")] + [LibraryImport(LibraryName, EntryPoint = "ecs_get_ctx")] + [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] + public static partial void* ecs_get_ctx(ecs_world_t* world); [CNode(Kind = "Function")] [LibraryImport(LibraryName, EntryPoint = "ecs_get_depth")] @@ -652,16 +657,6 @@ public static unsafe partial class PInvoke [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] public static partial CString ecs_get_name(ecs_world_t* world, ecs_entity_t entity); - [CNode(Kind = "Function")] - [LibraryImport(LibraryName, EntryPoint = "ecs_get_observer_binding_ctx")] - [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] - public static partial void* ecs_get_observer_binding_ctx(ecs_world_t* world, ecs_entity_t observer); - - [CNode(Kind = "Function")] - [LibraryImport(LibraryName, EntryPoint = "ecs_get_observer_ctx")] - [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] - public static partial void* ecs_get_observer_ctx(ecs_world_t* world, ecs_entity_t observer); - [CNode(Kind = "Function")] [LibraryImport(LibraryName, EntryPoint = "ecs_get_parent")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] @@ -707,16 +702,6 @@ public static unsafe partial class PInvoke [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] public static partial CString ecs_get_symbol(ecs_world_t* world, ecs_entity_t entity); - [CNode(Kind = "Function")] - [LibraryImport(LibraryName, EntryPoint = "ecs_get_system_binding_ctx")] - [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] - public static partial void* ecs_get_system_binding_ctx(ecs_world_t* world, ecs_entity_t system); - - [CNode(Kind = "Function")] - [LibraryImport(LibraryName, EntryPoint = "ecs_get_system_ctx")] - [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] - public static partial void* ecs_get_system_ctx(ecs_world_t* world, ecs_entity_t system); - [CNode(Kind = "Function")] [LibraryImport(LibraryName, EntryPoint = "ecs_get_table")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] @@ -1432,6 +1417,16 @@ public static unsafe partial class PInvoke [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] public static partial CBool ecs_observer_default_run_action(ecs_iter_t* it); + [CNode(Kind = "Function")] + [LibraryImport(LibraryName, EntryPoint = "ecs_observer_get_binding_ctx")] + [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] + public static partial void* ecs_observer_get_binding_ctx(ecs_world_t* world, ecs_entity_t observer); + + [CNode(Kind = "Function")] + [LibraryImport(LibraryName, EntryPoint = "ecs_observer_get_ctx")] + [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] + public static partial void* ecs_observer_get_ctx(ecs_world_t* world, ecs_entity_t observer); + [CNode(Kind = "Function")] [LibraryImport(LibraryName, EntryPoint = "ecs_observer_init")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] @@ -1747,6 +1742,16 @@ public static unsafe partial class PInvoke [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] public static partial void ecs_query_fini(ecs_query_t* query); + [CNode(Kind = "Function")] + [LibraryImport(LibraryName, EntryPoint = "ecs_query_get_binding_ctx")] + [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] + public static partial void* ecs_query_get_binding_ctx(ecs_query_t* query); + + [CNode(Kind = "Function")] + [LibraryImport(LibraryName, EntryPoint = "ecs_query_get_ctx")] + [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] + public static partial void* ecs_query_get_ctx(ecs_query_t* query); + [CNode(Kind = "Function")] [LibraryImport(LibraryName, EntryPoint = "ecs_query_get_filter")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] @@ -2073,9 +2078,14 @@ public static unsafe partial class PInvoke public static partial void ecs_set_automerge(ecs_world_t* world, CBool automerge); [CNode(Kind = "Function")] - [LibraryImport(LibraryName, EntryPoint = "ecs_set_context")] + [LibraryImport(LibraryName, EntryPoint = "ecs_set_binding_ctx")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] - public static partial void ecs_set_context(ecs_world_t* world, void* ctx); + public static partial void ecs_set_binding_ctx(ecs_world_t* world, void* ctx, ecs_ctx_free_t ctx_free); + + [CNode(Kind = "Function")] + [LibraryImport(LibraryName, EntryPoint = "ecs_set_ctx")] + [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] + public static partial void ecs_set_ctx(ecs_world_t* world, void* ctx, ecs_ctx_free_t ctx_free); [CNode(Kind = "Function")] [LibraryImport(LibraryName, EntryPoint = "ecs_set_entity_generation")] @@ -2412,6 +2422,16 @@ public static unsafe partial class PInvoke [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] public static partial ecs_entity_t ecs_struct_init(ecs_world_t* world, ecs_struct_desc_t* desc); + [CNode(Kind = "Function")] + [LibraryImport(LibraryName, EntryPoint = "ecs_system_get_binding_ctx")] + [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] + public static partial void* ecs_system_get_binding_ctx(ecs_world_t* world, ecs_entity_t system); + + [CNode(Kind = "Function")] + [LibraryImport(LibraryName, EntryPoint = "ecs_system_get_ctx")] + [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] + public static partial void* ecs_system_get_ctx(ecs_world_t* world, ecs_entity_t system); + [CNode(Kind = "Function")] [LibraryImport(LibraryName, EntryPoint = "ecs_system_get_query")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] @@ -4644,24 +4664,27 @@ public struct ecs_entity_to_json_desc_t public CBool serialize_color; [FieldOffset(6)] // size = 1 - public CBool serialize_id_labels; + public CBool serialize_ids; [FieldOffset(7)] // size = 1 - public CBool serialize_base; + public CBool serialize_id_labels; [FieldOffset(8)] // size = 1 - public CBool serialize_private; + public CBool serialize_base; [FieldOffset(9)] // size = 1 - public CBool serialize_hidden; + public CBool serialize_private; [FieldOffset(10)] // size = 1 - public CBool serialize_values; + public CBool serialize_hidden; [FieldOffset(11)] // size = 1 - public CBool serialize_type_info; + public CBool serialize_values; [FieldOffset(12)] // size = 1 + public CBool serialize_type_info; + + [FieldOffset(13)] // size = 1 public CBool serialize_alerts; [FieldOffset(16)] // size = 8 @@ -5519,55 +5542,61 @@ public struct ecs_iter_t } [CNode(Kind = "Struct")] - [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 1)] + [StructLayout(LayoutKind.Explicit, Size = 18, Pack = 1)] public struct ecs_iter_to_json_desc_t { [FieldOffset(0)] // size = 1 public CBool serialize_term_ids; [FieldOffset(1)] // size = 1 - public CBool serialize_ids; + public CBool serialize_term_labels; [FieldOffset(2)] // size = 1 - public CBool serialize_sources; + public CBool serialize_ids; [FieldOffset(3)] // size = 1 - public CBool serialize_variables; + public CBool serialize_id_labels; [FieldOffset(4)] // size = 1 - public CBool serialize_is_set; + public CBool serialize_sources; [FieldOffset(5)] // size = 1 - public CBool serialize_values; + public CBool serialize_variables; [FieldOffset(6)] // size = 1 - public CBool serialize_entities; + public CBool serialize_is_set; [FieldOffset(7)] // size = 1 - public CBool serialize_entity_labels; + public CBool serialize_values; [FieldOffset(8)] // size = 1 - public CBool serialize_entity_ids; + public CBool serialize_entities; [FieldOffset(9)] // size = 1 - public CBool serialize_entity_names; + public CBool serialize_entity_labels; [FieldOffset(10)] // size = 1 - public CBool serialize_variable_labels; + public CBool serialize_entity_ids; [FieldOffset(11)] // size = 1 - public CBool serialize_variable_ids; + public CBool serialize_entity_names; [FieldOffset(12)] // size = 1 - public CBool serialize_colors; + public CBool serialize_variable_labels; [FieldOffset(13)] // size = 1 - public CBool measure_eval_duration; + public CBool serialize_variable_ids; [FieldOffset(14)] // size = 1 - public CBool serialize_type_info; + public CBool serialize_colors; [FieldOffset(15)] // size = 1 + public CBool measure_eval_duration; + + [FieldOffset(16)] // size = 1 + public CBool serialize_type_info; + + [FieldOffset(17)] // size = 1 public CBool serialize_table; } @@ -6220,13 +6249,13 @@ public string expr } [CNode(Kind = "Struct")] - [StructLayout(LayoutKind.Explicit, Size = 2584, Pack = 8)] + [StructLayout(LayoutKind.Explicit, Size = 2616, Pack = 8)] public struct ecs_pipeline_desc_t { [FieldOffset(0)] // size = 8 public ecs_entity_t entity; - [FieldOffset(8)] // size = 2576 + [FieldOffset(8)] // size = 2608 public ecs_query_desc_t query; } @@ -6268,7 +6297,7 @@ public struct ecs_primitive_desc_t } [CNode(Kind = "Struct")] - [StructLayout(LayoutKind.Explicit, Size = 2576, Pack = 8)] + [StructLayout(LayoutKind.Explicit, Size = 2608, Pack = 8)] public struct ecs_query_desc_t { [FieldOffset(0)] // size = 4 @@ -6306,6 +6335,18 @@ public struct ecs_query_desc_t [FieldOffset(2568)] // size = 8 public ecs_query_t* parent; + + [FieldOffset(2576)] // size = 8 + public void* ctx; + + [FieldOffset(2584)] // size = 8 + public void* binding_ctx; + + [FieldOffset(2592)] // size = 8 + public ecs_ctx_free_t ctx_free; + + [FieldOffset(2600)] // size = 8 + public ecs_ctx_free_t binding_ctx_free; } [CNode(Kind = "Struct")] @@ -6775,7 +6816,7 @@ public readonly Span members } [CNode(Kind = "Struct")] - [StructLayout(LayoutKind.Explicit, Size = 2664, Pack = 8)] + [StructLayout(LayoutKind.Explicit, Size = 2696, Pack = 8)] public struct ecs_system_desc_t { [FieldOffset(0)] // size = 4 @@ -6784,40 +6825,40 @@ public struct ecs_system_desc_t [FieldOffset(8)] // size = 8 public ecs_entity_t entity; - [FieldOffset(16)] // size = 2576 + [FieldOffset(16)] // size = 2608 public ecs_query_desc_t query; - [FieldOffset(2592)] // size = 8 + [FieldOffset(2624)] // size = 8 public ecs_run_action_t run; - [FieldOffset(2600)] // size = 8 + [FieldOffset(2632)] // size = 8 public ecs_iter_action_t callback; - [FieldOffset(2608)] // size = 8 + [FieldOffset(2640)] // size = 8 public void* ctx; - [FieldOffset(2616)] // size = 8 + [FieldOffset(2648)] // size = 8 public void* binding_ctx; - [FieldOffset(2624)] // size = 8 + [FieldOffset(2656)] // size = 8 public ecs_ctx_free_t ctx_free; - [FieldOffset(2632)] // size = 8 + [FieldOffset(2664)] // size = 8 public ecs_ctx_free_t binding_ctx_free; - [FieldOffset(2640)] // size = 4 + [FieldOffset(2672)] // size = 4 public float interval; - [FieldOffset(2644)] // size = 4 + [FieldOffset(2676)] // size = 4 public int rate; - [FieldOffset(2648)] // size = 8 + [FieldOffset(2680)] // size = 8 public ecs_entity_t tick_source; - [FieldOffset(2656)] // size = 1 + [FieldOffset(2688)] // size = 1 public CBool multi_threaded; - [FieldOffset(2657)] // size = 1 + [FieldOffset(2689)] // size = 1 public CBool no_readonly; } diff --git a/src/cs/production/Interop.Flecs.Unity/Generated/AssemblyAttributes.gen.cs b/src/cs/production/Interop.Flecs.Unity/Generated/AssemblyAttributes.gen.cs index fc4c8d6..3d1cdf6 100644 --- a/src/cs/production/Interop.Flecs.Unity/Generated/AssemblyAttributes.gen.cs +++ b/src/cs/production/Interop.Flecs.Unity/Generated/AssemblyAttributes.gen.cs @@ -1,6 +1,6 @@ // To disable generating this file set `isEnabledGenerateAssemblyAttributes` to `false` in the config file for generating C# code. // -// This code was generated by the following tool on 2023-08-21 00:46:08 GMT+00:00: +// This code was generated by the following tool on 2023-08-23 00:43:14 GMT+00:00: // https://github.com/bottlenoselabs/c2cs (v6.1.3.0) // // Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/src/cs/production/Interop.Flecs.Unity/Generated/PInvoke.gen.cs b/src/cs/production/Interop.Flecs.Unity/Generated/PInvoke.gen.cs index 19c2118..f4c1ba4 100644 --- a/src/cs/production/Interop.Flecs.Unity/Generated/PInvoke.gen.cs +++ b/src/cs/production/Interop.Flecs.Unity/Generated/PInvoke.gen.cs @@ -1,6 +1,6 @@ // -// This code was generated by the following tool on 2023-08-21 00:46:08 GMT+00:00: +// This code was generated by the following tool on 2023-08-23 00:43:14 GMT+00:00: // https://github.com/bottlenoselabs/c2cs (v6.1.3.0) // // Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. @@ -489,8 +489,12 @@ public static unsafe partial class PInvoke public static extern ecs_entity_t ecs_get_alive(ecs_world_t* world, ecs_entity_t e); [CNode(Kind = "Function")] - [DllImport(LibraryName, EntryPoint = "ecs_get_context", CallingConvention = CallingConvention.Cdecl)] - public static extern void* ecs_get_context(ecs_world_t* world); + [DllImport(LibraryName, EntryPoint = "ecs_get_binding_ctx", CallingConvention = CallingConvention.Cdecl)] + public static extern void* ecs_get_binding_ctx(ecs_world_t* world); + + [CNode(Kind = "Function")] + [DllImport(LibraryName, EntryPoint = "ecs_get_ctx", CallingConvention = CallingConvention.Cdecl)] + public static extern void* ecs_get_ctx(ecs_world_t* world); [CNode(Kind = "Function")] [DllImport(LibraryName, EntryPoint = "ecs_get_depth", CallingConvention = CallingConvention.Cdecl)] @@ -528,14 +532,6 @@ public static unsafe partial class PInvoke [DllImport(LibraryName, EntryPoint = "ecs_get_name", CallingConvention = CallingConvention.Cdecl)] public static extern CString ecs_get_name(ecs_world_t* world, ecs_entity_t entity); - [CNode(Kind = "Function")] - [DllImport(LibraryName, EntryPoint = "ecs_get_observer_binding_ctx", CallingConvention = CallingConvention.Cdecl)] - public static extern void* ecs_get_observer_binding_ctx(ecs_world_t* world, ecs_entity_t observer); - - [CNode(Kind = "Function")] - [DllImport(LibraryName, EntryPoint = "ecs_get_observer_ctx", CallingConvention = CallingConvention.Cdecl)] - public static extern void* ecs_get_observer_ctx(ecs_world_t* world, ecs_entity_t observer); - [CNode(Kind = "Function")] [DllImport(LibraryName, EntryPoint = "ecs_get_parent", CallingConvention = CallingConvention.Cdecl)] public static extern ecs_entity_t ecs_get_parent(ecs_world_t* world, ecs_entity_t entity); @@ -572,14 +568,6 @@ public static unsafe partial class PInvoke [DllImport(LibraryName, EntryPoint = "ecs_get_symbol", CallingConvention = CallingConvention.Cdecl)] public static extern CString ecs_get_symbol(ecs_world_t* world, ecs_entity_t entity); - [CNode(Kind = "Function")] - [DllImport(LibraryName, EntryPoint = "ecs_get_system_binding_ctx", CallingConvention = CallingConvention.Cdecl)] - public static extern void* ecs_get_system_binding_ctx(ecs_world_t* world, ecs_entity_t system); - - [CNode(Kind = "Function")] - [DllImport(LibraryName, EntryPoint = "ecs_get_system_ctx", CallingConvention = CallingConvention.Cdecl)] - public static extern void* ecs_get_system_ctx(ecs_world_t* world, ecs_entity_t system); - [CNode(Kind = "Function")] [DllImport(LibraryName, EntryPoint = "ecs_get_table", CallingConvention = CallingConvention.Cdecl)] public static extern ecs_table_t* ecs_get_table(ecs_world_t* world, ecs_entity_t entity); @@ -1152,6 +1140,14 @@ public static unsafe partial class PInvoke [DllImport(LibraryName, EntryPoint = "ecs_observer_default_run_action", CallingConvention = CallingConvention.Cdecl)] public static extern CBool ecs_observer_default_run_action(ecs_iter_t* it); + [CNode(Kind = "Function")] + [DllImport(LibraryName, EntryPoint = "ecs_observer_get_binding_ctx", CallingConvention = CallingConvention.Cdecl)] + public static extern void* ecs_observer_get_binding_ctx(ecs_world_t* world, ecs_entity_t observer); + + [CNode(Kind = "Function")] + [DllImport(LibraryName, EntryPoint = "ecs_observer_get_ctx", CallingConvention = CallingConvention.Cdecl)] + public static extern void* ecs_observer_get_ctx(ecs_world_t* world, ecs_entity_t observer); + [CNode(Kind = "Function")] [DllImport(LibraryName, EntryPoint = "ecs_observer_init", CallingConvention = CallingConvention.Cdecl)] public static extern ecs_entity_t ecs_observer_init(ecs_world_t* world, ecs_observer_desc_t* desc); @@ -1404,6 +1400,14 @@ public static unsafe partial class PInvoke [DllImport(LibraryName, EntryPoint = "ecs_query_fini", CallingConvention = CallingConvention.Cdecl)] public static extern void ecs_query_fini(ecs_query_t* query); + [CNode(Kind = "Function")] + [DllImport(LibraryName, EntryPoint = "ecs_query_get_binding_ctx", CallingConvention = CallingConvention.Cdecl)] + public static extern void* ecs_query_get_binding_ctx(ecs_query_t* query); + + [CNode(Kind = "Function")] + [DllImport(LibraryName, EntryPoint = "ecs_query_get_ctx", CallingConvention = CallingConvention.Cdecl)] + public static extern void* ecs_query_get_ctx(ecs_query_t* query); + [CNode(Kind = "Function")] [DllImport(LibraryName, EntryPoint = "ecs_query_get_filter", CallingConvention = CallingConvention.Cdecl)] public static extern ecs_filter_t* ecs_query_get_filter(ecs_query_t* query); @@ -1665,8 +1669,12 @@ public static unsafe partial class PInvoke public static extern void ecs_set_automerge(ecs_world_t* world, CBool automerge); [CNode(Kind = "Function")] - [DllImport(LibraryName, EntryPoint = "ecs_set_context", CallingConvention = CallingConvention.Cdecl)] - public static extern void ecs_set_context(ecs_world_t* world, void* ctx); + [DllImport(LibraryName, EntryPoint = "ecs_set_binding_ctx", CallingConvention = CallingConvention.Cdecl)] + public static extern void ecs_set_binding_ctx(ecs_world_t* world, void* ctx, ecs_ctx_free_t ctx_free); + + [CNode(Kind = "Function")] + [DllImport(LibraryName, EntryPoint = "ecs_set_ctx", CallingConvention = CallingConvention.Cdecl)] + public static extern void ecs_set_ctx(ecs_world_t* world, void* ctx, ecs_ctx_free_t ctx_free); [CNode(Kind = "Function")] [DllImport(LibraryName, EntryPoint = "ecs_set_entity_generation", CallingConvention = CallingConvention.Cdecl)] @@ -1936,6 +1944,14 @@ public static unsafe partial class PInvoke [DllImport(LibraryName, EntryPoint = "ecs_struct_init", CallingConvention = CallingConvention.Cdecl)] public static extern ecs_entity_t ecs_struct_init(ecs_world_t* world, ecs_struct_desc_t* desc); + [CNode(Kind = "Function")] + [DllImport(LibraryName, EntryPoint = "ecs_system_get_binding_ctx", CallingConvention = CallingConvention.Cdecl)] + public static extern void* ecs_system_get_binding_ctx(ecs_world_t* world, ecs_entity_t system); + + [CNode(Kind = "Function")] + [DllImport(LibraryName, EntryPoint = "ecs_system_get_ctx", CallingConvention = CallingConvention.Cdecl)] + public static extern void* ecs_system_get_ctx(ecs_world_t* world, ecs_entity_t system); + [CNode(Kind = "Function")] [DllImport(LibraryName, EntryPoint = "ecs_system_get_query", CallingConvention = CallingConvention.Cdecl)] public static extern ecs_query_t* ecs_system_get_query(ecs_world_t* world, ecs_entity_t system); @@ -4432,24 +4448,27 @@ public struct ecs_entity_to_json_desc_t public CBool serialize_color; [FieldOffset(6)] // size = 1 - public CBool serialize_id_labels; + public CBool serialize_ids; [FieldOffset(7)] // size = 1 - public CBool serialize_base; + public CBool serialize_id_labels; [FieldOffset(8)] // size = 1 - public CBool serialize_private; + public CBool serialize_base; [FieldOffset(9)] // size = 1 - public CBool serialize_hidden; + public CBool serialize_private; [FieldOffset(10)] // size = 1 - public CBool serialize_values; + public CBool serialize_hidden; [FieldOffset(11)] // size = 1 - public CBool serialize_type_info; + public CBool serialize_values; [FieldOffset(12)] // size = 1 + public CBool serialize_type_info; + + [FieldOffset(13)] // size = 1 public CBool serialize_alerts; [FieldOffset(16)] // size = 8 @@ -5307,55 +5326,61 @@ public struct ecs_iter_t } [CNode(Kind = "Struct")] - [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 1)] + [StructLayout(LayoutKind.Explicit, Size = 18, Pack = 1)] public struct ecs_iter_to_json_desc_t { [FieldOffset(0)] // size = 1 public CBool serialize_term_ids; [FieldOffset(1)] // size = 1 - public CBool serialize_ids; + public CBool serialize_term_labels; [FieldOffset(2)] // size = 1 - public CBool serialize_sources; + public CBool serialize_ids; [FieldOffset(3)] // size = 1 - public CBool serialize_variables; + public CBool serialize_id_labels; [FieldOffset(4)] // size = 1 - public CBool serialize_is_set; + public CBool serialize_sources; [FieldOffset(5)] // size = 1 - public CBool serialize_values; + public CBool serialize_variables; [FieldOffset(6)] // size = 1 - public CBool serialize_entities; + public CBool serialize_is_set; [FieldOffset(7)] // size = 1 - public CBool serialize_entity_labels; + public CBool serialize_values; [FieldOffset(8)] // size = 1 - public CBool serialize_entity_ids; + public CBool serialize_entities; [FieldOffset(9)] // size = 1 - public CBool serialize_entity_names; + public CBool serialize_entity_labels; [FieldOffset(10)] // size = 1 - public CBool serialize_variable_labels; + public CBool serialize_entity_ids; [FieldOffset(11)] // size = 1 - public CBool serialize_variable_ids; + public CBool serialize_entity_names; [FieldOffset(12)] // size = 1 - public CBool serialize_colors; + public CBool serialize_variable_labels; [FieldOffset(13)] // size = 1 - public CBool measure_eval_duration; + public CBool serialize_variable_ids; [FieldOffset(14)] // size = 1 - public CBool serialize_type_info; + public CBool serialize_colors; [FieldOffset(15)] // size = 1 + public CBool measure_eval_duration; + + [FieldOffset(16)] // size = 1 + public CBool serialize_type_info; + + [FieldOffset(17)] // size = 1 public CBool serialize_table; } @@ -6008,13 +6033,13 @@ public string expr } [CNode(Kind = "Struct")] - [StructLayout(LayoutKind.Explicit, Size = 2584, Pack = 8)] + [StructLayout(LayoutKind.Explicit, Size = 2616, Pack = 8)] public struct ecs_pipeline_desc_t { [FieldOffset(0)] // size = 8 public ecs_entity_t entity; - [FieldOffset(8)] // size = 2576 + [FieldOffset(8)] // size = 2608 public ecs_query_desc_t query; } @@ -6056,7 +6081,7 @@ public struct ecs_primitive_desc_t } [CNode(Kind = "Struct")] - [StructLayout(LayoutKind.Explicit, Size = 2576, Pack = 8)] + [StructLayout(LayoutKind.Explicit, Size = 2608, Pack = 8)] public struct ecs_query_desc_t { [FieldOffset(0)] // size = 4 @@ -6094,6 +6119,18 @@ public struct ecs_query_desc_t [FieldOffset(2568)] // size = 8 public ecs_query_t* parent; + + [FieldOffset(2576)] // size = 8 + public void* ctx; + + [FieldOffset(2584)] // size = 8 + public void* binding_ctx; + + [FieldOffset(2592)] // size = 8 + public ecs_ctx_free_t ctx_free; + + [FieldOffset(2600)] // size = 8 + public ecs_ctx_free_t binding_ctx_free; } [CNode(Kind = "Struct")] @@ -6563,7 +6600,7 @@ public readonly Span members } [CNode(Kind = "Struct")] - [StructLayout(LayoutKind.Explicit, Size = 2664, Pack = 8)] + [StructLayout(LayoutKind.Explicit, Size = 2696, Pack = 8)] public struct ecs_system_desc_t { [FieldOffset(0)] // size = 4 @@ -6572,40 +6609,40 @@ public struct ecs_system_desc_t [FieldOffset(8)] // size = 8 public ecs_entity_t entity; - [FieldOffset(16)] // size = 2576 + [FieldOffset(16)] // size = 2608 public ecs_query_desc_t query; - [FieldOffset(2592)] // size = 8 + [FieldOffset(2624)] // size = 8 public ecs_run_action_t run; - [FieldOffset(2600)] // size = 8 + [FieldOffset(2632)] // size = 8 public ecs_iter_action_t callback; - [FieldOffset(2608)] // size = 8 + [FieldOffset(2640)] // size = 8 public void* ctx; - [FieldOffset(2616)] // size = 8 + [FieldOffset(2648)] // size = 8 public void* binding_ctx; - [FieldOffset(2624)] // size = 8 + [FieldOffset(2656)] // size = 8 public ecs_ctx_free_t ctx_free; - [FieldOffset(2632)] // size = 8 + [FieldOffset(2664)] // size = 8 public ecs_ctx_free_t binding_ctx_free; - [FieldOffset(2640)] // size = 4 + [FieldOffset(2672)] // size = 4 public float interval; - [FieldOffset(2644)] // size = 4 + [FieldOffset(2676)] // size = 4 public int rate; - [FieldOffset(2648)] // size = 8 + [FieldOffset(2680)] // size = 8 public ecs_entity_t tick_source; - [FieldOffset(2656)] // size = 1 + [FieldOffset(2688)] // size = 1 public CBool multi_threaded; - [FieldOffset(2657)] // size = 1 + [FieldOffset(2689)] // size = 1 public CBool no_readonly; }