EventRecorder.ClearEvents does not clear events

#133 · open · 0 comments

View on GitHub ↗

Lookingeast5

## Issue I am using Godot in combination with Friflo.Engine.Ecs. I started using the EventRecorder but it seams the events aren't cleared when I call EventRecorder.ClearEvents() <img width="641" height="152" alt="Image" src="https://github.com/user-attachments/assets/419e22ed-18bc-4fa4-84ea-cb93796da4b4" /> The `Process` function is called during Godot's _PhysicsProcess. This seems to cause the event I'm interested in being add continiously in the EventRecorder: <img width="1200" height="170" alt="Image" src="https://github.com/user-attachments/assets/2964f493-3891-42ce-a59c-a40614e6a2fe" /> The `Query.HasEvent(entity.Id)` will then return `false`. This code runs in the OnUpdate of a QuerySystem. ## Extra information I've also added unit tests with GdUnit4 and if the event is present only once `Query.HasEvent(entity.Id)` returns `true`

Comments