Skip to content

Commit

Permalink
Refactor: Make observers control the lifecycle of capture and playba…
Browse files Browse the repository at this point in the history
…ck (#39)

* refactor around an event-based API

* remove random git file oops

* fmt?

* more fmt

* make PlaybackWindow field pub

* insist that serializer systems only run if a capture path is provided

* allow users to select the source of input data when initiating playback events

* make deserialize_timestamped_inputs panic-free

* ensure all playback systems happen after frame_counter

* fix tests

* cargo clippy

* Refactor to use observers in capture and fix/test EndInputCapture behavior

* tmp

* tell event registry to always update test events

* fix update -> flush_commands

* remove log lines

* put the old name back for a var

* clippy

* fmt

* Improve docs, fix data samples, fix examples, use PlaybackWindow to control playback

* add releases note
  • Loading branch information
snendev authored Dec 2, 2024
1 parent ec76962 commit 0d43392
Show file tree
Hide file tree
Showing 14 changed files with 1,850 additions and 1,448 deletions.
1 change: 1 addition & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- migrated to Bevy 0.14
- replaced `FrameCount` with its Bevy counterpart and updated system scheduling constraints to match the new `FrameCount`'s behavior, which updates in `Last` rather than `First`
- refactored so that playback and capture are now initiated via Observers

## Version 0.5

Expand Down
2 changes: 1 addition & 1 deletion data/app_exit.ron
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(
events: [
(
frame: (71),
frame: 71,
time_since_startup: (
secs: 1,
nanos: 592977800,
Expand Down
Loading

0 comments on commit 0d43392

Please sign in to comment.