From c7496a1ffdf3ba814741ad5d40464f03852e8fcd Mon Sep 17 00:00:00 2001 From: Sebastiano Mandala Date: Sun, 17 Sep 2023 22:30:10 +0100 Subject: [PATCH] minor improvement --- com.sebaslab.svelto.common | 2 +- com.sebaslab.svelto.ecs/CHANGELOG.md | 2 +- com.sebaslab.svelto.ecs/Extensions/Svelto/IEGIDMultiMapper.cs | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/com.sebaslab.svelto.common b/com.sebaslab.svelto.common index 28346d8..08646fc 160000 --- a/com.sebaslab.svelto.common +++ b/com.sebaslab.svelto.common @@ -1 +1 @@ -Subproject commit 28346d8c8d1371aec5b1176d17c61fa02413f056 +Subproject commit 08646fc4248aede936226e40cdbadf46dce78e47 diff --git a/com.sebaslab.svelto.ecs/CHANGELOG.md b/com.sebaslab.svelto.ecs/CHANGELOG.md index 8bc51d5..20b8fbe 100644 --- a/com.sebaslab.svelto.ecs/CHANGELOG.md +++ b/com.sebaslab.svelto.ecs/CHANGELOG.md @@ -8,7 +8,7 @@ All notable changes to this project will be documented in this file. Changes are * Unity DOTS: added CreateDOTSToSveltoSyncEngine method in SveltoOnDOTSEnginesGroup * Refactor: split NB/MB struct from their internal logic that must be used only by the framework. Eventually NB and MB structs must be ref, as they are not supposed to be held (they may become invalid over the time). However due to the current DOTS patterns this is not possible. In future a sentinel pattern will allow to lease these buffers with the assumption that they can't be modified while held (and if a modification happens an exception will throw) * Improved managed EGIDMultiMapper. A MultiMapper can improve components fetching performance - * Renamed IDisposingEngine interface to IDisposableEngine + * Renamed IDisposableEngine interface to IDisposableEngine * added EntityReference Exists method to validate it against a given entity database * BUG FIXED: IReactOnDisposeEx callbacks were not correctly called * BUG FIXED: fixed serious bug that would pass wrong entities indices to the moveTO callback under specific conditions diff --git a/com.sebaslab.svelto.ecs/Extensions/Svelto/IEGIDMultiMapper.cs b/com.sebaslab.svelto.ecs/Extensions/Svelto/IEGIDMultiMapper.cs index e3a7c33..7dd146c 100644 --- a/com.sebaslab.svelto.ecs/Extensions/Svelto/IEGIDMultiMapper.cs +++ b/com.sebaslab.svelto.ecs/Extensions/Svelto/IEGIDMultiMapper.cs @@ -4,6 +4,8 @@ namespace Svelto.ECS { public interface IEGIDMultiMapper { + Type entityType { get; } + uint GetIndex(EGID entity); } } \ No newline at end of file