Add Iterator.Any()

main
copygirl 12 months 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()
=> ecs_iter_next(Handle);
public bool Any()
{ using (this) return Next(); }
public Entity First()
=> new(ecs_iter_first(Handle));

Loading…
Cancel
Save