Add Iterator.Any()

main
copygirl 2 years ago
parent 720a90549c
commit 2c5d7f6c65
  1. 3
      src/gaemstone.ECS/Internal/Iterator.cs

@ -55,6 +55,9 @@ public unsafe class Iterator
public virtual bool Next() public virtual bool Next()
=> ecs_iter_next(Handle); => ecs_iter_next(Handle);
public bool Any()
{ using (this) return Next(); }
public Entity First() public Entity First()
=> new(ecs_iter_first(Handle)); => new(ecs_iter_first(Handle));

Loading…
Cancel
Save