Skip to content
This repository has been archived by the owner on Oct 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #59 from sahmed19/delta-time-and-system-delta-time…
Browse files Browse the repository at this point in the history
…-for-iterator-as-well

Delta time and system delta time for iterator as well
  • Loading branch information
lithiumtoast authored Aug 17, 2022
2 parents 6eea78c + b552874 commit 4b7b069
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cs/production/Flecs/Iterator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ internal Iterator(World world, ecs_iter_t* it)
Handle = it;
}

public float DeltaTime() => Handle->delta_time;

public float DeltaSystemTime() => Handle->delta_system_time;

public Span<T> Field<T>(int index)
{
var structSize = Marshal.SizeOf<T>();
Expand Down

0 comments on commit 4b7b069

Please sign in to comment.