From 22bdd692735c7a0dfbd8c27873045e1596336068 Mon Sep 17 00:00:00 2001 From: Mikhail <99481254+DCFApixels@users.noreply.github.com> Date: Mon, 3 Apr 2023 23:19:10 +0800 Subject: [PATCH] add NotHas method (!Has) --- src/ent.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ent.cs b/src/ent.cs index 4193c20..3b3ecd5 100644 --- a/src/ent.cs +++ b/src/ent.cs @@ -134,6 +134,8 @@ namespace DCFApixels.DragonECS return EcsWorld.Worlds[self.world].GetPool().Has(self.id); } [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool NotHas(this in ent self) where T : struct => !Has(in self); + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void Del(this in ent self) where T : struct {