mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-17 17:34:36 +08:00
add NotHas method (!Has)
This commit is contained in:
parent
b74d41c268
commit
22bdd69273
@ -134,6 +134,8 @@ namespace DCFApixels.DragonECS
|
||||
return EcsWorld.Worlds[self.world].GetPool<T>().Has(self.id);
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static bool NotHas<T>(this in ent self) where T : struct => !Has<T>(in self);
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Del<T>(this in ent self)
|
||||
where T : struct
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user