Skip to content

Commit

Permalink
Update Quickstart observer to use 'events' instead of 'event'
Browse files Browse the repository at this point in the history
The latest release of flecs uses an array for events in the description of observer
  • Loading branch information
lenis0012 authored and SanderMertens committed Jul 11, 2024
1 parent 00c478f commit 9bd97c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -1508,7 +1508,7 @@ An example of an observer with two components:
```c
ecs_observer(world, {
.filter.terms = { { ecs_id(Position) }, { ecs_id(Velocity) }},
.event = EcsOnSet,
.events = { EcsOnSet },
.callback = OnSetPosition
});

Expand Down

0 comments on commit 9bd97c2

Please sign in to comment.