diff --git a/package.json b/package.json index 6f55c9c..a4f3c85 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "displayName": "DragonECS", "description": "C# Entity Component System Framework", "unity": "2020.3", - "version": "0.8.52", + "version": "0.8.53", "repository": { "type": "git", "url": "https://github.com/DCFApixels/DragonECS.git" diff --git a/src/EcsWorld.cs b/src/EcsWorld.cs index 737b6f4..131598f 100644 --- a/src/EcsWorld.cs +++ b/src/EcsWorld.cs @@ -385,6 +385,10 @@ namespace DCFApixels.DragonECS return _entities[entityID].componentsCount; } + public bool IsMatchesMask(IEcsComponentMask mask, int entityID) + { + return IsMatchesMask(mask.ToMask(this), entityID); + } public bool IsMatchesMask(EcsMask mask, int entityID) { #if (DEBUG && !DISABLE_DEBUG) || !DISABLE_DRAGONECS_ASSERT_CHEKS