Skip to content

Commit

Permalink
Rename SetWithExt to TargetSetExt
Browse files Browse the repository at this point in the history
  • Loading branch information
Multirious committed Jul 14, 2024
1 parent bc2ce70 commit 8c2f278
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ mod time;
pub use time::{backward, forward, go, parallel, sequence, Parallel, Sequence};

mod tween;
pub use tween::{SetWithExt, TargetSetter, TargetSetterState};
pub use tween::{TargetSetExt, TargetSetter, TargetSetterState};

mod event;
pub use event::{event, event_at, event_exact, event_for};
Expand Down
8 changes: 4 additions & 4 deletions src/builder/tween.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@ use crate::{curve::AToB, set::Set};

use super::{AnimationCommands, BuildAnimation};

pub trait SetWithExt: Sized {
pub trait TargetSetExt: Sized {
fn set<S: Set>(&self, setter: S) -> TargetSetter<Self, S>;
}

impl SetWithExt for crate::targets::TargetComponent {
impl TargetSetExt for crate::targets::TargetComponent {
fn set<S>(&self, setter: S) -> TargetSetter<Self, S> {
TargetSetter {
target: self.clone(),
setter,
}
}
}
impl<A: Asset> SetWithExt for crate::targets::TargetAsset<A> {
impl<A: Asset> TargetSetExt for crate::targets::TargetAsset<A> {
fn set<S>(&self, setter: S) -> TargetSetter<Self, S> {
TargetSetter {
target: self.clone(),
setter,
}
}
}
impl SetWithExt for crate::targets::TargetResource {
impl TargetSetExt for crate::targets::TargetResource {
fn set<S>(&self, setter: S) -> TargetSetter<Self, S> {
TargetSetter {
target: self.clone(),
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ pub mod prelude {

pub use crate::bevy_time_runner::{Repeat, RepeatStyle, TimeDirection};

pub use crate::builder::{AnimationBuilderExt, SetWithExt as _};
pub use crate::builder::{AnimationBuilderExt, TargetSetExt as _};

pub use crate::targets::IntoTarget;
pub use crate::tween_event::{TweenEvent, TweenEventData};
Expand Down

0 comments on commit 8c2f278

Please sign in to comment.