mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +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);
|
return EcsWorld.Worlds[self.world].GetPool<T>().Has(self.id);
|
||||||
}
|
}
|
||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
[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)
|
public static void Del<T>(this in ent self)
|
||||||
where T : struct
|
where T : struct
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user