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

Add method to transform a Transformable to a point in time #1142

Merged
merged 7 commits into from
Nov 10, 2017

Conversation

smoogipoo
Copy link
Contributor

As discussed in #osu-client.

/// Whether a parent is allowed to clear this <see cref="Transformable"/>'s <see cref="Transform"/>s
/// through <see cref="ClearTransforms(bool, string)"/> and <see cref="ClearTransformsAfter(double, bool)"/>.
/// </summary>
protected internal virtual bool AllowTransformClearByParent => true;

This comment was marked as off-topic.

if (c.AllowTransformClearByParent)
continue;
c.ClearTransforms(true, targetMember);
}

This comment was marked as off-topic.

if (transforms[i].StartTime < time)
break;
transforms.RemoveAt(i);
}

This comment was marked as off-topic.

/// </summary>
/// <param name="time">The time to clear <see cref="Transform"/>s after.</param>
/// <param name="propagateChildren">Whether to also clear such <see cref="Transform"/>s of children.</param>
public virtual void ClearTransformsAfter(double time, bool propagateChildren = false)

This comment was marked as off-topic.

}
}

public override void TransformStateTo(double time, bool propagateChildren = false)

This comment was marked as off-topic.

}

public override void TransformStateTo(double time, bool propagateChildren = false)
{

This comment was marked as off-topic.

Copy link
Collaborator

@Tom94 Tom94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See individual comments.

@Tom94 Tom94 merged commit 68e0072 into ppy:master Nov 10, 2017
@smoogipoo smoogipoo deleted the transform-state branch February 22, 2018 04:11
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.

None yet

3 participants