Implement ECS event system #4

Open
opened 2026-05-06 21:23:06 +00:00 by larssonmartin1998 · 0 comments

Add event system that executes in between system updates and batch removal of queued entities.

a frame should look like:

  • Create all queued entities
  • Run system updates
  • EVENT SYSTEM GOES HERE
  • Finally, batch delete queued entities.

The event system should take some std::variant of event type struct that can hold information about what happend. If an entity overlap another entity, maybe a trigger overlap event struct should hold the overlapped entities and an ID to retrieve their components ETC.

Add event system that executes in between system updates and batch removal of queued entities. a frame should look like: --- - Create all queued entities - Run system updates - EVENT SYSTEM GOES HERE - Finally, batch delete queued entities. --- The event system should take some std::variant of event type struct that can hold information about what happend. If an entity overlap another entity, maybe a trigger overlap event struct should hold the overlapped entities and an ID to retrieve their components ETC.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
larssonmartin1998/atlas#4
No description provided.