From 3b185167fd53b5b88336dd9983de7c8586cf58a9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 19 Aug 2023 21:10:45 -0400 Subject: [PATCH] Bump ext/flecs from `304a5df` to `1e551ae` (#204) * Bump ext/flecs from `304a5df` to `1e551ae` Bumps [ext/flecs](https://github.com/SanderMertens/flecs) from `304a5df` to `1e551ae`. - [Release notes](https://github.com/SanderMertens/flecs/releases) - [Commits](https://github.com/SanderMertens/flecs/compare/304a5df156dafbbb4949abf7bf313ffca6ce1c60...1e551ae211d8f61b67a338b6c013856a993d1ac1) --- 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 | 43 +++++++++++-------- .../Generated/AssemblyAttributes.gen.cs | 2 +- .../Generated/PInvoke.gen.cs | 38 ++++++++-------- 5 files changed, 48 insertions(+), 39 deletions(-) diff --git a/ext/flecs b/ext/flecs index 304a5df..1e551ae 160000 --- a/ext/flecs +++ b/ext/flecs @@ -1 +1 @@ -Subproject commit 304a5df156dafbbb4949abf7bf313ffca6ce1c60 +Subproject commit 1e551ae211d8f61b67a338b6c013856a993d1ac1 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 fe3792b..8d89a84 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-17 01:02:31 GMT+00:00: +// This code was generated by the following tool on 2023-08-18 00:54:53 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 381ada6..5f86499 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-17 01:02:31 GMT+00:00: +// This code was generated by the following tool on 2023-08-18 00:54:53 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. @@ -2452,6 +2452,16 @@ public static unsafe partial class PInvoke [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] public static partial ecs_table_t* ecs_table_add_id(ecs_world_t* world, ecs_table_t* table, ecs_id_t id); + [CNode(Kind = "Function")] + [LibraryImport(LibraryName, EntryPoint = "ecs_table_column_count")] + [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] + public static partial int ecs_table_column_count(ecs_table_t* table); + + [CNode(Kind = "Function")] + [LibraryImport(LibraryName, EntryPoint = "ecs_table_column_to_type_index")] + [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] + public static partial int ecs_table_column_to_type_index(ecs_table_t* table, int index); + [CNode(Kind = "Function")] [LibraryImport(LibraryName, EntryPoint = "ecs_table_count")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] @@ -2467,6 +2477,11 @@ public static unsafe partial class PInvoke [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] public static partial void* ecs_table_get_column(ecs_table_t* table, int index, int offset); + [CNode(Kind = "Function")] + [LibraryImport(LibraryName, EntryPoint = "ecs_table_get_column_index")] + [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] + public static partial int ecs_table_get_column_index(ecs_world_t* world, ecs_table_t* table, ecs_id_t id); + [CNode(Kind = "Function")] [LibraryImport(LibraryName, EntryPoint = "ecs_table_get_column_size")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] @@ -2483,30 +2498,25 @@ public static unsafe partial class PInvoke public static partial void* ecs_table_get_id(ecs_world_t* world, ecs_table_t* table, ecs_id_t id, int offset); [CNode(Kind = "Function")] - [LibraryImport(LibraryName, EntryPoint = "ecs_table_get_index")] + [LibraryImport(LibraryName, EntryPoint = "ecs_table_get_type")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] - public static partial int ecs_table_get_index(ecs_world_t* world, ecs_table_t* table, ecs_id_t id); + public static partial ecs_type_t* ecs_table_get_type(ecs_table_t* table); [CNode(Kind = "Function")] - [LibraryImport(LibraryName, EntryPoint = "ecs_table_get_storage_table")] + [LibraryImport(LibraryName, EntryPoint = "ecs_table_get_type_index")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] - public static partial ecs_table_t* ecs_table_get_storage_table(ecs_table_t* table); + public static partial int ecs_table_get_type_index(ecs_world_t* world, ecs_table_t* table, ecs_id_t id); [CNode(Kind = "Function")] - [LibraryImport(LibraryName, EntryPoint = "ecs_table_get_type")] + [LibraryImport(LibraryName, EntryPoint = "ecs_table_has_flags")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] - public static partial ecs_type_t* ecs_table_get_type(ecs_table_t* table); + public static partial CBool ecs_table_has_flags(ecs_table_t* table, ecs_flags32_t flags); [CNode(Kind = "Function")] [LibraryImport(LibraryName, EntryPoint = "ecs_table_has_id")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] public static partial CBool ecs_table_has_id(ecs_world_t* world, ecs_table_t* table, ecs_id_t id); - [CNode(Kind = "Function")] - [LibraryImport(LibraryName, EntryPoint = "ecs_table_has_module")] - [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] - public static partial CBool ecs_table_has_module(ecs_table_t* table); - [CNode(Kind = "Function")] [LibraryImport(LibraryName, EntryPoint = "ecs_table_lock")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] @@ -2517,11 +2527,6 @@ public static unsafe partial class PInvoke [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] public static partial ecs_table_t* ecs_table_remove_id(ecs_world_t* world, ecs_table_t* table, ecs_id_t id); - [CNode(Kind = "Function")] - [LibraryImport(LibraryName, EntryPoint = "ecs_table_storage_to_type_index")] - [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] - public static partial int ecs_table_storage_to_type_index(ecs_table_t* table, int index); - [CNode(Kind = "Function")] [LibraryImport(LibraryName, EntryPoint = "ecs_table_str")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] @@ -2533,9 +2538,9 @@ public static unsafe partial class PInvoke public static partial void ecs_table_swap_rows(ecs_world_t* world, ecs_table_t* table, int row_1, int row_2); [CNode(Kind = "Function")] - [LibraryImport(LibraryName, EntryPoint = "ecs_table_type_to_storage_index")] + [LibraryImport(LibraryName, EntryPoint = "ecs_table_type_to_column_index")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] - public static partial int ecs_table_type_to_storage_index(ecs_table_t* table, int index); + public static partial int ecs_table_type_to_column_index(ecs_table_t* table, int index); [CNode(Kind = "Function")] [LibraryImport(LibraryName, EntryPoint = "ecs_table_unlock")] 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 bd36ae2..125a7a4 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-17 01:02:46 GMT+00:00: +// This code was generated by the following tool on 2023-08-18 00:55:05 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 cd16ccd..1d33cea 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-17 01:02:46 GMT+00:00: +// This code was generated by the following tool on 2023-08-18 00:55:05 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. @@ -1968,6 +1968,14 @@ public static unsafe partial class PInvoke [DllImport(LibraryName, EntryPoint = "ecs_table_add_id", CallingConvention = CallingConvention.Cdecl)] public static extern ecs_table_t* ecs_table_add_id(ecs_world_t* world, ecs_table_t* table, ecs_id_t id); + [CNode(Kind = "Function")] + [DllImport(LibraryName, EntryPoint = "ecs_table_column_count", CallingConvention = CallingConvention.Cdecl)] + public static extern int ecs_table_column_count(ecs_table_t* table); + + [CNode(Kind = "Function")] + [DllImport(LibraryName, EntryPoint = "ecs_table_column_to_type_index", CallingConvention = CallingConvention.Cdecl)] + public static extern int ecs_table_column_to_type_index(ecs_table_t* table, int index); + [CNode(Kind = "Function")] [DllImport(LibraryName, EntryPoint = "ecs_table_count", CallingConvention = CallingConvention.Cdecl)] public static extern int ecs_table_count(ecs_table_t* table); @@ -1980,6 +1988,10 @@ public static unsafe partial class PInvoke [DllImport(LibraryName, EntryPoint = "ecs_table_get_column", CallingConvention = CallingConvention.Cdecl)] public static extern void* ecs_table_get_column(ecs_table_t* table, int index, int offset); + [CNode(Kind = "Function")] + [DllImport(LibraryName, EntryPoint = "ecs_table_get_column_index", CallingConvention = CallingConvention.Cdecl)] + public static extern int ecs_table_get_column_index(ecs_world_t* world, ecs_table_t* table, ecs_id_t id); + [CNode(Kind = "Function")] [DllImport(LibraryName, EntryPoint = "ecs_table_get_column_size", CallingConvention = CallingConvention.Cdecl)] public static extern ulong ecs_table_get_column_size(ecs_table_t* table, int index); @@ -1993,25 +2005,21 @@ public static unsafe partial class PInvoke public static extern void* ecs_table_get_id(ecs_world_t* world, ecs_table_t* table, ecs_id_t id, int offset); [CNode(Kind = "Function")] - [DllImport(LibraryName, EntryPoint = "ecs_table_get_index", CallingConvention = CallingConvention.Cdecl)] - public static extern int ecs_table_get_index(ecs_world_t* world, ecs_table_t* table, ecs_id_t id); + [DllImport(LibraryName, EntryPoint = "ecs_table_get_type", CallingConvention = CallingConvention.Cdecl)] + public static extern ecs_type_t* ecs_table_get_type(ecs_table_t* table); [CNode(Kind = "Function")] - [DllImport(LibraryName, EntryPoint = "ecs_table_get_storage_table", CallingConvention = CallingConvention.Cdecl)] - public static extern ecs_table_t* ecs_table_get_storage_table(ecs_table_t* table); + [DllImport(LibraryName, EntryPoint = "ecs_table_get_type_index", CallingConvention = CallingConvention.Cdecl)] + public static extern int ecs_table_get_type_index(ecs_world_t* world, ecs_table_t* table, ecs_id_t id); [CNode(Kind = "Function")] - [DllImport(LibraryName, EntryPoint = "ecs_table_get_type", CallingConvention = CallingConvention.Cdecl)] - public static extern ecs_type_t* ecs_table_get_type(ecs_table_t* table); + [DllImport(LibraryName, EntryPoint = "ecs_table_has_flags", CallingConvention = CallingConvention.Cdecl)] + public static extern CBool ecs_table_has_flags(ecs_table_t* table, ecs_flags32_t flags); [CNode(Kind = "Function")] [DllImport(LibraryName, EntryPoint = "ecs_table_has_id", CallingConvention = CallingConvention.Cdecl)] public static extern CBool ecs_table_has_id(ecs_world_t* world, ecs_table_t* table, ecs_id_t id); - [CNode(Kind = "Function")] - [DllImport(LibraryName, EntryPoint = "ecs_table_has_module", CallingConvention = CallingConvention.Cdecl)] - public static extern CBool ecs_table_has_module(ecs_table_t* table); - [CNode(Kind = "Function")] [DllImport(LibraryName, EntryPoint = "ecs_table_lock", CallingConvention = CallingConvention.Cdecl)] public static extern void ecs_table_lock(ecs_world_t* world, ecs_table_t* table); @@ -2020,10 +2028,6 @@ public static unsafe partial class PInvoke [DllImport(LibraryName, EntryPoint = "ecs_table_remove_id", CallingConvention = CallingConvention.Cdecl)] public static extern ecs_table_t* ecs_table_remove_id(ecs_world_t* world, ecs_table_t* table, ecs_id_t id); - [CNode(Kind = "Function")] - [DllImport(LibraryName, EntryPoint = "ecs_table_storage_to_type_index", CallingConvention = CallingConvention.Cdecl)] - public static extern int ecs_table_storage_to_type_index(ecs_table_t* table, int index); - [CNode(Kind = "Function")] [DllImport(LibraryName, EntryPoint = "ecs_table_str", CallingConvention = CallingConvention.Cdecl)] public static extern CString ecs_table_str(ecs_world_t* world, ecs_table_t* table); @@ -2033,8 +2037,8 @@ public static unsafe partial class PInvoke public static extern void ecs_table_swap_rows(ecs_world_t* world, ecs_table_t* table, int row_1, int row_2); [CNode(Kind = "Function")] - [DllImport(LibraryName, EntryPoint = "ecs_table_type_to_storage_index", CallingConvention = CallingConvention.Cdecl)] - public static extern int ecs_table_type_to_storage_index(ecs_table_t* table, int index); + [DllImport(LibraryName, EntryPoint = "ecs_table_type_to_column_index", CallingConvention = CallingConvention.Cdecl)] + public static extern int ecs_table_type_to_column_index(ecs_table_t* table, int index); [CNode(Kind = "Function")] [DllImport(LibraryName, EntryPoint = "ecs_table_unlock", CallingConvention = CallingConvention.Cdecl)]