Skip to content

Commit 54e5116

Browse files
committed
add resource_tween_system_with_time_context
see two previous commits
1 parent d641e58 commit 54e5116

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Breaking:
1515
- You may also add events that will be checked on specific schedules using `TweenEventOnSchedulePlugin::<EventDataType, TimeCtx>::for_schedule([your_schedules_here])`
1616
- Add `component_tween_system_with_time_context` which is the same as `component_tween_system` but the system has the specified `TimeCtx`
1717
- Add `component_dyn_tween_system_with_time_context` which is the same as `component_dyn_tween_system` but the system has the specified `TimeCtx`
18+
- Add `resource_tween_system_with_time_context` which is the same as `resource_tween_system` but the system has the specified `TimeCtx`
1819
- Update flake by [#77](https://github.com/Multirious/bevy_tween/pull/77)
1920
- Use latest instead of a version for stableRust in flake.nix
2021
- `nix flake update`

src/tween/systems.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,18 @@ where
282282

283283
/// Alias for [`apply_resource_tween_system`] and may contains more systems
284284
/// in the future.
285-
pub fn resource_tween_system<I, TimeCtx>() -> ScheduleConfigs<ScheduleSystem>
285+
pub fn resource_tween_system<I>() -> ScheduleConfigs<ScheduleSystem>
286+
where
287+
I: Interpolator + Send + Sync + 'static,
288+
I::Item: Resource,
289+
{
290+
apply_resource_tween_system::<I, ()>.into_configs()
291+
}
292+
293+
/// Alias for [`apply_resource_tween_system`] and may contains more systems
294+
/// in the future.
295+
pub fn resource_tween_system_with_time_context<I, TimeCtx>()
296+
-> ScheduleConfigs<ScheduleSystem>
286297
where
287298
I: Interpolator + Send + Sync + 'static,
288299
I::Item: Resource,

0 commit comments

Comments
 (0)