Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve ergonomics #21

Merged
merged 117 commits into from
Jun 8, 2024
Merged

Improve ergonomics #21

merged 117 commits into from
Jun 8, 2024

Conversation

Multirious
Copy link
Owner

@Multirious Multirious commented Jun 8, 2024

TODO:

  • Create changelog
  • publish bevy_time_runner

move span_tween/span_tween.rs example to entity_structure.rs

Changes:
- In `TweenHereBundle`
  - rename private field `span_tweener_bundle` to `tweener_bundle`
  - change private field `span_tween_bundle: SpanTweenBundle`
                      to `time_span: TimeSpan`
- Rename "span_tween" feature to "default_tweener"
- Some more very local renaming stuffs

Type and Trait Renames:
- `SpanTweenPlugin`          to `TweenerPlugin`
- `SpanTweener`              to `Tweener`,
  adds type alias to previous name
- `NewTweenTimeSpanError`    to `NewTimeSpanError `
- `TweenTimeSpan`            to `TimeSpan`
- `SpanTweenerBundle`        to `TweenerBundle`
  - field `span_tweener`       to `tweener`
- `SpanTweenHereBundle`      to `TweenHereBundle`
- `SpanTweenerEnded`         to `TweenerEnded`,
   adds type alias to previous name
- `tick_span_tweener_system` to `tick_tweener_system`
- `span_tweener_system`      to `tweener_system`
- `EntitySpawner` trait      to `TweenSpawner`
- `SpanTweensBuilder`        to `TweensBuilder`,
  adds type alias to previous name
- `SpanTweensBuilderExt`     to `TweensBuilderExt`
- `SpanTweenPreset`          to `TweenPreset`

Deprecated `SpanTweenBundle`
Update previous deprecate notes to the new renames
Update readme, doc examples, doc test, and examples
Removed:
- ChildSpanTweenBuilder
- ChildSpanTweenBuilderExt
- WorldChildSpanTweenBuilder
- WorldChildSpanTweenBuilderExt
Removed `CommandOutput` associated type
Make `spawn` returns `Entity`
Change `entity_spawner: &mut E` to `entity_spawner: E` in `TweenBuilder`
Remove generic `'r` life time from `TweenBuilder`
Implements `TweensBuilderExt` for `EntityWorldMut`
Implements `TweensBuilderExt` for `EntityCommands`
Add `component_closure`
Add `resource_closure`
Add `asset_closure`
add `for_asset`
add `for_assets`
Rename `seq` to `sequence`
Rename `par` to `parallel`
Remove `sequence` macro
Remove `parallel` macro

Add `sequence` combinator function
Add `parallel` combinator function
Add `TupleFnOnce` trait
Add `TupleFnOnceSealed` trait

Update examples
Add privated `chain` module
Add `ChainTween` struct
Add `TransformChainTweenExt` trait
Add `TransformChainTween` trait
@Multirious Multirious marked this pull request as ready for review June 8, 2024 08:34
@Multirious Multirious merged commit 3a933f9 into main Jun 8, 2024
3 checks passed
@Multirious Multirious deleted the improve-ergonomics branch June 8, 2024 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant